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 : 360755 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 (3420942) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3420942) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560280 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3420942'] with mtr_portfolio_ids : ['25560280'] and first list_photo_ids : [] new path : /proc/360755/ Name: python3 Umask: 0002 State: R (running) Tgid: 360755 Ngid: 0 Pid: 360755 PPid: 360754 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 360755 NSpid: 360755 NSpgid: 359755 NSsid: 359755 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99816 kB VmRSS: 99816 kB RssAnon: 59808 kB RssFile: 40008 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 55 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '360755', 'Ngid': '0', 'Pid': '360755', 'PPid': '360754', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '360755', 'NSpid': '360755', 'NSpgid': '359755', 'NSsid': '359755', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99816 kB', 'VmRSS': '99816 kB', 'RssAnon': '59808 kB', 'RssFile': '40008 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '55', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '360755', '1106860', '0', '1106860', '865612', '99816', b'', 'marlene', '3420942') 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 (25560280) 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 (3420942 ) ) 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 (25560280) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374649453, 'portfolio_id': 25560280}, {'photo_id': 1374649389, 'portfolio_id': 25560280}, {'photo_id': 1374649385, 'portfolio_id': 25560280}, {'photo_id': 1374649381, 'portfolio_id': 25560280}, {'photo_id': 1374649378, 'portfolio_id': 25560280}, {'photo_id': 1374649051, 'portfolio_id': 25560280}, {'photo_id': 1374648882, 'portfolio_id': 25560280}, {'photo_id': 1374648880, 'portfolio_id': 25560280}, {'photo_id': 1374648877, 'portfolio_id': 25560280}, {'photo_id': 1374648874, 'portfolio_id': 25560280}, {'photo_id': 1374648807, 'portfolio_id': 25560280}, {'photo_id': 1374648804, 'portfolio_id': 25560280}, {'photo_id': 1374648801, 'portfolio_id': 25560280}, {'photo_id': 1374648703, 'portfolio_id': 25560280}, {'photo_id': 1374648699, 'portfolio_id': 25560280}] map_portfolio_id_photo_id: {25560280: [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699]} ##### 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.016899585723876953 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Aug 1 06:09:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25560280) 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 : 25560280 get user id for portfolio 25560280 get sub ptf for main ptf 25560280, type 3726 and hashtags ['kraft', 'papier', 'mal_croppe', 'autre_refus', 'Carton_gris', 'Carton_brun', 'flou', 'metal', 'environnement', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25560280 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','autre_refus','Carton_gris','Carton_brun','flou','metal','environnement','Teint_Dans_La_Masse','cartonnette','plastique')) 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`=25560280 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','autre_refus','Carton_gris','Carton_brun','flou','metal','environnement','Teint_Dans_La_Masse','cartonnette','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25560280, 'sub_port_id': 25560334, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235491, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'kraft': {'main_port_id': 25560280, 'sub_port_id': 25560335, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235492, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'environnement': {'main_port_id': 25560280, 'sub_port_id': 25560336, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235493, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'flou': {'main_port_id': 25560280, 'sub_port_id': 25560337, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235494, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'Carton_gris': {'main_port_id': 25560280, 'sub_port_id': 25560338, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235495, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'plastique': {'main_port_id': 25560280, 'sub_port_id': 25560339, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235496, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'Carton_brun': {'main_port_id': 25560280, 'sub_port_id': 25560340, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235497, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'mal_croppe': {'main_port_id': 25560280, 'sub_port_id': 25560341, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235498, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'papier': {'main_port_id': 25560280, 'sub_port_id': 25560342, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235499, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'metal': {'main_port_id': 25560280, 'sub_port_id': 25560343, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235500, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'autre_refus': {'main_port_id': 25560280, 'sub_port_id': 25560344, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235501, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25560280, 'sub_port_id': 25560345, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235502, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560334 , 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=25560280 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 (25560334) result : ((1374649326,), (1374649327,), (1374649568,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560335 , 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=25560280 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 (25560335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560336 , 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=25560280 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 (25560336) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560337 , 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=25560280 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 (25560337) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560338 , 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=25560280 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 (25560338) result : ((1374649054,), (1374649324,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560339 , 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=25560280 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 (25560339) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560340 , 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=25560280 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 (25560340) result : ((1374649328,), (1374649329,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560341 , 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=25560280 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 (25560341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560342 , 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=25560280 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 (25560342) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560343 , 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=25560280 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 (25560343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560344 , 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=25560280 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 (25560344) result : ((1374649567,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25560345 , 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=25560280 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 (25560345) result : ((1374649053,), (1374649322,), (1374649323,), (1374649404,), (1374649405,), (1374649406,), (1374649564,), (1374649565,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25560280) result : ((1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25560280 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','autre_refus','Carton_gris','Carton_brun','flou','metal','environnement','Teint_Dans_La_Masse','cartonnette','plastique')) 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`=25560280 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','mal_croppe','autre_refus','Carton_gris','Carton_brun','flou','metal','environnement','Teint_Dans_La_Masse','cartonnette','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25560280, 'sub_port_id': 25560347, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235503, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'kraft': {'main_port_id': 25560280, 'sub_port_id': 25560348, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235504, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'environnement': {'main_port_id': 25560280, 'sub_port_id': 25560349, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235505, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'flou': {'main_port_id': 25560280, 'sub_port_id': 25560350, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235506, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'Carton_gris': {'main_port_id': 25560280, 'sub_port_id': 25560351, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235507, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'plastique': {'main_port_id': 25560280, 'sub_port_id': 25560352, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235508, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'Carton_brun': {'main_port_id': 25560280, 'sub_port_id': 25560353, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235509, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'mal_croppe': {'main_port_id': 25560280, 'sub_port_id': 25560354, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235510, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'papier': {'main_port_id': 25560280, 'sub_port_id': 25560355, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235511, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'metal': {'main_port_id': 25560280, 'sub_port_id': 25560356, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235512, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'autre_refus': {'main_port_id': 25560280, 'sub_port_id': 25560357, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235513, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25560280, 'sub_port_id': 25560358, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17235514, 'last_updated_at': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 21, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 21, 7, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25560358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25560345 lien utilise dans velours : https://www.fotonower.com/velours/25560347,25560348,25560349,25560350,25560351,25560352,25560353,25560354,25560355,25560356,25560357,25560358?tags=cartonnette,kraft,environnement,flou,Carton_gris,plastique,Carton_brun,mal_croppe,papier,metal,autre_refus,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25560280]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] map_info['map_portfolio_photo'] : {25560280: [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699]} final : False mtd_id 4302 list_pids : [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] Looping around the photos to save general results len do output : 1 /25560280. 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, '3420942') ('4302', '25560280', '1374649453', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '25560280', "{'cartonnette': 25560334, 'kraft': 25560335, 'environnement': 25560336, 'flou': 25560337, 'Carton_gris': 25560338, 'plastique': 25560339, 'Carton_brun': 25560340, 'mal_croppe': 25560341, 'papier': 25560342, 'metal': 25560343, 'autre_refus': 25560344, 'Teint_Dans_La_Masse': 25560345}", None, None, None, None, '3420942'), ('4302', '25560280', '1374649453', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942')] time used for this insertion : 0.09692263603210449 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4917113780975342 time spend to save output : 0.09730672836303711 total time spend for step 1 : 1.5890181064605713 step2:final Fri Aug 1 06:10:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (25560280) 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 25560280 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374648703,1374648699,1374648807,1374648804,1374648801,1374648882,1374648880,1374648877,1374648874,1374649051,1374649389,1374649385,1374649381,1374649378,1374649453); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25560280]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} new output for save of step final : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] map_info['map_portfolio_photo'] : {25560280: [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699]} final : False mtd_id 4302 list_pids : [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] Looping around the photos to save general results len do output : 15 /1374649453.Didn't retrieve data . /1374649389.Didn't retrieve data . /1374649385.Didn't retrieve data . /1374649381.Didn't retrieve data . /1374649378.Didn't retrieve data . /1374649051.Didn't retrieve data . /1374648882.Didn't retrieve data . /1374648880.Didn't retrieve data . /1374648877.Didn't retrieve data . /1374648874.Didn't retrieve data . /1374648807.Didn't retrieve data . /1374648804.Didn't retrieve data . /1374648801.Didn't retrieve data . /1374648703.Didn't retrieve data . /1374648699.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, '3420942') ('4302', '25560280', '1374649453', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '25560280', '1374649453', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374649389', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374649385', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374649381', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374649378', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374649051', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648882', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648880', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648877', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648874', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648807', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648804', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648801', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648703', '0.04888352001353203', None, None, None, None, '3420942'), ('4302', '25560280', '1374648699', '0.04888352001353203', None, None, None, None, '3420942')] time used for this insertion : 0.018010854721069336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07234692573547363 time spend to save output : 0.018679141998291016 total time spend for step 2 : 0.09102606773376465 step3:velours_tree Fri Aug 1 06:10:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25560280: [{'cartonnette': 25560334, 'kraft': 25560335, 'environnement': 25560336, 'flou': 25560337, 'Carton_gris': 25560338, 'plastique': 25560339, 'Carton_brun': 25560340, 'mal_croppe': 25560341, 'papier': 25560342, 'metal': 25560343, 'autre_refus': 25560344, 'Teint_Dans_La_Masse': 25560345}]} input_args_next_step : {25560280: ()} output_args : {25560280: [{'cartonnette': 25560334, 'kraft': 25560335, 'environnement': 25560336, 'flou': 25560337, 'Carton_gris': 25560338, 'plastique': 25560339, 'Carton_brun': 25560340, 'mal_croppe': 25560341, 'papier': 25560342, 'metal': 25560343, 'autre_refus': 25560344, 'Teint_Dans_La_Masse': 25560345}]} args : 25560280 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 25560334, 'kraft': 25560335, 'environnement': 25560336, 'flou': 25560337, 'Carton_gris': 25560338, 'plastique': 25560339, 'Carton_brun': 25560340, 'mal_croppe': 25560341, 'papier': 25560342, 'metal': 25560343, 'autre_refus': 25560344, 'Teint_Dans_La_Masse': 25560345},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25560280) 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([25560280]) 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.3013432025909424 time spend to save output : 7.605552673339844e-05 total time spend for step 3 : 0.3014192581176758 step4:send_mail_cod Fri Aug 1 06:10:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} input_args_next_step : {1374649453: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374649453 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374649389 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374649385 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374649381 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374649378 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374649051 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648882 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648880 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648877 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648874 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648807 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648804 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648801 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648703 depend.output_id : 0 input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ()} output_args : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',)} args : 1374648699 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 : {25560280: [{'cartonnette': 25560334, 'kraft': 25560335, 'environnement': 25560336, 'flou': 25560337, 'Carton_gris': 25560338, 'plastique': 25560339, 'Carton_brun': 25560340, 'mal_croppe': 25560341, 'papier': 25560342, 'metal': 25560343, 'autre_refus': 25560344, 'Teint_Dans_La_Masse': 25560345}]} input_args_next_step : {1374649453: ('0.04888352001353203',), 1374649389: ('0.04888352001353203',), 1374649385: ('0.04888352001353203',), 1374649381: ('0.04888352001353203',), 1374649378: ('0.04888352001353203',), 1374649051: ('0.04888352001353203',), 1374648882: ('0.04888352001353203',), 1374648880: ('0.04888352001353203',), 1374648877: ('0.04888352001353203',), 1374648874: ('0.04888352001353203',), 1374648807: ('0.04888352001353203',), 1374648804: ('0.04888352001353203',), 1374648801: ('0.04888352001353203',), 1374648703: ('0.04888352001353203',), 1374648699: ('0.04888352001353203',), 25560280: ()} output_args : {25560280: [{'cartonnette': 25560334, 'kraft': 25560335, 'environnement': 25560336, 'flou': 25560337, 'Carton_gris': 25560338, 'plastique': 25560339, 'Carton_brun': 25560340, 'mal_croppe': 25560341, 'papier': 25560342, 'metal': 25560343, 'autre_refus': 25560344, 'Teint_Dans_La_Masse': 25560345}]} args : 25560280 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 :16, first value : ('0.04888352001353203',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25560280) 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 (1374649453,1374649389,1374649385,1374649381,1374649378,1374649051,1374648882,1374648880,1374648877,1374648874,1374648807,1374648804,1374648801,1374648703,1374648699) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374648699 begin to download photo : 1374648807 begin to download photo : 1374648882 begin to download photo : 1374649385 download finish for photo 1374648807 begin to download photo : 1374648874 download finish for photo 1374648699 begin to download photo : 1374648703 download finish for photo 1374649385 begin to download photo : 1374649389 download finish for photo 1374648882 begin to download photo : 1374649051 download finish for photo 1374648874 begin to download photo : 1374648877 download finish for photo 1374648703 begin to download photo : 1374648801 download finish for photo 1374649051 begin to download photo : 1374649378 download finish for photo 1374649389 begin to download photo : 1374649453 download finish for photo 1374648801 begin to download photo : 1374648804 download finish for photo 1374648877 begin to download photo : 1374648880 download finish for photo 1374649378 begin to download photo : 1374649381 download finish for photo 1374649453 download finish for photo 1374648804 download finish for photo 1374648880 download finish for photo 1374649381 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P25560280_01-08-2025_06_10_01.pdf 25560334 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=25560334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374649326: '1753989206_2442075_1374648877_1c5ce0b27da2df5e849a72d764a90759_rle_crop_3899587962_0.png', 1374649327: '1753989206_2442075_1374648874_8c83f66dac58df23fcbb0a46188697a4_rle_crop_3899587976_0.png', 1374649568: '1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592071_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/6ede5ce5c6484986abcbc5bdf9fb1fdb_20541813.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/fa1bf5d453ff92f969c4c0ba5d9de8e4_34392479.png change filename to text .imagette255603341754021401/ imagette255603341754021401/1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592071_0.png.png imagette255603341754021401/1753989206_2442075_1374648877_1c5ce0b27da2df5e849a72d764a90759_rle_crop_3899587962_0.png.png imagette255603341754021401/1753989206_2442075_1374648874_8c83f66dac58df23fcbb0a46188697a4_rle_crop_3899587976_0.png.png imagette255603351754021401/ imagette255603371754021401/ imagette255603391754021401/ imagette255603411754021401/ imagette255603431754021401/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/201713684805051babf4327de0c04162_99490826.png imagette255603341754021401 25560335 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=25560335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255603351754021401 25560337 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=25560337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255603371754021401 25560339 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=25560339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255603391754021401 25560341 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=25560341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255603411754021401 25560343 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=25560343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255603431754021401 25560344 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=25560344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374649567: '1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592072_0.png'} change filename to text .imagette255603441754021401/ imagette255603441754021401/1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592072_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/84c45f7d656ae390258bfa2055a086b1_34011411.png imagette255603441754021401 25560338 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=25560338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374649054: '1753989087_2438598_1374648807_74a85dadabed082fb30f1199cc00282e_rle_crop_3899585691_0.png', 1374649324: '1753989206_2442075_1374649051_5c4c14c3f3a36ac8a7a2d7c626d9f51e_rle_crop_3899587941_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/acc9f277bcfec54637e595a466a76c23_83518945.png change filename to text .imagette255603381754021401/ imagette255603381754021401/1753989087_2438598_1374648807_74a85dadabed082fb30f1199cc00282e_rle_crop_3899585691_0.png.png imagette255603381754021401/1753989206_2442075_1374649051_5c4c14c3f3a36ac8a7a2d7c626d9f51e_rle_crop_3899587941_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/1286df9a11537ad62a52b10dc0ef6dbd_17139860.png imagette255603381754021401 25560340 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=25560340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374649328: '1753989206_2442075_1374649051_5c4c14c3f3a36ac8a7a2d7c626d9f51e_rle_crop_3899587938_0.png', 1374649329: '1753989206_2442075_1374648874_8c83f66dac58df23fcbb0a46188697a4_rle_crop_3899587979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/472a067119d28c0bd68da16ed33d5be2_29612345.png change filename to text .imagette255603401754021402/ imagette255603401754021402/1753989206_2442075_1374648874_8c83f66dac58df23fcbb0a46188697a4_rle_crop_3899587979_0.png.png imagette255603401754021402/1753989206_2442075_1374649051_5c4c14c3f3a36ac8a7a2d7c626d9f51e_rle_crop_3899587938_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/8037c6c30e53b9e9411fec9f3d285914_71205452.png imagette255603401754021402 25560345 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=25560345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374649053: '1753989087_2438598_1374648807_74a85dadabed082fb30f1199cc00282e_rle_crop_3899585693_0.png', 1374649322: '1753989206_2442075_1374648877_1c5ce0b27da2df5e849a72d764a90759_rle_crop_3899587960_0.png', 1374649323: '1753989206_2442075_1374648874_8c83f66dac58df23fcbb0a46188697a4_rle_crop_3899587984_0.png', 1374649404: '1753989326_2445172_1374648882_885622fd4c521275120cf5a10cf08cdf_rle_crop_3899589569_0.png', 1374649405: '1753989326_2445172_1374648804_224a999cf8bc48bea806c0efe1d21d38_rle_crop_3899589574_0.png', 1374649406: '1753989326_2445172_1374648801_fc181efc8008320825415246f133a05c_rle_crop_3899589580_0.png', 1374649564: '1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592073_0.png', 1374649565: '1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/0fec12b89c3ecde15dbfa9bcb4d090ad_31399712.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/9316ecae61a548cd90e4d2ed35199390_59963548.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/f3c7ef9ffadeccf432533559342d1d55_62507372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/c4d5793c962377096a47b99c72111ed7_49065530.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/76a024aed87e0fdf96e15ecaf1636082_33859476.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/a51c2f07e4b51bc4522a9ff32c363e27_34217577.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/51c366b5baad12f8f210b068a6b55b07_39565813.png change filename to text .imagette255603451754021402/ imagette255603451754021402/1753989326_2445172_1374648882_885622fd4c521275120cf5a10cf08cdf_rle_crop_3899589569_0.png.png imagette255603451754021402/1753989206_2442075_1374648874_8c83f66dac58df23fcbb0a46188697a4_rle_crop_3899587984_0.png.png imagette255603451754021402/1753989087_2438598_1374648807_74a85dadabed082fb30f1199cc00282e_rle_crop_3899585693_0.png.png imagette255603451754021402/1753989326_2445172_1374648804_224a999cf8bc48bea806c0efe1d21d38_rle_crop_3899589574_0.png.png imagette255603451754021402/1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592075_0.png.png imagette255603451754021402/1753989446_2449155_1374649385_4eddf5f7a3186625f1b293443bec175a_rle_crop_3899592073_0.png.png imagette255603451754021402/1753989206_2442075_1374648877_1c5ce0b27da2df5e849a72d764a90759_rle_crop_3899587960_0.png.png imagette255603451754021402/1753989326_2445172_1374648801_fc181efc8008320825415246f133a05c_rle_crop_3899589580_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/c3df576d7bd60c27eb0c12d21bd6eda5_74352081.png imagette255603451754021402 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25560280 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25560347,25560348,25560349,25560350,25560351,25560352,25560353,25560354,25560355,25560356,25560357,25560358?tags=cartonnette,kraft,environnement,flou,Carton_gris,plastique,Carton_brun,mal_croppe,papier,metal,autre_refus,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1374649453] : ('0.04888352001353203',) no score found for photo 1374649453 We are sending mail with results at report@fotonower.com args[1374649389] : ('0.04888352001353203',) no score found for photo 1374649389 We are sending mail with results at report@fotonower.com args[1374649385] : ('0.04888352001353203',) no score found for photo 1374649385 We are sending mail with results at report@fotonower.com args[1374649381] : ('0.04888352001353203',) no score found for photo 1374649381 We are sending mail with results at report@fotonower.com args[1374649378] : ('0.04888352001353203',) no score found for photo 1374649378 We are sending mail with results at report@fotonower.com args[1374649051] : ('0.04888352001353203',) no score found for photo 1374649051 We are sending mail with results at report@fotonower.com args[1374648882] : ('0.04888352001353203',) no score found for photo 1374648882 We are sending mail with results at report@fotonower.com args[1374648880] : ('0.04888352001353203',) no score found for photo 1374648880 We are sending mail with results at report@fotonower.com args[1374648877] : ('0.04888352001353203',) no score found for photo 1374648877 We are sending mail with results at report@fotonower.com args[1374648874] : ('0.04888352001353203',) no score found for photo 1374648874 We are sending mail with results at report@fotonower.com args[1374648807] : ('0.04888352001353203',) no score found for photo 1374648807 We are sending mail with results at report@fotonower.com args[1374648804] : ('0.04888352001353203',) no score found for photo 1374648804 We are sending mail with results at report@fotonower.com args[1374648801] : ('0.04888352001353203',) no score found for photo 1374648801 We are sending mail with results at report@fotonower.com args[1374648703] : ('0.04888352001353203',) no score found for photo 1374648703 We are sending mail with results at report@fotonower.com args[1374648699] : ('0.04888352001353203',) no score found for photo 1374648699 We are sending mail with results at report@fotonower.com refus_total : 0.04888352001353203 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=25560280 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_P25560280_01-08-2025_06_10_01.pdf results_Auto_P25560280_01-08-2025_06_10_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560280_01-08-2025_06_10_01.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','25560280','results_Auto_P25560280_01-08-2025_06_10_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560280_01-08-2025_06_10_01.pdf','pdf','','0.16','0.04888352001353203') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25560280]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] map_info['map_portfolio_photo'] : {25560280: [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699]} final : False mtd_id 4302 list_pids : [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] 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, '3420942') ('4302', '25560280', '1374649453', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25560280', '1374649453', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942')] time used for this insertion : 0.18099546432495117 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.032310724258423 time spend to save output : 0.18123960494995117 total time spend for step 4 : 3.213550329208374 step5:split_time_score Fri Aug 1 06:10:04 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 : ['25560280'] 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 : [('25560280',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25560280) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374649385: {'path': 'temp/1754021401_360755_1374649385_4eddf5f7a3186625f1b293443bec175a.jpg', 'extension': 'jpg'}, 1374649389: {'path': 'temp/1754021401_360755_1374649389_e41dba9a9b767d24d119d12597b5e7a5.jpg', 'extension': 'jpg'}, 1374649453: {'path': 'temp/1754021401_360755_1374649453_f952cb15d832793ab76ac478488d4ff2.jpg', 'extension': 'jpg'}, 1374648699: {'path': 'temp/1754021401_360755_1374648699_617b95f2600b8e4131694843123a1832.jpg', 'extension': 'jpg'}, 1374648703: {'path': 'temp/1754021401_360755_1374648703_c7f18660f843321aeac5559676b9d8e5.jpg', 'extension': 'jpg'}, 1374648801: {'path': 'temp/1754021401_360755_1374648801_fc181efc8008320825415246f133a05c.jpg', 'extension': 'jpg'}, 1374648804: {'path': 'temp/1754021401_360755_1374648804_224a999cf8bc48bea806c0efe1d21d38.jpg', 'extension': 'jpg'}, 1374648807: {'path': 'temp/1754021401_360755_1374648807_74a85dadabed082fb30f1199cc00282e.jpg', 'extension': 'jpg'}, 1374648874: {'path': 'temp/1754021401_360755_1374648874_8c83f66dac58df23fcbb0a46188697a4.jpg', 'extension': 'jpg'}, 1374648877: {'path': 'temp/1754021401_360755_1374648877_1c5ce0b27da2df5e849a72d764a90759.jpg', 'extension': 'jpg'}, 1374648880: {'path': 'temp/1754021401_360755_1374648880_83e428297444e1c80d8ba095496e9ad2.jpg', 'extension': 'jpg'}, 1374648882: {'path': 'temp/1754021401_360755_1374648882_885622fd4c521275120cf5a10cf08cdf.jpg', 'extension': 'jpg'}, 1374649051: {'path': 'temp/1754021401_360755_1374649051_5c4c14c3f3a36ac8a7a2d7c626d9f51e.jpg', 'extension': 'jpg'}, 1374649378: {'path': 'temp/1754021401_360755_1374649378_028aefbabd8bd31520c004a3d59edc3a.jpg', 'extension': 'jpg'}, 1374649381: {'path': 'temp/1754021401_360755_1374649381_71cbd71b63110d0e1b16f45f92f45c49.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 = 25560280; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 25560280 group by h (('21', 15),) 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=25560280 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 (25560280) 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 (25560280) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31072025 25560280 Nombre de photos uploadées : 15 / 23040 (0%) 31072025 25560280 Nombre de photos taguées (types de déchets): 0 / 15 (0%) 31072025 25560280 Nombre de photos taguées (volume) : 0 / 15 (0%) [{'photo_id': 1374648703, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/c7f18660f843321aeac5559676b9d8e5.jpg', 'username': None, 'uploaded_at': 1753988728, 'text': 'image_31072025_21_03_54_10135.jpg'}, {'photo_id': 1374648699, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/617b95f2600b8e4131694843123a1832.jpg', 'username': None, 'uploaded_at': 1753988728, 'text': 'image_31072025_21_04_04_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374648807, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/74a85dadabed082fb30f1199cc00282e.jpg', 'username': None, 'uploaded_at': 1753988887, 'text': 'image_31072025_21_04_53_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374648804, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/224a999cf8bc48bea806c0efe1d21d38.jpg', 'username': None, 'uploaded_at': 1753988887, 'text': 'image_31072025_21_07_04_010162m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ??????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020215511322021484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25560280, '2025-07-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-07-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2034079,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20872998237609863 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= 2034079 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25516129, 'dashboard_result_id': 13468576, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_01-08-2025_05_34_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25516552, 'dashboard_result_id': 13468577, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_01-08-2025_05_35_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25516863, 'dashboard_result_id': 13468578, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_01-08-2025_05_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25517204, 'dashboard_result_id': 13468579, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_01-08-2025_05_35_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25517620, 'dashboard_result_id': 13468580, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_01-08-2025_05_36_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25518153, 'dashboard_result_id': 13468581, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_01-08-2025_05_36_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25518649, 'dashboard_result_id': 13468582, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_01-08-2025_05_37_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25519140, 'dashboard_result_id': 13468583, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_01-08-2025_05_37_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25519626, 'dashboard_result_id': 13468584, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_01-08-2025_05_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25520305, 'dashboard_result_id': 13468585, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_01-08-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25520841, 'dashboard_result_id': 13468586, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_01-08-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25521307, 'dashboard_result_id': 13468587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_01-08-2025_05_39_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25521737, 'dashboard_result_id': 13468588, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_01-08-2025_05_39_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25522256, 'dashboard_result_id': 13468589, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_01-08-2025_05_39_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25522735, 'dashboard_result_id': 13468590, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_01-08-2025_05_40_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25523075, 'dashboard_result_id': 13468591, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_01-08-2025_05_40_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25523385, 'dashboard_result_id': 13468592, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_01-08-2025_05_41_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25523818, 'dashboard_result_id': 13468593, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_01-08-2025_05_41_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25524141, 'dashboard_result_id': 13468594, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_01-08-2025_05_41_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25524518, 'dashboard_result_id': 13468595, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_01-08-2025_05_42_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25524912, 'dashboard_result_id': 13468596, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_01-08-2025_05_42_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25525411, 'dashboard_result_id': 13468597, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_01-08-2025_05_43_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25525840, 'dashboard_result_id': 13468598, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_01-08-2025_05_43_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25526254, 'dashboard_result_id': 13468599, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_01-08-2025_05_43_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25526644, 'dashboard_result_id': 13468600, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_01-08-2025_05_44_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25527147, 'dashboard_result_id': 13468601, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_01-08-2025_05_44_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25527500, 'dashboard_result_id': 13468602, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_01-08-2025_05_45_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25527878, 'dashboard_result_id': 13468603, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_01-08-2025_05_45_42.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25528260, 'dashboard_result_id': 13468604, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_01-08-2025_05_45_38.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25528614, 'dashboard_result_id': 13468605, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_01-08-2025_05_46_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25529145, 'dashboard_result_id': 13468606, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_01-08-2025_05_46_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25529519, 'dashboard_result_id': 13468607, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_01-08-2025_05_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25529875, 'dashboard_result_id': 13468608, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_01-08-2025_05_47_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25530428, 'dashboard_result_id': 13468609, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530428_01-08-2025_05_47_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530444, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25530844, 'dashboard_result_id': 13468610, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530844_01-08-2025_05_48_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530886, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25531293, 'dashboard_result_id': 13468611, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531293_01-08-2025_05_48_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531306, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25531730, 'dashboard_result_id': 13468612, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531730_01-08-2025_05_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531746, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25532281, 'dashboard_result_id': 13468613, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532281_01-08-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532303, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25532744, 'dashboard_result_id': 13468614, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532744_01-08-2025_05_50_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532772, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25533327, 'dashboard_result_id': 13468615, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533327_01-08-2025_05_50_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25533348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533358, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25533798, 'dashboard_result_id': 13468616, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533798_01-08-2025_05_51_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25533844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533855, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25534450, 'dashboard_result_id': 13468617, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534450_01-08-2025_05_51_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534474, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25534879, 'dashboard_result_id': 13468618, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534879_01-08-2025_05_52_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534895, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25535278, 'dashboard_result_id': 13468619, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535278_01-08-2025_05_52_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535300, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25535847, 'dashboard_result_id': 13468620, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535847_01-08-2025_05_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535871, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25536476, 'dashboard_result_id': 13468621, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25536476_01-08-2025_05_53_45.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25536500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25536501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25536502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25536503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25536504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25536505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25536506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25536507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25536508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25536509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25536510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25536511, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25537126, 'dashboard_result_id': 13468622, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537126_01-08-2025_05_53_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537147, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25537694, 'dashboard_result_id': 13468623, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537694_01-08-2025_05_54_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25537733, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25538360, 'dashboard_result_id': 13468624, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538360_01-08-2025_05_54_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538388, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25538914, 'dashboard_result_id': 13468625, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538914_01-08-2025_05_55_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538948, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25539526, 'dashboard_result_id': 13468626, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25539526_01-08-2025_05_55_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25539560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25539561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25539562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25539563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25539564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25539565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25539566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25539567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25539568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25539569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25539570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25539571, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25540059, 'dashboard_result_id': 13468627, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540059_01-08-2025_05_56_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540084, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25540490, 'dashboard_result_id': 13468628, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540490_01-08-2025_05_56_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25540529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540541, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25541148, 'dashboard_result_id': 13468629, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541148_01-08-2025_05_57_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541175, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25541698, 'dashboard_result_id': 13468630, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541698_01-08-2025_05_58_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541725, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25542402, 'dashboard_result_id': 13468631, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542402_01-08-2025_05_58_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25542446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25542447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25542448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25542449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25542450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25542451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25542452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25542453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25542454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25542455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25542456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25542457, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25542966, 'dashboard_result_id': 13468632, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542966_01-08-2025_05_59_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543011, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25543819, 'dashboard_result_id': 13468633, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25543819_01-08-2025_05_59_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543849, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25544523, 'dashboard_result_id': 13468634, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25544523_01-08-2025_06_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25544542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25544543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25544544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25544545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25544546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25544547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25544548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25544549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25544550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25544551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25544552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25544553, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25545130, 'dashboard_result_id': 13468635, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545130_01-08-2025_06_00_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25545166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545176, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25545698, 'dashboard_result_id': 13468636, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545698_01-08-2025_06_01_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25545732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545743, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25546404, 'dashboard_result_id': 13468637, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25546404_01-08-2025_06_01_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25546419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25546420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25546421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25546422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25546423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25546424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25546425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25546426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25546427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25546428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25546429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25546430, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25547085, 'dashboard_result_id': 13468638, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547085_01-08-2025_06_02_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25547094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547105, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25547583, 'dashboard_result_id': 13468639, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547583_01-08-2025_06_02_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25547606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547614, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25548087, 'dashboard_result_id': 13468640, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548087_01-08-2025_06_03_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548104, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548109, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25548742, 'dashboard_result_id': 13468641, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548742_01-08-2025_06_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548787, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25549357, 'dashboard_result_id': 13468642, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25549357_01-08-2025_06_04_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25549408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25549409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25549410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25549411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25549412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25549413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25549414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25549415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25549416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25549418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25549419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25549420, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25550046, 'dashboard_result_id': 13468643, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550046_01-08-2025_06_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25550078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550084, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25550578, 'dashboard_result_id': 13468644, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550578_01-08-2025_06_05_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25550622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550633, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25551369, 'dashboard_result_id': 13468645, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25551369_01-08-2025_06_05_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25551395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25551396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25551397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25551398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25551399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25551400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25551401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25551402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25551403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25551404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25551405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25551406, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25553198, 'dashboard_result_id': 13468646, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553198_01-08-2025_06_05_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25553207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25553208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25553209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25553210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25553211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25553212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25553213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25553214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25553215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25553216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25553217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25553218, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25553813, 'dashboard_result_id': 13468647, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553813_01-08-2025_06_06_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25553824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25553825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25553826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25553827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25553828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25553829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25553830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25553831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25553832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25553833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25553834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25553835, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25554245, 'dashboard_result_id': 13468648, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554245_01-08-2025_06_06_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25554253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25554254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25554255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25554256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25554257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25554258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25554259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25554260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25554261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25554262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25554263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25554264, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25554842, 'dashboard_result_id': 13468649, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554842_01-08-2025_06_07_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25554885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25554886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25554887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25554888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25554889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25554890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25554891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25554892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25554893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25554894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25554895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25554896, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25555274, 'dashboard_result_id': 13468650, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25555274_01-08-2025_06_07_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25555300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25555301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25555302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25555303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25555304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25555305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25555306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25555307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25555308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25555309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25555310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25555311, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25556046, 'dashboard_result_id': 13468651, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556046_01-08-2025_06_07_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25556068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556079, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25556589, 'dashboard_result_id': 13468652, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556589_01-08-2025_06_08_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25556610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556619, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25557240, 'dashboard_result_id': 13468653, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557240_01-08-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557279, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25557800, 'dashboard_result_id': 13468654, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_01-08-2025_06_09_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557827, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25558454, 'dashboard_result_id': 13468655, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25558454_01-08-2025_06_09_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25558466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25558467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25558468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25558469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25558470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25558471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25558472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25558473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25558474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25558475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25558476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25558477, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25559027, 'dashboard_result_id': 13468656, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25559027_01-08-2025_06_09_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25559049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25559050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25559051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25559052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25559053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25559054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25559055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25559056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25559057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25559058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25559059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25559060, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25560280, 'dashboard_result_id': 13468657, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560280_31-07-2025_21_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25560334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25560335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25560336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25560337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25560338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25560339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25560340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25560341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25560342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25560343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25560344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25560345, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25560657, 'dashboard_result_id': 13468658, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560657_31-07-2025_21_36_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25560684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25560685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25560686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25560687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25560688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25560689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25560690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25560691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25560692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25560693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25560694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25560695, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25561059, 'dashboard_result_id': 13468659, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561059_31-07-2025_21_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25561069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25561070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25561071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25561072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25561073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25561074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25561075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25561077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25561078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25561079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25561080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25561081, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25561547, 'dashboard_result_id': 13468660, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561547_31-07-2025_22_05_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25561588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25561589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25561590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25561591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25561592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25561593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25561594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25561595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25561596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25561597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25561600, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25562045, 'dashboard_result_id': 13468661, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562045_31-07-2025_22_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25562059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25562060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25562061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25562062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25562063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25562064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25562065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25562066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25562067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25562068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25562069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25562070, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25562905, 'dashboard_result_id': 13468662, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562905_31-07-2025_22_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25562916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25562917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25562918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25562919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25562920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25562921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25562922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25562923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25562924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25562925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25562926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25562927, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25563660, 'dashboard_result_id': 13468663, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25563660_31-07-2025_22_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25563705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25563706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25563708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25563709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25563710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25563712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25563713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25563714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25563716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25563717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25563718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25563720, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25564483, 'dashboard_result_id': 13468664, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25564483_31-07-2025_23_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25564503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25564504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25564506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25564507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25564508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25564509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25564510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25564511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25564512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25564513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25564514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25564515, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25565256, 'dashboard_result_id': 13468665, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565256_31-07-2025_23_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25565326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25565327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25565328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25565329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25565330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25565331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25565332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25565333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25565334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25565335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25565336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25565337, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25565942, 'dashboard_result_id': 13468666, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565942_31-07-2025_23_32_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25565979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25565980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25565981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25565982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25565983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25565984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25565985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25565986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25565987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25565988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25565989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25565990, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25566588, 'dashboard_result_id': 13468667, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25566588_31-07-2025_23_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25566597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25566598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25566599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25566600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25566601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25566602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25566603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25566604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25566605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25566606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25566607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25566608, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2050869, 'mtr_portfolio_id': 25567264, 'dashboard_result_id': 13468668, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567264_01-08-2025_00_00_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25567273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25567274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25567275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25567276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25567277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25567278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25567279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25567280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25567281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25567282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25567284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25567285, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25516129 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420861, 'mtr_portfolio_id': 25516129, 'created_at': datetime.datetime(2025, 8, 1, 5, 34, 30), 'result': '0.12193713324231807', 'result_long': None, 'result_double': None}] Qualite : 0.12193713324231807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_01-08-2025_05_34_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516129 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_01-08-2025_05_34_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}" where mtr_portfolio_id = 25516129 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468576, 0.12193713324231807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_01-08-2025_05_34_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25516552 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420862, 'mtr_portfolio_id': 25516552, 'created_at': datetime.datetime(2025, 8, 1, 5, 35, 2), 'result': '0.044902742839134924', 'result_long': None, 'result_double': None}] Qualite : 0.044902742839134924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_01-08-2025_05_35_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516552 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_01-08-2025_05_35_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}" where mtr_portfolio_id = 25516552 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468577, 0.044902742839134924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_01-08-2025_05_35_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25516863 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420863, 'mtr_portfolio_id': 25516863, 'created_at': datetime.datetime(2025, 8, 1, 5, 35, 27), 'result': '0.031975913392453724', 'result_long': None, 'result_double': None}] Qualite : 0.031975913392453724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_01-08-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_01-08-2025_05_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}" where mtr_portfolio_id = 25516863 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468578, 0.031975913392453724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_01-08-2025_05_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25517204 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420864, 'mtr_portfolio_id': 25517204, 'created_at': datetime.datetime(2025, 8, 1, 5, 35, 30), 'result': '0.06841272376470589', 'result_long': None, 'result_double': None}] Qualite : 0.06841272376470589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_01-08-2025_05_35_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_01-08-2025_05_35_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}" where mtr_portfolio_id = 25517204 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25517204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468579, 0.06841272376470589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_01-08-2025_05_35_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25517620 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420865, 'mtr_portfolio_id': 25517620, 'created_at': datetime.datetime(2025, 8, 1, 5, 36, 1), 'result': '0.11231447484602866', 'result_long': None, 'result_double': None}] Qualite : 0.11231447484602866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_01-08-2025_05_36_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517620 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_01-08-2025_05_36_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}" where mtr_portfolio_id = 25517620 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25517620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468580, 0.11231447484602866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_01-08-2025_05_36_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25518153 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420866, 'mtr_portfolio_id': 25518153, 'created_at': datetime.datetime(2025, 8, 1, 5, 36, 29), 'result': '0.10034210143151306', 'result_long': None, 'result_double': None}] Qualite : 0.10034210143151306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_01-08-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_01-08-2025_05_36_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}" where mtr_portfolio_id = 25518153 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25518153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468581, 0.10034210143151306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_01-08-2025_05_36_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25518649 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420867, 'mtr_portfolio_id': 25518649, 'created_at': datetime.datetime(2025, 8, 1, 5, 36, 59), 'result': '0.02191558326807052', 'result_long': None, 'result_double': None}] Qualite : 0.02191558326807052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_01-08-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518649 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_01-08-2025_05_37_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}" where mtr_portfolio_id = 25518649 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25518649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468582, 0.02191558326807052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_01-08-2025_05_37_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25519140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420868, 'mtr_portfolio_id': 25519140, 'created_at': datetime.datetime(2025, 8, 1, 5, 37, 27), 'result': '0.07508893614699616', 'result_long': None, 'result_double': None}] Qualite : 0.07508893614699616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_01-08-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_01-08-2025_05_37_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}" where mtr_portfolio_id = 25519140 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468583, 0.07508893614699616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_01-08-2025_05_37_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25519626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420869, 'mtr_portfolio_id': 25519626, 'created_at': datetime.datetime(2025, 8, 1, 5, 37, 28), 'result': '0.15042824762476398', 'result_long': None, 'result_double': None}] Qualite : 0.15042824762476398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_01-08-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_01-08-2025_05_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}" where mtr_portfolio_id = 25519626 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25519626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468584, 0.15042824762476398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_01-08-2025_05_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25520305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420870, 'mtr_portfolio_id': 25520305, 'created_at': datetime.datetime(2025, 8, 1, 5, 37, 57), 'result': '0.050418820624836574', 'result_long': None, 'result_double': None}] Qualite : 0.050418820624836574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_01-08-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520305 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_01-08-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}" where mtr_portfolio_id = 25520305 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25520305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468585, 0.050418820624836574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_01-08-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25520841 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420871, 'mtr_portfolio_id': 25520841, 'created_at': datetime.datetime(2025, 8, 1, 5, 38, 28), 'result': '0.05847893604401684', 'result_long': None, 'result_double': None}] Qualite : 0.05847893604401684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_01-08-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520841 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_01-08-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}" where mtr_portfolio_id = 25520841 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25520841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468586, 0.05847893604401684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_01-08-2025_05_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25521307 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420872, 'mtr_portfolio_id': 25521307, 'created_at': datetime.datetime(2025, 8, 1, 5, 38, 56), 'result': '0.07904000005299237', 'result_long': None, 'result_double': None}] Qualite : 0.07904000005299237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_01-08-2025_05_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521307 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_01-08-2025_05_39_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}" where mtr_portfolio_id = 25521307 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25521307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468587, 0.07904000005299237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_01-08-2025_05_39_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25521737 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420873, 'mtr_portfolio_id': 25521737, 'created_at': datetime.datetime(2025, 8, 1, 5, 39, 30), 'result': '0.014298299204653692', 'result_long': None, 'result_double': None}] Qualite : 0.014298299204653692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_01-08-2025_05_39_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521737 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_01-08-2025_05_39_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}" where mtr_portfolio_id = 25521737 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25521737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468588, 0.014298299204653692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_01-08-2025_05_39_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25522256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420874, 'mtr_portfolio_id': 25522256, 'created_at': datetime.datetime(2025, 8, 1, 5, 39, 31), 'result': '0.03337019429160185', 'result_long': None, 'result_double': None}] Qualite : 0.03337019429160185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_01-08-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_01-08-2025_05_39_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}" where mtr_portfolio_id = 25522256 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25522256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468589, 0.03337019429160185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_01-08-2025_05_39_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25522735 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420875, 'mtr_portfolio_id': 25522735, 'created_at': datetime.datetime(2025, 8, 1, 5, 39, 59), 'result': '0.015714648701642922', 'result_long': None, 'result_double': None}] Qualite : 0.015714648701642922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_01-08-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522735 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_01-08-2025_05_40_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}" where mtr_portfolio_id = 25522735 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25522735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468590, 0.015714648701642922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_01-08-2025_05_40_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25523075 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420876, 'mtr_portfolio_id': 25523075, 'created_at': datetime.datetime(2025, 8, 1, 5, 40, 29), 'result': '0.04700905056536481', 'result_long': None, 'result_double': None}] Qualite : 0.04700905056536481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_01-08-2025_05_40_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523075 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_01-08-2025_05_40_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}" where mtr_portfolio_id = 25523075 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25523075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468591, 0.04700905056536481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_01-08-2025_05_40_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25523385 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420877, 'mtr_portfolio_id': 25523385, 'created_at': datetime.datetime(2025, 8, 1, 5, 40, 59), 'result': '0.08436949260554179', 'result_long': None, 'result_double': None}] Qualite : 0.08436949260554179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_01-08-2025_05_41_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523385 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_01-08-2025_05_41_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}" where mtr_portfolio_id = 25523385 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25523385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468592, 0.08436949260554179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_01-08-2025_05_41_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25523818 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420878, 'mtr_portfolio_id': 25523818, 'created_at': datetime.datetime(2025, 8, 1, 5, 41, 28), 'result': '0.07638470951750931', 'result_long': None, 'result_double': None}] Qualite : 0.07638470951750931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_01-08-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523818 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_01-08-2025_05_41_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}" where mtr_portfolio_id = 25523818 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25523818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468593, 0.07638470951750931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_01-08-2025_05_41_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25524141 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420879, 'mtr_portfolio_id': 25524141, 'created_at': datetime.datetime(2025, 8, 1, 5, 41, 30), 'result': '0.015101512533748229', 'result_long': None, 'result_double': None}] Qualite : 0.015101512533748229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_01-08-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524141 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_01-08-2025_05_41_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}" where mtr_portfolio_id = 25524141 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25524141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468594, 0.015101512533748229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_01-08-2025_05_41_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25524518 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420880, 'mtr_portfolio_id': 25524518, 'created_at': datetime.datetime(2025, 8, 1, 5, 41, 57), 'result': '0.0032177157832730076', 'result_long': None, 'result_double': None}] Qualite : 0.0032177157832730076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_01-08-2025_05_42_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524518 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_01-08-2025_05_42_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}" where mtr_portfolio_id = 25524518 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25524518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468595, 0.0032177157832730076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_01-08-2025_05_42_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25524912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420881, 'mtr_portfolio_id': 25524912, 'created_at': datetime.datetime(2025, 8, 1, 5, 42, 28), 'result': '0.03704469321256852', 'result_long': None, 'result_double': None}] Qualite : 0.03704469321256852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_01-08-2025_05_42_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_01-08-2025_05_42_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}" where mtr_portfolio_id = 25524912 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25524912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468596, 0.03704469321256852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_01-08-2025_05_42_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25525411 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420882, 'mtr_portfolio_id': 25525411, 'created_at': datetime.datetime(2025, 8, 1, 5, 42, 58), 'result': '0.04333010024824825', 'result_long': None, 'result_double': None}] Qualite : 0.04333010024824825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_01-08-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525411 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_01-08-2025_05_43_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}" where mtr_portfolio_id = 25525411 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25525411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468597, 0.04333010024824825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_01-08-2025_05_43_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25525840 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420883, 'mtr_portfolio_id': 25525840, 'created_at': datetime.datetime(2025, 8, 1, 5, 43, 29), 'result': '0.04023532494465143', 'result_long': None, 'result_double': None}] Qualite : 0.04023532494465143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_01-08-2025_05_43_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_01-08-2025_05_43_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}" where mtr_portfolio_id = 25525840 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25525840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468598, 0.04023532494465143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_01-08-2025_05_43_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526254 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420884, 'mtr_portfolio_id': 25526254, 'created_at': datetime.datetime(2025, 8, 1, 5, 43, 28), 'result': '0.03576036131693111', 'result_long': None, 'result_double': None}] Qualite : 0.03576036131693111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25526254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_01-08-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526254 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_01-08-2025_05_43_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}" where mtr_portfolio_id = 25526254 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25526254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468599, 0.03576036131693111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_01-08-2025_05_43_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526644 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 = 25526644 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 = 25526644 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526644 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 = 25526644 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': 3420885, 'mtr_portfolio_id': 25526644, 'created_at': datetime.datetime(2025, 8, 1, 5, 43, 59), '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 = 25526644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_01-08-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526644 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_01-08-2025_05_44_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}" where mtr_portfolio_id = 25526644 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25526644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468600, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_01-08-2025_05_44_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25527147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420886, 'mtr_portfolio_id': 25527147, 'created_at': datetime.datetime(2025, 8, 1, 5, 44, 28), 'result': '0.006105502091074457', 'result_long': None, 'result_double': None}] Qualite : 0.006105502091074457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_01-08-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_01-08-2025_05_44_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}" where mtr_portfolio_id = 25527147 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25527147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468601, 0.006105502091074457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_01-08-2025_05_44_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25527500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420887, 'mtr_portfolio_id': 25527500, 'created_at': datetime.datetime(2025, 8, 1, 5, 44, 58), 'result': '0.04430495137837473', 'result_long': None, 'result_double': None}] Qualite : 0.04430495137837473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_01-08-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_01-08-2025_05_45_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}" where mtr_portfolio_id = 25527500 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25527500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468602, 0.04430495137837473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_01-08-2025_05_45_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25527878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420888, 'mtr_portfolio_id': 25527878, 'created_at': datetime.datetime(2025, 8, 1, 5, 45, 36), 'result': '0.03931404388397799', 'result_long': None, 'result_double': None}] Qualite : 0.03931404388397799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_01-08-2025_05_45_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_01-08-2025_05_45_42.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}" where mtr_portfolio_id = 25527878 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25527878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468603, 0.03931404388397799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_01-08-2025_05_45_42.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25528260 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420889, 'mtr_portfolio_id': 25528260, 'created_at': datetime.datetime(2025, 8, 1, 5, 45, 34), 'result': '0.0325475361356329', 'result_long': None, 'result_double': None}] Qualite : 0.0325475361356329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_01-08-2025_05_45_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528260 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_01-08-2025_05_45_38.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}" where mtr_portfolio_id = 25528260 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468604, 0.0325475361356329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_01-08-2025_05_45_38.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25528614 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420890, 'mtr_portfolio_id': 25528614, 'created_at': datetime.datetime(2025, 8, 1, 5, 45, 59), 'result': '0.04558794043176451', 'result_long': None, 'result_double': None}] Qualite : 0.04558794043176451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_01-08-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528614 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_01-08-2025_05_46_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}" where mtr_portfolio_id = 25528614 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468605, 0.04558794043176451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_01-08-2025_05_46_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25529145 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420891, 'mtr_portfolio_id': 25529145, 'created_at': datetime.datetime(2025, 8, 1, 5, 46, 28), 'result': '0.03984031662063642', 'result_long': None, 'result_double': None}] Qualite : 0.03984031662063642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_01-08-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529145 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_01-08-2025_05_46_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}" where mtr_portfolio_id = 25529145 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25529145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468606, 0.03984031662063642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_01-08-2025_05_46_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25529519 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420892, 'mtr_portfolio_id': 25529519, 'created_at': datetime.datetime(2025, 8, 1, 5, 46, 58), 'result': '0.03513711746257536', 'result_long': None, 'result_double': None}] Qualite : 0.03513711746257536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_01-08-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529519 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_01-08-2025_05_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}" where mtr_portfolio_id = 25529519 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25529519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468607, 0.03513711746257536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_01-08-2025_05_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25529875 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420893, 'mtr_portfolio_id': 25529875, 'created_at': datetime.datetime(2025, 8, 1, 5, 47, 32), 'result': '0.06969588465041301', 'result_long': None, 'result_double': None}] Qualite : 0.06969588465041301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_01-08-2025_05_47_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529875 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_01-08-2025_05_47_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}" where mtr_portfolio_id = 25529875 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25529875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468608, 0.06969588465041301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_01-08-2025_05_47_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25530428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420894, 'mtr_portfolio_id': 25530428, 'created_at': datetime.datetime(2025, 8, 1, 5, 47, 29), 'result': '0.041563565406576006', 'result_long': None, 'result_double': None}] Qualite : 0.041563565406576006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25530428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530428_01-08-2025_05_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25530428 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530428_01-08-2025_05_47_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530444, 'pht': 3726}}" where mtr_portfolio_id = 25530428 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25530428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468609, 0.041563565406576006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530428_01-08-2025_05_47_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530444, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25530844 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420895, 'mtr_portfolio_id': 25530844, 'created_at': datetime.datetime(2025, 8, 1, 5, 47, 57), 'result': '0.06038550539900049', 'result_long': None, 'result_double': None}] Qualite : 0.06038550539900049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25530844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530844_01-08-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25530844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530844_01-08-2025_05_48_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530886, 'pht': 3726}}" where mtr_portfolio_id = 25530844 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25530844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468610, 0.06038550539900049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530844_01-08-2025_05_48_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530886, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25531293 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420896, 'mtr_portfolio_id': 25531293, 'created_at': datetime.datetime(2025, 8, 1, 5, 48, 30), 'result': '0.0208918427763168', 'result_long': None, 'result_double': None}] Qualite : 0.0208918427763168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25531293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531293_01-08-2025_05_48_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25531293 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531293_01-08-2025_05_48_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531306, 'pht': 3726}}" where mtr_portfolio_id = 25531293 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25531293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468611, 0.0208918427763168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531293_01-08-2025_05_48_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531306, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25531730 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420897, 'mtr_portfolio_id': 25531730, 'created_at': datetime.datetime(2025, 8, 1, 5, 49), 'result': '0.005248081056926471', 'result_long': None, 'result_double': None}] Qualite : 0.005248081056926471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25531730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531730_01-08-2025_05_49_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25531730 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531730_01-08-2025_05_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531746, 'pht': 3726}}" where mtr_portfolio_id = 25531730 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25531730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468612, 0.005248081056926471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531730_01-08-2025_05_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531746, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25532281 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420898, 'mtr_portfolio_id': 25532281, 'created_at': datetime.datetime(2025, 8, 1, 5, 49, 30), 'result': '0.018732843412357127', 'result_long': None, 'result_double': None}] Qualite : 0.018732843412357127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25532281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532281_01-08-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25532281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532281_01-08-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532303, 'pht': 3726}}" where mtr_portfolio_id = 25532281 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25532281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468613, 0.018732843412357127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532281_01-08-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532303, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25532744 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420899, 'mtr_portfolio_id': 25532744, 'created_at': datetime.datetime(2025, 8, 1, 5, 49, 59), 'result': '0.03758670610379819', 'result_long': None, 'result_double': None}] Qualite : 0.03758670610379819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25532744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532744_01-08-2025_05_50_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25532744 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532744_01-08-2025_05_50_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532772, 'pht': 3726}}" where mtr_portfolio_id = 25532744 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25532744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468614, 0.03758670610379819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532744_01-08-2025_05_50_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25533327 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420900, 'mtr_portfolio_id': 25533327, 'created_at': datetime.datetime(2025, 8, 1, 5, 50, 30), 'result': '0.030824034978283926', 'result_long': None, 'result_double': None}] Qualite : 0.030824034978283926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25533327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533327_01-08-2025_05_50_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25533327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533327_01-08-2025_05_50_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25533348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533358, 'pht': 3726}}" where mtr_portfolio_id = 25533327 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25533327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468615, 0.030824034978283926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533327_01-08-2025_05_50_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25533348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533358, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25533798 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420901, 'mtr_portfolio_id': 25533798, 'created_at': datetime.datetime(2025, 8, 1, 5, 51, 28), 'result': '0.030507510762560922', 'result_long': None, 'result_double': None}] Qualite : 0.030507510762560922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25533798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533798_01-08-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25533798 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533798_01-08-2025_05_51_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25533844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533855, 'pht': 3726}}" where mtr_portfolio_id = 25533798 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25533798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468616, 0.030507510762560922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533798_01-08-2025_05_51_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25533844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533855, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25534450 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420902, 'mtr_portfolio_id': 25534450, 'created_at': datetime.datetime(2025, 8, 1, 5, 51, 29), 'result': '0.028129259404767973', 'result_long': None, 'result_double': None}] Qualite : 0.028129259404767973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25534450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534450_01-08-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25534450 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534450_01-08-2025_05_51_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534474, 'pht': 3726}}" where mtr_portfolio_id = 25534450 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25534450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468617, 0.028129259404767973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534450_01-08-2025_05_51_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534474, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25534879 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420903, 'mtr_portfolio_id': 25534879, 'created_at': datetime.datetime(2025, 8, 1, 5, 51, 58), 'result': '0.030621313680956355', 'result_long': None, 'result_double': None}] Qualite : 0.030621313680956355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25534879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534879_01-08-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25534879 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534879_01-08-2025_05_52_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534895, 'pht': 3726}}" where mtr_portfolio_id = 25534879 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25534879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468618, 0.030621313680956355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534879_01-08-2025_05_52_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534895, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25535278 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420904, 'mtr_portfolio_id': 25535278, 'created_at': datetime.datetime(2025, 8, 1, 5, 52, 28), 'result': '0.037937956885036254', 'result_long': None, 'result_double': None}] Qualite : 0.037937956885036254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25535278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535278_01-08-2025_05_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25535278 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535278_01-08-2025_05_52_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535300, 'pht': 3726}}" where mtr_portfolio_id = 25535278 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25535278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468619, 0.037937956885036254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535278_01-08-2025_05_52_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535300, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25535847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420905, 'mtr_portfolio_id': 25535847, 'created_at': datetime.datetime(2025, 8, 1, 5, 52, 57), 'result': '0.0308310618677249', 'result_long': None, 'result_double': None}] Qualite : 0.0308310618677249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25535847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535847_01-08-2025_05_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25535847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535847_01-08-2025_05_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535871, 'pht': 3726}}" where mtr_portfolio_id = 25535847 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25535847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468620, 0.0308310618677249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535847_01-08-2025_05_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535871, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25536476 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420906, 'mtr_portfolio_id': 25536476, 'created_at': datetime.datetime(2025, 8, 1, 5, 53, 41), 'result': '0.017390448757638188', 'result_long': None, 'result_double': None}] Qualite : 0.017390448757638188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25536476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25536476_01-08-2025_05_53_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25536476 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25536476_01-08-2025_05_53_45.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25536500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25536501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25536502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25536503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25536504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25536505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25536506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25536507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25536508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25536509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25536510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25536511, 'pht': 3726}}" where mtr_portfolio_id = 25536476 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25536476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468621, 0.017390448757638188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25536476_01-08-2025_05_53_45.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25536500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25536501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25536502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25536503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25536504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25536505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25536506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25536507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25536508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25536509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25536510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25536511, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25537126 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420907, 'mtr_portfolio_id': 25537126, 'created_at': datetime.datetime(2025, 8, 1, 5, 53, 39), 'result': '0.03634040757866791', 'result_long': None, 'result_double': None}] Qualite : 0.03634040757866791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25537126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537126_01-08-2025_05_53_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25537126 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537126_01-08-2025_05_53_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537147, 'pht': 3726}}" where mtr_portfolio_id = 25537126 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25537126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468622, 0.03634040757866791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537126_01-08-2025_05_53_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537147, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25537694 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420908, 'mtr_portfolio_id': 25537694, 'created_at': datetime.datetime(2025, 8, 1, 5, 53, 57), 'result': '0.03269558375170644', 'result_long': None, 'result_double': None}] Qualite : 0.03269558375170644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25537694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537694_01-08-2025_05_54_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25537694 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537694_01-08-2025_05_54_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25537733, 'pht': 3726}}" where mtr_portfolio_id = 25537694 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25537694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468623, 0.03269558375170644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537694_01-08-2025_05_54_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25537733, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25538360 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420909, 'mtr_portfolio_id': 25538360, 'created_at': datetime.datetime(2025, 8, 1, 5, 54, 30), 'result': '0.04239446476108106', 'result_long': None, 'result_double': None}] Qualite : 0.04239446476108106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25538360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538360_01-08-2025_05_54_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25538360 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538360_01-08-2025_05_54_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538388, 'pht': 3726}}" where mtr_portfolio_id = 25538360 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25538360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468624, 0.04239446476108106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538360_01-08-2025_05_54_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538388, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25538914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420910, 'mtr_portfolio_id': 25538914, 'created_at': datetime.datetime(2025, 8, 1, 5, 54, 58), 'result': '0.05457951694160916', 'result_long': None, 'result_double': None}] Qualite : 0.05457951694160916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25538914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538914_01-08-2025_05_55_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25538914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538914_01-08-2025_05_55_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538948, 'pht': 3726}}" where mtr_portfolio_id = 25538914 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25538914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468625, 0.05457951694160916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538914_01-08-2025_05_55_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538948, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25539526 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420911, 'mtr_portfolio_id': 25539526, 'created_at': datetime.datetime(2025, 8, 1, 5, 55, 27), 'result': '0.03875743385090153', 'result_long': None, 'result_double': None}] Qualite : 0.03875743385090153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25539526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25539526_01-08-2025_05_55_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25539526 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25539526_01-08-2025_05_55_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25539560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25539561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25539562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25539563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25539564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25539565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25539566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25539567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25539568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25539569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25539570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25539571, 'pht': 3726}}" where mtr_portfolio_id = 25539526 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25539526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468626, 0.03875743385090153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25539526_01-08-2025_05_55_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25539560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25539561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25539562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25539563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25539564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25539565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25539566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25539567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25539568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25539569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25539570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25539571, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25540059 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420912, 'mtr_portfolio_id': 25540059, 'created_at': datetime.datetime(2025, 8, 1, 5, 55, 58), 'result': '0.06302732127758968', 'result_long': None, 'result_double': None}] Qualite : 0.06302732127758968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25540059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540059_01-08-2025_05_56_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25540059 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540059_01-08-2025_05_56_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540084, 'pht': 3726}}" where mtr_portfolio_id = 25540059 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25540059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468627, 0.06302732127758968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540059_01-08-2025_05_56_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540084, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25540490 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420913, 'mtr_portfolio_id': 25540490, 'created_at': datetime.datetime(2025, 8, 1, 5, 56, 27), 'result': '0.12105518821581356', 'result_long': None, 'result_double': None}] Qualite : 0.12105518821581356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25540490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540490_01-08-2025_05_56_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25540490 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540490_01-08-2025_05_56_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25540529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540541, 'pht': 3726}}" where mtr_portfolio_id = 25540490 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25540490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468628, 0.12105518821581356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540490_01-08-2025_05_56_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25540529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540541, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25541148 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420914, 'mtr_portfolio_id': 25541148, 'created_at': datetime.datetime(2025, 8, 1, 5, 57, 29), 'result': '0.050678104936128066', 'result_long': None, 'result_double': None}] Qualite : 0.050678104936128066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25541148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541148_01-08-2025_05_57_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25541148 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541148_01-08-2025_05_57_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541175, 'pht': 3726}}" where mtr_portfolio_id = 25541148 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25541148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468629, 0.050678104936128066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541148_01-08-2025_05_57_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541175, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25541698 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420915, 'mtr_portfolio_id': 25541698, 'created_at': datetime.datetime(2025, 8, 1, 5, 58, 1), 'result': '0.05325742339100534', 'result_long': None, 'result_double': None}] Qualite : 0.05325742339100534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25541698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541698_01-08-2025_05_58_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25541698 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541698_01-08-2025_05_58_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541725, 'pht': 3726}}" where mtr_portfolio_id = 25541698 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25541698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468630, 0.05325742339100534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541698_01-08-2025_05_58_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541725, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25542402 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420916, 'mtr_portfolio_id': 25542402, 'created_at': datetime.datetime(2025, 8, 1, 5, 58, 30), 'result': '0.02856941366263132', 'result_long': None, 'result_double': None}] Qualite : 0.02856941366263132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25542402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542402_01-08-2025_05_58_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25542402 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542402_01-08-2025_05_58_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25542446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25542447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25542448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25542449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25542450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25542451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25542452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25542453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25542454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25542455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25542456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25542457, 'pht': 3726}}" where mtr_portfolio_id = 25542402 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25542402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468631, 0.02856941366263132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542402_01-08-2025_05_58_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25542446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25542447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25542448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25542449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25542450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25542451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25542452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25542453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25542454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25542455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25542456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25542457, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25542966 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420917, 'mtr_portfolio_id': 25542966, 'created_at': datetime.datetime(2025, 8, 1, 5, 58, 59), 'result': '0.07392929834899516', 'result_long': None, 'result_double': None}] Qualite : 0.07392929834899516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25542966 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542966_01-08-2025_05_59_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25542966 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542966_01-08-2025_05_59_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543011, 'pht': 3726}}" where mtr_portfolio_id = 25542966 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25542966 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468632, 0.07392929834899516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542966_01-08-2025_05_59_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543011, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25543819 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420918, 'mtr_portfolio_id': 25543819, 'created_at': datetime.datetime(2025, 8, 1, 5, 59, 30), 'result': '0.03695468940274182', 'result_long': None, 'result_double': None}] Qualite : 0.03695468940274182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25543819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25543819_01-08-2025_05_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25543819 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25543819_01-08-2025_05_59_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543849, 'pht': 3726}}" where mtr_portfolio_id = 25543819 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25543819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468633, 0.03695468940274182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25543819_01-08-2025_05_59_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543849, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25544523 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420919, 'mtr_portfolio_id': 25544523, 'created_at': datetime.datetime(2025, 8, 1, 5, 59, 59), 'result': '0.05287990011842377', 'result_long': None, 'result_double': None}] Qualite : 0.05287990011842377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25544523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25544523_01-08-2025_06_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25544523 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25544523_01-08-2025_06_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25544542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25544543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25544544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25544545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25544546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25544547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25544548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25544549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25544550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25544551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25544552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25544553, 'pht': 3726}}" where mtr_portfolio_id = 25544523 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25544523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468634, 0.05287990011842377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25544523_01-08-2025_06_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25544542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25544543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25544544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25544545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25544546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25544547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25544548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25544549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25544550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25544551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25544552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25544553, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25545130 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420920, 'mtr_portfolio_id': 25545130, 'created_at': datetime.datetime(2025, 8, 1, 6, 0, 31), 'result': '0.0404041093639037', 'result_long': None, 'result_double': None}] Qualite : 0.0404041093639037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25545130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545130_01-08-2025_06_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25545130 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545130_01-08-2025_06_00_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25545166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545176, 'pht': 3726}}" where mtr_portfolio_id = 25545130 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25545130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468635, 0.0404041093639037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545130_01-08-2025_06_00_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25545166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545176, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25545698 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420921, 'mtr_portfolio_id': 25545698, 'created_at': datetime.datetime(2025, 8, 1, 6, 0, 58), 'result': '0.04020107126896595', 'result_long': None, 'result_double': None}] Qualite : 0.04020107126896595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25545698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545698_01-08-2025_06_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25545698 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545698_01-08-2025_06_01_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25545732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545743, 'pht': 3726}}" where mtr_portfolio_id = 25545698 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25545698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468636, 0.04020107126896595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545698_01-08-2025_06_01_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25545732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545743, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25546404 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420922, 'mtr_portfolio_id': 25546404, 'created_at': datetime.datetime(2025, 8, 1, 6, 1, 28), 'result': '0.02678002455914884', 'result_long': None, 'result_double': None}] Qualite : 0.02678002455914884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25546404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25546404_01-08-2025_06_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25546404 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25546404_01-08-2025_06_01_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25546419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25546420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25546421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25546422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25546423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25546424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25546425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25546426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25546427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25546428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25546429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25546430, 'pht': 3726}}" where mtr_portfolio_id = 25546404 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25546404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468637, 0.02678002455914884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25546404_01-08-2025_06_01_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25546419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25546420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25546421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25546422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25546423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25546424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25546425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25546426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25546427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25546428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25546429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25546430, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25547085 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420923, 'mtr_portfolio_id': 25547085, 'created_at': datetime.datetime(2025, 8, 1, 6, 1, 58), 'result': '0.03193440724542859', 'result_long': None, 'result_double': None}] Qualite : 0.03193440724542859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25547085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547085_01-08-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25547085 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547085_01-08-2025_06_02_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25547094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547105, 'pht': 3726}}" where mtr_portfolio_id = 25547085 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25547085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468638, 0.03193440724542859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547085_01-08-2025_06_02_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25547094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547105, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25547583 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420924, 'mtr_portfolio_id': 25547583, 'created_at': datetime.datetime(2025, 8, 1, 6, 2, 29), 'result': '0.0669121481684039', 'result_long': None, 'result_double': None}] Qualite : 0.0669121481684039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25547583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547583_01-08-2025_06_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25547583 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547583_01-08-2025_06_02_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25547606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547614, 'pht': 3726}}" where mtr_portfolio_id = 25547583 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25547583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468639, 0.0669121481684039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547583_01-08-2025_06_02_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25547606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547614, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25548087 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420925, 'mtr_portfolio_id': 25548087, 'created_at': datetime.datetime(2025, 8, 1, 6, 2, 59), 'result': '0.05194369675820308', 'result_long': None, 'result_double': None}] Qualite : 0.05194369675820308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25548087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548087_01-08-2025_06_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25548087 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548087_01-08-2025_06_03_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548104, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548109, 'pht': 3726}}" where mtr_portfolio_id = 25548087 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25548087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468640, 0.05194369675820308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548087_01-08-2025_06_03_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548104, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548109, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25548742 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420926, 'mtr_portfolio_id': 25548742, 'created_at': datetime.datetime(2025, 8, 1, 6, 3, 29), 'result': '0.03193481724981401', 'result_long': None, 'result_double': None}] Qualite : 0.03193481724981401 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25548742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548742_01-08-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25548742 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548742_01-08-2025_06_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548787, 'pht': 3726}}" where mtr_portfolio_id = 25548742 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25548742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468641, 0.03193481724981401, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548742_01-08-2025_06_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548787, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25549357 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420927, 'mtr_portfolio_id': 25549357, 'created_at': datetime.datetime(2025, 8, 1, 6, 4), 'result': '0.03886413414567471', 'result_long': None, 'result_double': None}] Qualite : 0.03886413414567471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25549357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25549357_01-08-2025_06_04_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25549357 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25549357_01-08-2025_06_04_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25549408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25549409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25549410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25549411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25549412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25549413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25549414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25549415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25549416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25549418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25549419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25549420, 'pht': 3726}}" where mtr_portfolio_id = 25549357 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25549357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468642, 0.03886413414567471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25549357_01-08-2025_06_04_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25549408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25549409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25549410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25549411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25549412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25549413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25549414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25549415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25549416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25549418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25549419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25549420, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25550046 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420928, 'mtr_portfolio_id': 25550046, 'created_at': datetime.datetime(2025, 8, 1, 6, 4, 29), 'result': '0.039611609161562325', 'result_long': None, 'result_double': None}] Qualite : 0.039611609161562325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25550046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550046_01-08-2025_06_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25550046 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550046_01-08-2025_06_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25550078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550084, 'pht': 3726}}" where mtr_portfolio_id = 25550046 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25550046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468643, 0.039611609161562325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550046_01-08-2025_06_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25550078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550084, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25550578 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420929, 'mtr_portfolio_id': 25550578, 'created_at': datetime.datetime(2025, 8, 1, 6, 5), 'result': '0.03377501008346729', 'result_long': None, 'result_double': None}] Qualite : 0.03377501008346729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25550578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550578_01-08-2025_06_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25550578 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550578_01-08-2025_06_05_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25550622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550633, 'pht': 3726}}" where mtr_portfolio_id = 25550578 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25550578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468644, 0.03377501008346729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550578_01-08-2025_06_05_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25550622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550633, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25551369 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420930, 'mtr_portfolio_id': 25551369, 'created_at': datetime.datetime(2025, 8, 1, 6, 5, 28), 'result': '0.03776210605478062', 'result_long': None, 'result_double': None}] Qualite : 0.03776210605478062 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25551369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25551369_01-08-2025_06_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25551369 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25551369_01-08-2025_06_05_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25551395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25551396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25551397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25551398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25551399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25551400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25551401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25551402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25551403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25551404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25551405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25551406, 'pht': 3726}}" where mtr_portfolio_id = 25551369 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25551369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468645, 0.03776210605478062, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25551369_01-08-2025_06_05_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25551395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25551396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25551397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25551398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25551399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25551400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25551401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25551402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25551403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25551404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25551405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25551406, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25553198 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420931, 'mtr_portfolio_id': 25553198, 'created_at': datetime.datetime(2025, 8, 1, 6, 5, 29), 'result': '0.06381051051919012', 'result_long': None, 'result_double': None}] Qualite : 0.06381051051919012 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25553198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553198_01-08-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25553198 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553198_01-08-2025_06_05_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25553207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25553208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25553209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25553210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25553211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25553212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25553213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25553214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25553215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25553216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25553217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25553218, 'pht': 3726}}" where mtr_portfolio_id = 25553198 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25553198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468646, 0.06381051051919012, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553198_01-08-2025_06_05_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25553207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25553208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25553209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25553210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25553211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25553212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25553213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25553214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25553215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25553216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25553217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25553218, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25553813 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420932, 'mtr_portfolio_id': 25553813, 'created_at': datetime.datetime(2025, 8, 1, 6, 6), 'result': '0.06198314901536572', 'result_long': None, 'result_double': None}] Qualite : 0.06198314901536572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25553813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553813_01-08-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25553813 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553813_01-08-2025_06_06_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25553824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25553825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25553826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25553827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25553828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25553829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25553830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25553831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25553832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25553833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25553834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25553835, 'pht': 3726}}" where mtr_portfolio_id = 25553813 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25553813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468647, 0.06198314901536572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25553813_01-08-2025_06_06_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25553824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25553825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25553826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25553827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25553828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25553829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25553830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25553831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25553832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25553833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25553834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25553835, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25554245 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420933, 'mtr_portfolio_id': 25554245, 'created_at': datetime.datetime(2025, 8, 1, 6, 6, 29), 'result': '0.049043195781510895', 'result_long': None, 'result_double': None}] Qualite : 0.049043195781510895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25554245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554245_01-08-2025_06_06_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25554245 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554245_01-08-2025_06_06_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25554253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25554254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25554255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25554256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25554257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25554258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25554259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25554260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25554261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25554262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25554263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25554264, 'pht': 3726}}" where mtr_portfolio_id = 25554245 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25554245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468648, 0.049043195781510895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554245_01-08-2025_06_06_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25554253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25554254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25554255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25554256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25554257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25554258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25554259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25554260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25554261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25554262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25554263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25554264, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25554842 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420934, 'mtr_portfolio_id': 25554842, 'created_at': datetime.datetime(2025, 8, 1, 6, 6, 59), 'result': '0.04917824076979505', 'result_long': None, 'result_double': None}] Qualite : 0.04917824076979505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25554842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554842_01-08-2025_06_07_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25554842 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554842_01-08-2025_06_07_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25554885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25554886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25554887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25554888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25554889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25554890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25554891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25554892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25554893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25554894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25554895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25554896, 'pht': 3726}}" where mtr_portfolio_id = 25554842 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25554842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468649, 0.04917824076979505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25554842_01-08-2025_06_07_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25554885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25554886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25554887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25554888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25554889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25554890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25554891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25554892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25554893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25554894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25554895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25554896, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25555274 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420935, 'mtr_portfolio_id': 25555274, 'created_at': datetime.datetime(2025, 8, 1, 6, 7, 27), 'result': '0.049714249441779976', 'result_long': None, 'result_double': None}] Qualite : 0.049714249441779976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25555274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25555274_01-08-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25555274 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25555274_01-08-2025_06_07_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25555300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25555301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25555302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25555303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25555304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25555305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25555306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25555307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25555308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25555309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25555310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25555311, 'pht': 3726}}" where mtr_portfolio_id = 25555274 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25555274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468650, 0.049714249441779976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25555274_01-08-2025_06_07_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25555300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25555301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25555302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25555303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25555304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25555305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25555306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25555307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25555308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25555309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25555310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25555311, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25556046 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420936, 'mtr_portfolio_id': 25556046, 'created_at': datetime.datetime(2025, 8, 1, 6, 7, 34), 'result': '0.05926235661589091', 'result_long': None, 'result_double': None}] Qualite : 0.05926235661589091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25556046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556046_01-08-2025_06_07_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25556046 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556046_01-08-2025_06_07_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25556068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556079, 'pht': 3726}}" where mtr_portfolio_id = 25556046 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25556046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468651, 0.05926235661589091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556046_01-08-2025_06_07_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25556068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556079, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25556589 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420937, 'mtr_portfolio_id': 25556589, 'created_at': datetime.datetime(2025, 8, 1, 6, 8), 'result': '0.02754974008875439', 'result_long': None, 'result_double': None}] Qualite : 0.02754974008875439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25556589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556589_01-08-2025_06_08_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25556589 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556589_01-08-2025_06_08_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25556610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556619, 'pht': 3726}}" where mtr_portfolio_id = 25556589 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25556589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468652, 0.02754974008875439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556589_01-08-2025_06_08_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25556610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556619, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25557240 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420938, 'mtr_portfolio_id': 25557240, 'created_at': datetime.datetime(2025, 8, 1, 6, 8, 29), 'result': '0.05946304584216839', 'result_long': None, 'result_double': None}] Qualite : 0.05946304584216839 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25557240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557240_01-08-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25557240 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557240_01-08-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557279, 'pht': 3726}}" where mtr_portfolio_id = 25557240 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25557240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468653, 0.05946304584216839, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557240_01-08-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557279, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25557800 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420939, 'mtr_portfolio_id': 25557800, 'created_at': datetime.datetime(2025, 8, 1, 6, 9, 1), 'result': '0.034097039588360974', 'result_long': None, 'result_double': None}] Qualite : 0.034097039588360974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25557800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_01-08-2025_06_09_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25557800 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_01-08-2025_06_09_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557827, 'pht': 3726}}" where mtr_portfolio_id = 25557800 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25557800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468654, 0.034097039588360974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_01-08-2025_06_09_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557827, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25558454 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420940, 'mtr_portfolio_id': 25558454, 'created_at': datetime.datetime(2025, 8, 1, 6, 9, 28), 'result': '0.03062663481496922', 'result_long': None, 'result_double': None}] Qualite : 0.03062663481496922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25558454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25558454_01-08-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25558454 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25558454_01-08-2025_06_09_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25558466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25558467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25558468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25558469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25558470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25558471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25558472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25558473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25558474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25558475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25558476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25558477, 'pht': 3726}}" where mtr_portfolio_id = 25558454 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25558454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468655, 0.03062663481496922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25558454_01-08-2025_06_09_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25558466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25558467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25558468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25558469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25558470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25558471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25558472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25558473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25558474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25558475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25558476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25558477, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25559027 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420941, 'mtr_portfolio_id': 25559027, 'created_at': datetime.datetime(2025, 8, 1, 6, 9, 30), 'result': '0.047884979765820956', 'result_long': None, 'result_double': None}] Qualite : 0.047884979765820956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25559027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25559027_01-08-2025_06_09_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25559027 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25559027_01-08-2025_06_09_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25559049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25559050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25559051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25559052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25559053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25559054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25559055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25559056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25559057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25559058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25559059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25559060, 'pht': 3726}}" where mtr_portfolio_id = 25559027 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25559027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468656, 0.047884979765820956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25559027_01-08-2025_06_09_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25559049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25559050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25559051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25559052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25559053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25559054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25559055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25559056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25559057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25559058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25559059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25559060, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25560280 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3420942, 'mtr_portfolio_id': 25560280, 'created_at': datetime.datetime(2025, 8, 1, 6, 10), 'result': '0.04888352001353203', 'result_long': None, 'result_double': None}] Qualite : 0.04888352001353203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25560280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560280_01-08-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25560280 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560280_01-08-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25560334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25560335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25560336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25560337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25560338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25560339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25560340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25560341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25560342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25560343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25560344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25560345, 'pht': 3726}}" where mtr_portfolio_id = 25560280 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25560280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468657, 0.04888352001353203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560280_01-08-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25560334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25560335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25560336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25560337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25560338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25560339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25560340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25560341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25560342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25560343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25560344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25560345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25560657 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3416452, 'mtr_portfolio_id': 25560657, 'created_at': datetime.datetime(2025, 7, 31, 21, 36, 57), 'result': '0.03196184877524858', 'result_long': None, 'result_double': None}] Qualite : 0.03196184877524858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25560657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560657_31-07-2025_21_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25560657 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560657_31-07-2025_21_36_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25560684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25560685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25560686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25560687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25560688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25560689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25560690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25560691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25560692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25560693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25560694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25560695, 'pht': 3726}}" where mtr_portfolio_id = 25560657 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25560657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468658, 0.03196184877524858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25560657_31-07-2025_21_36_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25560684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25560685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25560686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25560687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25560688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25560689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25560690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25560691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25560692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25560693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25560694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25560695, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25561059 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3416526, 'mtr_portfolio_id': 25561059, 'created_at': datetime.datetime(2025, 7, 31, 21, 48, 59), 'result': '0.033722530806386285', 'result_long': None, 'result_double': None}] Qualite : 0.033722530806386285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25561059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561059_31-07-2025_21_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25561059 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561059_31-07-2025_21_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25561069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25561070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25561071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25561072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25561073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25561074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25561075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25561077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25561078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25561079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25561080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25561081, 'pht': 3726}}" where mtr_portfolio_id = 25561059 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25561059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468659, 0.033722530806386285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561059_31-07-2025_21_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25561069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25561070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25561071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25561072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25561073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25561074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25561075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25561077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25561078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25561079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25561080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25561081, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25561547 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3416631, 'mtr_portfolio_id': 25561547, 'created_at': datetime.datetime(2025, 7, 31, 22, 5, 28), 'result': '0.035655108193834786', 'result_long': None, 'result_double': None}] Qualite : 0.035655108193834786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25561547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561547_31-07-2025_22_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25561547 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561547_31-07-2025_22_05_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25561588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25561589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25561590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25561591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25561592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25561593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25561594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25561595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25561596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25561597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25561600, 'pht': 3726}}" where mtr_portfolio_id = 25561547 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25561547 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468660, 0.035655108193834786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25561547_31-07-2025_22_05_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25561588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25561589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25561590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25561591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25561592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25561593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25561594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25561595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25561596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25561597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25561600, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25562045 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3416828, 'mtr_portfolio_id': 25562045, 'created_at': datetime.datetime(2025, 7, 31, 22, 16, 57), 'result': '0.03590770896609372', 'result_long': None, 'result_double': None}] Qualite : 0.03590770896609372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25562045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562045_31-07-2025_22_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25562045 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562045_31-07-2025_22_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25562059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25562060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25562061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25562062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25562063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25562064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25562065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25562066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25562067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25562068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25562069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25562070, 'pht': 3726}}" where mtr_portfolio_id = 25562045 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25562045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468661, 0.03590770896609372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562045_31-07-2025_22_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25562059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25562060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25562061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25562062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25562063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25562064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25562065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25562066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25562067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25562068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25562069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25562070, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25562905 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3417092, 'mtr_portfolio_id': 25562905, 'created_at': datetime.datetime(2025, 7, 31, 22, 34, 57), 'result': '0.04039379905489371', 'result_long': None, 'result_double': None}] Qualite : 0.04039379905489371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25562905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562905_31-07-2025_22_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25562905 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562905_31-07-2025_22_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25562916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25562917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25562918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25562919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25562920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25562921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25562922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25562923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25562924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25562925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25562926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25562927, 'pht': 3726}}" where mtr_portfolio_id = 25562905 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25562905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468662, 0.04039379905489371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25562905_31-07-2025_22_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25562916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25562917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25562918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25562919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25562920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25562921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25562922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25562923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25562924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25562925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25562926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25562927, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25563660 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3417327, 'mtr_portfolio_id': 25563660, 'created_at': datetime.datetime(2025, 7, 31, 22, 46, 57), 'result': '0.03328748263946185', 'result_long': None, 'result_double': None}] Qualite : 0.03328748263946185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25563660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25563660_31-07-2025_22_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25563660 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25563660_31-07-2025_22_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25563705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25563706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25563708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25563709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25563710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25563712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25563713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25563714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25563716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25563717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25563718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25563720, 'pht': 3726}}" where mtr_portfolio_id = 25563660 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25563660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468663, 0.03328748263946185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25563660_31-07-2025_22_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25563705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25563706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25563708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25563709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25563710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25563712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25563713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25563714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25563716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25563717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25563718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25563720, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25564483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3417517, 'mtr_portfolio_id': 25564483, 'created_at': datetime.datetime(2025, 7, 31, 23, 2, 59), 'result': '0.030369654699903104', 'result_long': None, 'result_double': None}] Qualite : 0.030369654699903104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25564483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25564483_31-07-2025_23_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25564483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25564483_31-07-2025_23_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25564503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25564504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25564506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25564507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25564508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25564509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25564510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25564511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25564512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25564513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25564514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25564515, 'pht': 3726}}" where mtr_portfolio_id = 25564483 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25564483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468664, 0.030369654699903104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25564483_31-07-2025_23_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25564503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25564504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25564506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25564507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25564508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25564509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25564510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25564511, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25564512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25564513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25564514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25564515, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25565256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3417742, 'mtr_portfolio_id': 25565256, 'created_at': datetime.datetime(2025, 7, 31, 23, 18, 58), 'result': '0.016281607433970682', 'result_long': None, 'result_double': None}] Qualite : 0.016281607433970682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25565256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565256_31-07-2025_23_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25565256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565256_31-07-2025_23_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25565326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25565327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25565328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25565329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25565330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25565331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25565332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25565333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25565334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25565335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25565336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25565337, 'pht': 3726}}" where mtr_portfolio_id = 25565256 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25565256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468665, 0.016281607433970682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565256_31-07-2025_23_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25565326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25565327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25565328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25565329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25565330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25565331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25565332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25565333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25565334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25565335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25565336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25565337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25565942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3417971, 'mtr_portfolio_id': 25565942, 'created_at': datetime.datetime(2025, 7, 31, 23, 32, 29), 'result': '0.037686235913775575', 'result_long': None, 'result_double': None}] Qualite : 0.037686235913775575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25565942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565942_31-07-2025_23_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25565942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565942_31-07-2025_23_32_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25565979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25565980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25565981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25565982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25565983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25565984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25565985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25565986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25565987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25565988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25565989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25565990, 'pht': 3726}}" where mtr_portfolio_id = 25565942 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25565942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468666, 0.037686235913775575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25565942_31-07-2025_23_32_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25565979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25565980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25565981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25565982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25565983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25565984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25565985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25565986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25565987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25565988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25565989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25565990, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25566588 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3418194, 'mtr_portfolio_id': 25566588, 'created_at': datetime.datetime(2025, 7, 31, 23, 48, 56), 'result': '0.04910231576134623', 'result_long': None, 'result_double': None}] Qualite : 0.04910231576134623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25566588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25566588_31-07-2025_23_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25566588 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25566588_31-07-2025_23_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25566597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25566598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25566599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25566600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25566601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25566602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25566603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25566604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25566605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25566606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25566607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25566608, 'pht': 3726}}" where mtr_portfolio_id = 25566588 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25566588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468667, 0.04910231576134623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25566588_31-07-2025_23_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25566597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25566598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25566599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25566600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25566601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25566602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25566603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25566604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25566605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25566606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25566607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25566608, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25567264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3418394, 'mtr_portfolio_id': 25567264, 'created_at': datetime.datetime(2025, 8, 1, 0, 0), 'result': '0.028758417728798946', 'result_long': None, 'result_double': None}] Qualite : 0.028758417728798946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25567264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567264_01-08-2025_00_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25567264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567264_01-08-2025_00_00_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25567273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25567274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25567275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25567276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25567277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25567278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25567279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25567280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25567281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25567282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25567284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25567285, 'pht': 3726}}" where mtr_portfolio_id = 25567264 and dashboard_run_id = 2050869 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25567264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13468668, 0.028758417728798946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567264_01-08-2025_00_00_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25567273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25567274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25567275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25567276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25567277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25567278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25567279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25567280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25567281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25567282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25567284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25567285, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516129,25516552,25516863,25517204,25517620,25518153,25518649,25519140,25519626,25520305,25520841,25521307,25521737,25522256,25522735,25523075,25523385,25523818,25524141,25524518,25524912,25525411,25525840,25526254,25526644,25527147,25527500,25527878,25528260,25528614,25529145,25529519,25529875,25530428,25530844,25531293,25531730,25532281,25532744,25533327,25533798,25534450,25534879,25535278,25535847,25536476,25537126,25537694,25538360,25538914,25539526,25540059,25540490,25541148,25541698,25542402,25542966,25543819,25544523,25545130,25545698,25546404,25547085,25547583,25548087,25548742,25549357,25550046,25550578,25551369,25553198,25553813,25554245,25554842,25555274,25556046,25556589,25557240,25557800,25558454,25559027,25560280,25560657,25561059,25561547,25562045,25562905,25563660,25564483,25565256,25565942,25566588,25567264) result : ((1374514567,), (1374514596,), (1374514618,), (1374514639,), (1374514661,), (1374514680,), (1374514915,), (1374514956,), (1374514988,), (1374515009,), (1374515045,), (1374515070,), (1374515272,), (1374515291,), (1374515310,), (1374515331,), (1374515334,), (1374515339,), (1374515640,), (1374515710,), (1374515787,), (1374515863,), (1374515931,), (1374515997,), (1374516495,), (1374516889,), (1374516905,), (1374516906,), (1374516918,), (1374516936,), (1374516943,), (1374517031,), (1374517055,), (1374517078,), (1374517098,), (1374517120,), (1374517139,), (1374517293,), (1374517311,), (1374517331,), (1374517349,), (1374517367,), (1374517385,), (1374517831,), (1374517884,), (1374517941,), (1374517990,), (1374518040,), (1374518091,), (1374518410,), (1374518738,), (1374518781,), (1374518785,), (1374518815,), (1374518834,), (1374518837,), (1374518849,), (1374518851,), (1374518853,), (1374518855,), (1374518857,), (1374518859,), (1374518874,), (1374518876,), (1374518879,), (1374518890,), (1374518906,), (1374518908,), (1374518919,), (1374518920,), (1374518922,), (1374518923,), (1374518925,), (1374518941,), (1374610879,), (1374623165,), (1374623178,), (1374623186,), (1374623190,), (1374623192,), (1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,), (1374623148,), (1374519958,), (1374519980,), (1374519982,), (1374519988,), (1374519990,), (1374519992,), (1374519995,), (1374520003,), (1374520005,), (1374520008,), (1374520011,), (1374520013,), (1374520015,), (1374520029,), (1374520035,), (1374520036,), (1374520037,), (1374520038,), (1374520040,), (1374520049,), (1374520051,), (1374520053,), (1374520055,), (1374520057,), (1374520060,), (1374520067,), (1374520074,), (1374520078,), (1374520080,), (1374520083,), (1374520086,), (1374520113,), (1374520115,), (1374520116,), (1374520118,), (1374520121,), (1374520123,), (1374520131,), (1374520133,), (1374520136,), (1374520139,), (1374520142,), (1374520144,), (1374520156,), (1374520159,), (1374520162,), (1374520165,), (1374520167,), (1374520168,), (1374520178,), (1374520183,), (1374520184,), (1374520186,), (1374520188,), (1374520191,), (1374520200,), (1374520217,), (1374520219,), (1374520221,), (1374520223,), (1374520225,), (1374520227,), (1374520252,), (1374520255,), (1374520258,), (1374520260,), (1374520263,), (1374520266,), (1374520272,), (1374520275,), (1374520279,), (1374520282,), (1374520284,), (1374520287,), (1374520296,), (1374520300,), (1374520311,), (1374520313,), (1374520314,), (1374520317,), (1374623142,), (1374623145,), (1374520325,), (1374520327,), (1374520335,), (1374520339,), (1374520342,), (1374520344,), (1374520354,), (1374520357,), (1374520359,), (1374520360,), (1374520361,), (1374520363,), (1374520375,), (1374520377,), (1374520388,), (1374520391,), (1374520394,), (1374520396,), (1374520413,), (1374520414,), (1374520419,), (1374520420,), (1374520422,), (1374520425,), (1374520438,), (1374520441,), (1374520446,), (1374520449,), (1374520451,), (1374520454,), (1374520479,), (1374520589,), (1374520612,), (1374520626,), (1374520629,), (1374520633,), (1374520634,), (1374520648,), (1374520653,), (1374520655,), (1374520656,), (1374520657,), (1374520658,), (1374520671,), (1374520672,), (1374520694,), (1374520711,), (1374520716,), (1374520722,), (1374520741,), (1374520767,), (1374520806,), (1374520813,), (1374520815,), (1374520818,), (1374520829,), (1374520831,), (1374520833,), (1374520835,), (1374520837,), (1374520840,), (1374520853,), (1374520855,), (1374520857,), (1374520864,), (1374520870,), (1374520882,), (1374520890,), (1374520892,), (1374520898,), (1374520905,), (1374520914,), (1374520919,), (1374520933,), (1374520938,), (1374520940,), (1374520943,), (1374520964,), (1374520987,), (1374521182,), (1374623140,), (1374521368,), (1374521370,), (1374521382,), (1374521401,), (1374521420,), (1374521439,), (1374521548,), (1374521720,), (1374521739,), (1374521769,), (1374521795,), (1374521816,), (1374521838,), (1374521984,), (1374522003,), (1374522025,), (1374522030,), (1374522032,), (1374522039,), (1374522140,), (1374522146,), (1374522155,), (1374522163,), (1374522182,), (1374522203,), (1374522356,), (1374522377,), (1374522395,), (1374522413,), (1374522435,), (1374522453,), (1374522570,), (1374522583,), (1374522610,), (1374522636,), (1374522653,), (1374522672,), (1374522705,), (1374522707,), (1374522709,), (1374522711,), (1374522714,), (1374522718,), (1374522728,), (1374522731,), (1374522734,), (1374522740,), (1374522749,), (1374522755,), (1374522767,), (1374522814,), (1374522833,), (1374522850,), (1374522872,), (1374522881,), (1374522888,), (1374522941,), (1374522943,), (1374522949,), (1374522958,), (1374522960,), (1374522961,), (1374522976,), (1374522978,), (1374522985,), (1374522992,), (1374522993,), (1374522995,), (1374523006,), (1374523007,), (1374523010,), (1374523012,), (1374523014,), (1374523017,), (1374523028,), (1374523030,), (1374523034,), (1374523040,), (1374523048,), (1374523050,), (1374523075,), (1374523076,), (1374523078,), (1374523090,), (1374523098,), (1374523100,), (1374523109,), (1374523112,), (1374523119,), (1374523127,), (1374523128,), (1374523129,), (1374523167,), (1374523175,), (1374523177,), (1374523179,), (1374523181,), (1374523184,), (1374523223,), (1374523239,), (1374523256,), (1374523277,), (1374523294,), (1374523314,), (1374523411,), (1374523497,), (1374523516,), (1374523536,), (1374523555,), (1374523579,), (1374523605,), (1374523618,), (1374523619,), (1374523621,), (1374523629,), (1374523637,), (1374523650,), (1374523816,), (1374523981,), (1374523985,), (1374523989,), (1374524011,), (1374524034,), (1374524056,), (1374524119,), (1374524212,), (1374524232,), (1374524254,), (1374524273,), (1374524280,), (1374524284,), (1374524316,), (1374524317,), (1374524318,), (1374524323,), (1374524342,), (1374524345,), (1374524388,), (1374524390,), (1374524393,), (1374524396,), (1374524405,), (1374524414,), (1374524539,), (1374524559,), (1374524579,), (1374524585,), (1374524594,), (1374524604,), (1374524678,), (1374524681,), (1374524683,), (1374524685,), (1374524695,), (1374524700,), (1374524811,), (1374524827,), (1374524831,), (1374524835,), (1374524838,), (1374524840,), (1374524842,), (1374524849,), (1374524868,), (1374524870,), (1374524872,), (1374524882,), (1374524886,), (1374524888,), (1374524903,), (1374524906,), (1374524908,), (1374524910,), (1374524913,), (1374524916,), (1374524923,), (1374524925,), (1374524927,), (1374524929,), (1374524938,), (1374524948,), (1374524975,), (1374524978,), (1374524984,), (1374524992,), (1374524993,), (1374524995,), (1374525004,), (1374525006,), (1374525008,), (1374525017,), (1374525025,), (1374525028,), (1374525033,), (1374525036,), (1374525039,), (1374525041,), (1374525043,), (1374525045,), (1374525069,), (1374525073,), (1374525076,), (1374525078,), (1374525081,), (1374525084,), (1374525098,), (1374525137,), (1374525145,), (1374525147,), (1374525149,), (1374525151,), (1374525154,), (1374525163,), (1374525165,), (1374525167,), (1374525169,), (1374525171,), (1374525176,), (1374525197,), (1374525200,), (1374525202,), (1374525204,), (1374525206,), (1374525210,), (1374525225,), (1374610833,), (1374623137,), (1374525247,), (1374525271,), (1374525273,), (1374525275,), (1374525277,), (1374525280,), (1374525284,), (1374525292,), (1374525295,), (1374525298,), (1374525300,), (1374525303,), (1374525306,), (1374525314,), (1374525317,), (1374525320,), (1374525322,), (1374525323,), (1374525325,), (1374525334,), (1374525336,), (1374525338,), (1374525340,), (1374525342,), (1374525345,), (1374525359,), (1374525376,), (1374525379,), (1374525382,), (1374525383,), (1374525384,), (1374525385,), (1374525395,), (1374525396,), (1374525397,), (1374525406,), (1374525414,), (1374525417,), (1374525422,), (1374525425,), (1374525428,), (1374525431,), (1374525433,), (1374525436,), (1374525444,), (1374525447,), (1374525450,), (1374525452,), (1374525453,), (1374525455,), (1374525466,), (1374525468,), (1374525469,), (1374525470,), (1374525472,), (1374525474,), (1374525486,), (1374525505,), (1374525508,), (1374525510,), (1374525512,), (1374525513,), (1374525515,), (1374525894,), (1374525920,), (1374525939,), (1374525959,), (1374525985,), (1374526012,), (1374526513,), (1374623123,), (1374623126,), (1374623129,), (1374623133,), (1374526837,), (1374526857,), (1374526887,), (1374526907,), (1374526942,), (1374526965,), (1374527134,), (1374527153,), (1374527169,), (1374527189,), (1374527213,), (1374527218,), (1374527298,), (1374527468,), (1374527474,), (1374527480,), (1374527487,), (1374527499,), (1374527502,), (1374527564,), (1374527566,), (1374527572,), (1374527580,), (1374527586,), (1374527592,), (1374527729,), (1374527916,), (1374527936,), (1374527975,), (1374528009,), (1374528044,), (1374528084,), (1374528312,), (1374528328,), (1374528345,), (1374528356,), (1374528368,), (1374528386,), (1374528483,), (1374528491,), (1374528509,), (1374528538,), (1374528562,), (1374528591,), (1374528685,), (1374528936,), (1374528959,), (1374528980,), (1374529001,), (1374529010,), (1374529022,), (1374529036,), (1374529039,), (1374529047,), (1374529054,), (1374529056,), (1374529059,), (1374529067,), (1374529068,), (1374529072,), (1374529081,), (1374529093,), (1374529102,), (1374529110,), (1374529113,), (1374529115,), (1374529121,), (1374529128,), (1374529142,), (1374623108,), (1374623115,), (1374623117,), (1374623120,), (1374529188,), (1374529191,), (1374529194,), (1374529206,), (1374529210,), (1374529212,), (1374529218,), (1374529220,), (1374529222,), (1374529225,), (1374529252,), (1374529256,), (1374529270,), (1374529273,), (1374529276,), (1374529281,), (1374529294,), (1374529297,), (1374529339,), (1374529363,), (1374529382,), (1374529401,), (1374529419,), (1374529437,), (1374529592,), (1374529610,), (1374529629,), (1374529648,), (1374529667,), (1374529686,), (1374529884,), (1374530015,), (1374530057,), (1374530094,), (1374530117,), (1374530140,), (1374530143,), (1374530199,), (1374530201,), (1374530204,), (1374530209,), (1374530219,), (1374530222,), (1374530229,), (1374530234,), (1374530242,), (1374530246,), (1374530249,), (1374530253,), (1374530262,), (1374530291,), (1374530294,), (1374530297,), (1374530300,), (1374530303,), (1374530305,), (1374530310,), (1374530312,), (1374530314,), (1374530316,), (1374530317,), (1374530318,), (1374530323,), (1374530325,), (1374530327,), (1374530329,), (1374530330,), (1374530332,), (1374530336,), (1374530338,), (1374530341,), (1374530344,), (1374530354,), (1374530362,), (1374530370,), (1374530373,), (1374530384,), (1374530388,), (1374530391,), (1374530394,), (1374530408,), (1374530426,), (1374530429,), (1374530432,), (1374530434,), (1374530436,), (1374530438,), (1374530447,), (1374530448,), (1374530450,), (1374530451,), (1374530458,), (1374530468,), (1374530487,), (1374530490,), (1374530492,), (1374530495,), (1374530496,), (1374530499,), (1374530505,), (1374530507,), (1374530509,), (1374530511,), (1374530513,), (1374530516,), (1374530522,), (1374530525,), (1374530528,), (1374530531,), (1374530532,), (1374530534,), (1374530544,), (1374530545,), (1374530546,), (1374530547,), (1374530548,), (1374530552,), (1374530559,), (1374530562,), (1374530565,), (1374530568,), (1374530570,), (1374530574,), (1374530587,), (1374530590,), (1374530593,), (1374530595,), (1374530596,), (1374530598,), (1374530606,), (1374530609,), (1374530611,), (1374530613,), (1374530615,), (1374530618,), (1374530626,), (1374530644,), (1374530647,), (1374530649,), (1374530650,), (1374530651,), (1374530652,), (1374530660,), (1374530662,), (1374530663,), (1374530664,), (1374530665,), (1374530667,), (1374530681,), (1374530686,), (1374530688,), (1374530689,), (1374530691,), (1374530693,), (1374530700,), (1374530702,), (1374530708,), (1374530711,), (1374530713,), (1374530717,), (1374530727,), (1374530730,), (1374530740,), (1374530742,), (1374530745,), (1374530748,), (1374530759,), (1374530761,), (1374530763,), (1374530766,), (1374530767,), (1374530769,), (1374530776,), (1374530778,), (1374530781,), (1374530784,), (1374530796,), (1374530799,), (1374530807,), (1374530811,), (1374530814,), (1374530817,), (1374530818,), (1374530820,), (1374530828,), (1374530829,), (1374530841,), (1374530848,), (1374530853,), (1374530855,), (1374530876,), (1374530892,), (1374530895,), (1374530898,), (1374530911,), (1374530921,), (1374530928,), (1374530942,), (1374530944,), (1374530946,), (1374530960,), (1374530968,), (1374530977,), (1374530992,), (1374530993,), (1374530997,), (1374531001,), (1374531002,), (1374531005,), (1374531019,), (1374531021,), (1374531023,), (1374531025,), (1374531028,), (1374531032,), (1374531047,), (1374531050,), (1374531053,), (1374531055,), (1374531056,), (1374531057,), (1374531067,), (1374531070,), (1374531078,), (1374531080,), (1374531082,), (1374531086,), (1374531100,), (1374531104,), (1374531111,), (1374531120,), (1374531122,), (1374531124,), (1374531533,), (1374531555,), (1374531574,), (1374531595,), (1374531620,), (1374531646,), (1374623087,), (1374623090,), (1374623096,), (1374623098,), (1374623100,), (1374623103,), (1374623105,), (1374531827,), (1374531835,), (1374531842,), (1374531845,), (1374531859,), (1374531881,), (1374532045,), (1374532080,), (1374532106,), (1374532128,), (1374532148,), (1374532168,), (1374532328,), (1374532356,), (1374532383,), (1374532409,), (1374532434,), (1374532460,), (1374532716,), (1374533034,), (1374533035,), (1374533272,), (1374533300,), (1374533326,), (1374533352,), (1374533376,), (1374533404,), (1374533702,), (1374533832,), (1374533858,), (1374533883,), (1374533906,), (1374533932,), (1374533963,), (1374534125,), (1374534131,), (1374534143,), (1374534145,), (1374534147,), (1374534149,), (1374534167,), (1374534169,), (1374534170,), (1374534171,), (1374534172,), (1374534173,), (1374534228,), (1374534256,), (1374534258,), (1374534260,), (1374534263,), (1374534265,), (1374534286,), (1374534458,), (1374534460,), (1374534461,), (1374534462,), (1374534463,), (1374534465,), (1374534478,), (1374534480,), (1374534482,), (1374534483,), (1374534485,), (1374534488,), (1374534498,), (1374622989,), (1374623076,), (1374623078,), (1374623081,), (1374623084,), (1374534522,), (1374534525,), (1374534526,), (1374534527,), (1374534528,), (1374534530,), (1374534554,), (1374534558,), (1374534569,), (1374534576,), (1374534579,), (1374534582,), (1374534607,), (1374534609,), (1374534611,), (1374534625,), (1374534649,), (1374534674,), (1374534716,), (1374534718,), (1374534720,), (1374534721,), (1374534722,), (1374534724,), (1374534731,), (1374534734,), (1374534737,), (1374534740,), (1374534742,), (1374534745,), (1374534962,), (1374535097,), (1374535099,), (1374535101,), (1374535102,), (1374535104,), (1374535106,), (1374535136,), (1374535175,), (1374535178,), (1374535181,), (1374535184,), (1374535186,), (1374535189,), (1374535197,), (1374535200,), (1374535202,), (1374535204,), (1374535206,), (1374535209,), (1374535222,), (1374535225,), (1374535228,), (1374535230,), (1374535232,), (1374535233,), (1374535244,), (1374535246,), (1374535247,), (1374535248,), (1374535250,), (1374535253,), (1374535263,), (1374535266,), (1374535269,), (1374535271,), (1374535272,), (1374535274,), (1374535282,), (1374535287,), (1374535292,), (1374535294,), (1374535297,), (1374535300,), (1374535309,), (1374535311,), (1374535314,), (1374535316,), (1374535318,), (1374535320,), (1374535343,), (1374622975,), (1374622979,), (1374622982,), (1374622985,), (1374622987,), (1374535362,), (1374535363,), (1374535364,), (1374535365,), (1374535367,), (1374535369,), (1374535377,), (1374535382,), (1374535384,), (1374535386,), (1374535388,), (1374535391,), (1374535394,), (1374535405,), (1374535408,), (1374535411,), (1374535413,), (1374535416,), (1374535419,), (1374535479,), (1374535481,), (1374535483,), (1374535485,), (1374535492,), (1374535551,), (1374535560,), (1374535563,), (1374535566,), (1374535568,), (1374535569,), (1374535571,), (1374535578,), (1374535581,), (1374535584,), (1374535588,), (1374535590,), (1374535592,), (1374535602,), (1374535605,), (1374535607,), (1374535608,), (1374535610,), (1374535612,), (1374535621,), (1374535623,), (1374535625,), (1374535627,), (1374535630,), (1374535634,), (1374535643,), (1374535646,), (1374535649,), (1374535651,), (1374535653,), (1374535655,), (1374535666,), (1374535685,), (1374535689,), (1374535690,), (1374535691,), (1374535693,), (1374535696,), (1374535706,), (1374535709,), (1374535712,), (1374535714,), (1374535715,), (1374535717,), (1374535730,), (1374535733,), (1374535735,), (1374535737,), (1374535739,), (1374535742,), (1374535754,), (1374622945,), (1374622954,), (1374622962,), (1374622965,), (1374535771,), (1374535773,), (1374535775,), (1374535777,), (1374535779,), (1374535781,), (1374535816,), (1374535819,), (1374535821,), (1374535822,), (1374535823,), (1374535824,), (1374535836,), (1374535838,), (1374535840,), (1374535841,), (1374535844,), (1374535847,), (1374535860,), (1374535863,), (1374535866,), (1374535868,), (1374535871,), (1374535874,), (1374535884,), (1374535887,), (1374535890,), (1374535891,), (1374535893,), (1374535895,), (1374535914,), (1374535941,), (1374535944,), (1374535947,), (1374535950,), (1374535952,), (1374535955,), (1374535968,), (1374535984,), (1374535986,), (1374535988,), (1374535990,), (1374535992,), (1374535995,), (1374536008,), (1374536011,), (1374536014,), (1374536017,), (1374536019,), (1374536022,), (1374536033,), (1374536035,), (1374536036,), (1374536037,), (1374536039,), (1374536042,), (1374536055,), (1374536058,), (1374536061,), (1374536062,), (1374536063,), (1374536064,), (1374536088,), (1374536115,), (1374536139,), (1374536165,), (1374536189,), (1374536224,), (1374536679,), (1374536685,), (1374536727,), (1374536754,), (1374536776,), (1374536804,), (1374622897,), (1374622900,), (1374622905,), (1374622909,), (1374622918,), (1374622943,), (1374537303,), (1374537793,), (1374537820,), (1374537848,), (1374537892,), (1374537934,), (1374537983,), (1374538248,), (1374538252,), (1374538255,), (1374538257,), (1374538259,), (1374538261,), (1374538445,), (1374538464,), (1374538469,), (1374538472,), (1374538483,), (1374538511,), (1374538571,), (1374538574,), (1374538582,), (1374538589,), (1374538600,), (1374538605,), (1374538674,), (1374538677,), (1374538679,), (1374538681,), (1374538690,), (1374538701,), (1374538807,), (1374538837,), (1374538840,), (1374538843,), (1374538855,), (1374538856,), (1374538858,), (1374538870,), (1374538874,), (1374538876,), (1374538878,), (1374538882,), (1374538898,), (1374538919,), (1374538922,), (1374538931,), (1374538939,), (1374538940,), (1374538942,), (1374538964,), (1374538981,), (1374538983,), (1374538989,), (1374538997,), (1374538999,), (1374539002,), (1374539019,), (1374539026,), (1374539030,), (1374539032,), (1374539034,), (1374539037,), (1374539049,), (1374539054,), (1374539058,), (1374539073,), (1374539082,), (1374539086,), (1374539109,), (1374622877,), (1374622878,), (1374622881,), (1374622893,), (1374539137,), (1374539175,), (1374539177,), (1374539179,), (1374539181,), (1374539184,), (1374539188,), (1374539204,), (1374539207,), (1374539210,), (1374539212,), (1374539213,), (1374539215,), (1374539234,), (1374539235,), (1374539236,), (1374539237,), (1374539238,), (1374539240,), (1374539260,), (1374539263,), (1374539265,), (1374539266,), (1374539267,), (1374539268,), (1374539298,), (1374539318,), (1374539321,), (1374539329,), (1374539332,), (1374539333,), (1374539335,), (1374539351,), (1374539353,), (1374539355,), (1374539357,), (1374539359,), (1374539361,), (1374539379,), (1374539383,), (1374539385,), (1374539387,), (1374539389,), (1374539392,), (1374539419,), (1374539464,), (1374539466,), (1374539486,), (1374539492,), (1374539493,), (1374539496,), (1374539519,), (1374539520,), (1374539521,), (1374539522,), (1374539524,), (1374539525,), (1374539542,), (1374539545,), (1374539554,), (1374539560,), (1374539566,), (1374539569,), (1374539588,), (1374539590,), (1374539600,), (1374539601,), (1374539603,), (1374539606,), (1374539624,), (1374539627,), (1374539632,), (1374539634,), (1374539636,), (1374539638,), (1374622860,), (1374622868,), (1374622870,), (1374622875,), (1374539663,), (1374539699,), (1374539702,), (1374539704,), (1374539706,), (1374539708,), (1374539710,), (1374539728,), (1374539738,), (1374539743,), (1374539744,), (1374539745,), (1374539747,), (1374539763,), (1374539766,), (1374539774,), (1374539784,), (1374539786,), (1374539788,), (1374539805,), (1374539808,), (1374539810,), (1374539811,), (1374539812,), (1374539813,), (1374539831,), (1374539836,), (1374539844,), (1374539846,), (1374539848,), (1374539850,), (1374539871,), (1374539875,), (1374539877,), (1374539878,), (1374539890,), (1374539894,), (1374539912,), (1374539913,), (1374539914,), (1374539930,), (1374539932,), (1374539935,), (1374539950,), (1374539953,), (1374539955,), (1374539957,), (1374539959,), (1374539961,), (1374539978,), (1374539981,), (1374539984,), (1374539992,), (1374540004,), (1374540006,), (1374540030,), (1374540047,), (1374540050,), (1374540052,), (1374540054,), (1374540056,), (1374540058,), (1374540079,), (1374540081,), (1374540083,), (1374540084,), (1374540086,), (1374540087,), (1374540105,), (1374540107,), (1374540109,), (1374540110,), (1374540111,), (1374540112,), (1374540129,), (1374540132,), (1374540134,), (1374540136,), (1374540137,), (1374540140,), (1374622854,), (1374622857,), (1374540162,), (1374540164,), (1374540168,), (1374540170,), (1374540172,), (1374540175,), (1374540190,), (1374540192,), (1374540193,), (1374540194,), (1374540195,), (1374540196,), (1374540213,), (1374540217,), (1374540219,), (1374540221,), (1374540223,), (1374540224,), (1374540237,), (1374540238,), (1374540240,), (1374540242,), (1374540245,), (1374540249,), (1374540266,), (1374540269,), (1374540271,), (1374540273,), (1374540275,), (1374540278,), (1374540301,), (1374540336,), (1374540338,), (1374540339,), (1374540340,), (1374540342,), (1374540344,), (1374540359,), (1374540362,), (1374540364,), (1374540366,), (1374540367,), (1374540369,), (1374540391,), (1374540393,), (1374540395,), (1374540397,), (1374540398,), (1374540401,), (1374540418,), (1374540421,), (1374540424,), (1374540425,), (1374540426,), (1374540427,), (1374540441,), (1374540444,), (1374540448,), (1374540452,), (1374540454,), (1374540456,), (1374540471,), (1374540476,), (1374540479,), (1374540481,), (1374540483,), (1374540485,), (1374540501,), (1374540504,), (1374540507,), (1374540509,), (1374540520,), (1374540521,), (1374541186,), (1374541238,), (1374541303,), (1374541340,), (1374541368,), (1374541400,), (1374541739,), (1374542186,), (1374542211,), (1374542235,), (1374542260,), (1374542286,), (1374542314,), (1374542427,), (1374542448,), (1374542472,), (1374542496,), (1374542529,), (1374542554,), (1374542662,), (1374542665,), (1374542667,), (1374542669,), (1374542671,), (1374542673,), (1374542690,), (1374542693,), (1374542694,), (1374542695,), (1374542698,), (1374542700,), (1374542721,), (1374542725,), (1374542728,), (1374542730,), (1374542732,), (1374542734,), (1374542750,), (1374542753,), (1374542755,), (1374542756,), (1374542757,), (1374542758,), (1374542776,), (1374542781,), (1374542784,), (1374542788,), (1374542790,), (1374542792,), (1374542807,), (1374542810,), (1374542811,), (1374542814,), (1374542816,), (1374542818,), (1374542832,), (1374542836,), (1374542840,), (1374542842,), (1374542844,), (1374542846,), (1374542871,), (1374542888,), (1374542892,), (1374542904,), (1374542906,), (1374542908,), (1374542910,), (1374542925,), (1374542929,), (1374542931,), (1374542932,), (1374542934,), (1374542936,), (1374542952,), (1374542957,), (1374542969,), (1374542976,), (1374542983,), (1374542985,), (1374543000,), (1374543004,), (1374543012,), (1374543017,), (1374543019,), (1374543022,), (1374622831,), (1374622848,), (1374622849,), (1374622851,), (1374543036,), (1374543047,), (1374543058,), (1374543067,), (1374543072,), (1374543075,), (1374543101,), (1374543127,), (1374543135,), (1374543138,), (1374543141,), (1374543143,), (1374543146,), (1374543155,), (1374543158,), (1374543161,), (1374543163,), (1374543164,), (1374543166,), (1374543217,), (1374543219,), (1374543223,), (1374543224,), (1374543228,), (1374543230,), (1374543313,), (1374543343,), (1374543361,), (1374543362,), (1374543364,), (1374543367,), (1374543370,), (1374543377,), (1374543380,), (1374543382,), (1374543384,), (1374543386,), (1374543389,), (1374543401,), (1374543403,), (1374543405,), (1374543407,), (1374543409,), (1374543412,), (1374543419,), (1374543423,), (1374543426,), (1374543428,), (1374543431,), (1374543434,), (1374543441,), (1374543442,), (1374543444,), (1374543447,), (1374543465,), (1374543473,), (1374543516,), (1374543519,), (1374543520,), (1374543521,), (1374543523,), (1374543526,), (1374543547,), (1374543549,), (1374543550,), (1374543551,), (1374543554,), (1374543558,), (1374543573,), (1374543574,), (1374543576,), (1374543578,), (1374543580,), (1374543584,), (1374543599,), (1374543608,), (1374543612,), (1374543614,), (1374543616,), (1374543619,), (1374549253,), (1374622751,), (1374622767,), (1374622769,), (1374622787,), (1374622816,), (1374622818,), (1374622822,), (1374622826,), (1374622829,), (1374543629,), (1374543655,), (1374543657,), (1374543664,), (1374543669,), (1374543671,), (1374543672,), (1374543688,), (1374543689,), (1374543690,), (1374543691,), (1374543693,), (1374543696,), (1374543707,), (1374543715,), (1374543717,), (1374543718,), (1374543720,), (1374543723,), (1374543737,), (1374543744,), (1374543749,), (1374543750,), (1374543751,), (1374543755,), (1374543766,), (1374543767,), (1374543768,), (1374543769,), (1374543771,), (1374543774,), (1374543794,), (1374543800,), (1374543801,), (1374543802,), (1374543803,), (1374543805,), (1374543824,), (1374543831,), (1374543832,), (1374543833,), (1374543835,), (1374543838,), (1374543848,), (1374543849,), (1374543850,), (1374543851,), (1374543853,), (1374543856,), (1374543870,), (1374543878,), (1374543885,), (1374543886,), (1374543890,), (1374543893,), (1374543912,), (1374543935,), (1374543936,), (1374543937,), (1374543938,), (1374543940,), (1374543941,), (1374543952,), (1374543953,), (1374543954,), (1374543955,), (1374543956,), (1374543958,), (1374543980,), (1374543984,), (1374543985,), (1374543986,), (1374543988,), (1374543991,), (1374544004,), (1374544007,), (1374544008,), (1374544010,), (1374544012,), (1374544013,), (1374622544,), (1374622546,), (1374622547,), (1374622550,), (1374622560,), (1374622563,), (1374622566,), (1374622568,), (1374622614,), (1374622617,), (1374622622,), (1374622625,), (1374622677,), (1374622717,), (1374544027,), (1374544028,), (1374544029,), (1374544030,), (1374544032,), (1374544035,), (1374544038,), (1374544039,), (1374544045,), (1374544050,), (1374544057,), (1374544058,), (1374544060,), (1374544062,), (1374544070,), (1374544077,), (1374544079,), (1374544080,), (1374544082,), (1374544085,), (1374544094,), (1374544112,), (1374544115,), (1374544117,), (1374544119,), (1374544121,), (1374544124,), (1374544148,), (1374544166,), (1374544174,), (1374544181,), (1374544183,), (1374544186,), (1374544188,), (1374544196,), (1374544198,), (1374544200,), (1374544202,), (1374544204,), (1374544207,), (1374544215,), (1374544218,), (1374544220,), (1374544222,), (1374544224,), (1374544227,), (1374544238,), (1374544239,), (1374544241,), (1374544242,), (1374544244,), (1374544246,), (1374544260,), (1374544262,), (1374544264,), (1374544265,), (1374544267,), (1374544269,), (1374544277,), (1374544279,), (1374544293,), (1374544294,), (1374544296,), (1374544299,), (1374544310,), (1374544311,), (1374544312,), (1374544313,), (1374544315,), (1374544318,), (1374544725,), (1374544750,), (1374544776,), (1374544801,), (1374544832,), (1374544850,), (1374545511,), (1374622475,), (1374622476,), (1374622499,), (1374622503,), (1374622526,), (1374622530,), (1374622532,), (1374622537,), (1374622539,), (1374546105,), (1374546141,), (1374546162,), (1374546173,), (1374546199,), (1374546204,), (1374546340,), (1374546342,), (1374546343,), (1374546344,), (1374546345,), (1374546347,), (1374546360,), (1374546362,), (1374546364,), (1374546366,), (1374546368,), (1374546371,), (1374546379,), (1374546381,), (1374546384,), (1374546387,), (1374546389,), (1374546392,), (1374546397,), (1374546398,), (1374546401,), (1374546404,), (1374546406,), (1374546409,), (1374546415,), (1374546421,), (1374546437,), (1374546443,), (1374546446,), (1374546449,), (1374546465,), (1374546467,), (1374546469,), (1374546471,), (1374546475,), (1374546479,), (1374546490,), (1374546492,), (1374546494,), (1374546496,), (1374546499,), (1374546502,), (1374546516,), (1374546518,), (1374546520,), (1374546522,), (1374546524,), (1374546527,), (1374546549,), (1374546567,), (1374546569,), (1374546571,), (1374546572,), (1374546574,), (1374546576,), (1374546586,), (1374546593,), (1374546600,), (1374546601,), (1374546602,), (1374546604,), (1374546619,), (1374546622,), (1374546624,), (1374546625,), (1374546628,), (1374546629,), (1374546639,), (1374546641,), (1374546644,), (1374546646,), (1374546648,), (1374546652,), (1374546661,), (1374546663,), (1374546665,), (1374546667,), (1374546669,), (1374546672,), (1374546678,), (1374546680,), (1374546690,), (1374546692,), (1374546694,), (1374546696,), (1374546717,), (1374546718,), (1374546719,), (1374546720,), (1374546722,), (1374546725,), (1374546735,), (1374546736,), (1374546737,), (1374546738,), (1374546740,), (1374546743,), (1374546752,), (1374546754,), (1374546757,), (1374546758,), (1374546760,), (1374546762,), (1374546784,), (1374546797,), (1374546798,), (1374546799,), (1374546800,), (1374546802,), (1374546805,), (1374546815,), (1374546816,), (1374546817,), (1374546818,), (1374546820,), (1374546823,), (1374546830,), (1374546832,), (1374546834,), (1374546836,), (1374546838,), (1374546841,), (1374546849,), (1374546860,), (1374546862,), (1374546863,), (1374546865,), (1374546868,), (1374546871,), (1374546887,), (1374546888,), (1374546889,), (1374546890,), (1374546891,), (1374546893,), (1374546906,), (1374546907,), (1374546908,), (1374546909,), (1374546910,), (1374546912,), (1374546925,), (1374546949,), (1374546974,), (1374546976,), (1374546978,), (1374546979,), (1374546981,), (1374546983,), (1374546992,), (1374546995,), (1374546998,), (1374546999,), (1374547002,), (1374547005,), (1374547012,), (1374547013,), (1374547015,), (1374547017,), (1374547019,), (1374547022,), (1374547039,), (1374547040,), (1374547041,), (1374547042,), (1374547044,), (1374547048,), (1374547058,), (1374547059,), (1374547060,), (1374547061,), (1374547063,), (1374547066,), (1374547090,), (1374547091,), (1374547092,), (1374547093,), (1374547095,), (1374547098,), (1374547115,), (1374547140,), (1374547143,), (1374547145,), (1374547146,), (1374547148,), (1374547150,), (1374547159,), (1374547161,), (1374547163,), (1374547164,), (1374547165,), (1374547167,), (1374547180,), (1374547182,), (1374547184,), (1374547185,), (1374547187,), (1374547189,), (1374547201,), (1374547233,), (1374547235,), (1374547246,), (1374547248,), (1374547250,), (1374547252,), (1374547261,), (1374547264,), (1374547266,), (1374547268,), (1374547270,), (1374547274,), (1374547284,), (1374547289,), (1374547294,), (1374547296,), (1374547299,), (1374547314,), (1374547318,), (1374547319,), (1374547321,), (1374547323,), (1374547325,), (1374622333,), (1374622335,), (1374622340,), (1374622374,), (1374622378,), (1374622393,), (1374622466,), (1374622472,), (1374622473,), (1374622474,), (1374547339,), (1374547344,), (1374547348,), (1374547349,), (1374547351,), (1374547354,), (1374547366,), (1374547367,), (1374547368,), (1374547369,), (1374547371,), (1374547374,), (1374547394,), (1374547395,), (1374547396,), (1374547397,), (1374547399,), (1374547402,), (1374547413,), (1374547414,), (1374547415,), (1374547416,), (1374547418,), (1374547423,), (1374547433,), (1374547434,), (1374547435,), (1374547436,), (1374547438,), (1374547440,), (1374547459,), (1374547490,), (1374547492,), (1374547494,), (1374547496,), (1374547499,), (1374547502,), (1374547518,), (1374547521,), (1374547522,), (1374547523,), (1374547525,), (1374547527,), (1374547545,), (1374547573,), (1374547581,), (1374547585,), (1374547590,), (1374547592,), (1374547596,), (1374547614,), (1374547615,), (1374547617,), (1374547619,), (1374547622,), (1374547625,), (1374547657,), (1374547659,), (1374547660,), (1374547661,), (1374547662,), (1374547664,), (1374547687,), (1374547697,), (1374547728,), (1374547753,), (1374547791,), (1374547838,), (1374548937,), (1374622022,), (1374622130,), (1374622133,), (1374622212,), (1374622213,), (1374622302,), (1374622306,), (1374622307,), (1374622309,), (1374622311,), (1374622313,), (1374622323,), (1374622327,), (1374622331,), (1374549238,), (1374549242,), (1374549245,), (1374549247,), (1374549251,), (1374549282,), (1374549284,), (1374549287,), (1374549290,), (1374549294,), (1374549299,), (1374549317,), (1374549319,), (1374549320,), (1374549321,), (1374549323,), (1374549326,), (1374549356,), (1374549388,), (1374549390,), (1374549393,), (1374549402,), (1374549406,), (1374549410,), (1374549433,), (1374549441,), (1374549449,), (1374549454,), (1374549457,), (1374549460,), (1374549491,), (1374549492,), (1374549494,), (1374549495,), (1374549496,), (1374549498,), (1374549522,), (1374549524,), (1374549526,), (1374549528,), (1374549531,), (1374549534,), (1374549553,), (1374549556,), (1374549559,), (1374549560,), (1374549562,), (1374549564,), (1374549582,), (1374549584,), (1374549586,), (1374549588,), (1374549591,), (1374549597,), (1374549626,), (1374549649,), (1374549654,), (1374549656,), (1374549658,), (1374549661,), (1374549664,), (1374549683,), (1374549685,), (1374549686,), (1374549687,), (1374549688,), (1374549690,), (1374549712,), (1374549715,), (1374549718,), (1374549720,), (1374549722,), (1374549724,), (1374549743,), (1374549756,), (1374549766,), (1374549775,), (1374549780,), (1374549782,), (1374595422,), (1374621920,), (1374621940,), (1374621941,), (1374621942,), (1374621959,), (1374621968,), (1374621970,), (1374621975,), (1374622002,), (1374622020,), (1374622112,), (1374622124,), (1374622125,), (1374622127,), (1374622128,), (1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,), (1374581041,), (1374621882,), (1374621883,), (1374621884,), (1374621886,), (1374621909,), (1374621912,), (1374621913,), (1374621915,), (1374621917,), (1374621918,), (1374550527,), (1374550528,), (1374550529,), (1374550530,), (1374550532,), (1374550536,), (1374550578,), (1374550584,), (1374550587,), (1374550588,), (1374550589,), (1374550591,), (1374550603,), (1374550605,), (1374550606,), (1374550608,), (1374550609,), (1374550611,), (1374550630,), (1374550632,), (1374550634,), (1374550635,), (1374550637,), (1374550640,), (1374550659,), (1374550662,), (1374550665,), (1374550667,), (1374550669,), (1374550673,), (1374550737,), (1374550825,), (1374550827,), (1374550830,), (1374550833,), (1374550836,), (1374550847,), (1374550867,), (1374550871,), (1374550884,), (1374550888,), (1374550890,), (1374550894,), (1374550909,), (1374550915,), (1374550920,), (1374550922,), (1374550925,), (1374550930,), (1374550947,), (1374551017,), (1374551018,), (1374551019,), (1374551020,), (1374551022,), (1374551050,), (1374551311,), (1374551312,), (1374551313,), (1374551314,), (1374551315,), (1374551318,), (1374551342,), (1374551344,), (1374551346,), (1374551347,), (1374551349,), (1374551352,), (1374551373,), (1374551376,), (1374551383,), (1374551386,), (1374551388,), (1374551402,), (1374621839,), (1374621853,), (1374621854,), (1374621872,), (1374621880,), (1374621881,), (1374551452,), (1374551459,), (1374551467,), (1374551470,), (1374551472,), (1374551475,), (1374551633,), (1374551649,), (1374551658,), (1374551659,), (1374551662,), (1374551666,), (1374551770,), (1374551773,), (1374551775,), (1374551777,), (1374551779,), (1374551782,), (1374551882,), (1374551884,), (1374551886,), (1374551888,), (1374551890,), (1374551894,), (1374551933,), (1374551935,), (1374551943,), (1374551948,), (1374551950,), (1374551953,), (1374552036,), (1374552063,), (1374552073,), (1374552076,), (1374552077,), (1374552079,), (1374552083,), (1374552132,), (1374552138,), (1374552140,), (1374552142,), (1374552144,), (1374552147,), (1374552193,), (1374552217,), (1374552247,), (1374552276,), (1374552310,), (1374552337,), (1374552359,), (1374552360,), (1374552361,), (1374552362,), (1374552364,), (1374552369,), (1374552392,), (1374552393,), (1374552394,), (1374552395,), (1374552397,), (1374552400,), (1374552418,), (1374552419,), (1374552426,), (1374552430,), (1374552431,), (1374552434,), (1374552447,), (1374552448,), (1374552449,), (1374552450,), (1374552452,), (1374552455,), (1374552683,), (1374621831,), (1374621835,), (1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,), (1374554291,), (1374554314,), (1374554343,), (1374554368,), (1374554392,), (1374554418,), (1374554611,), (1374554613,), (1374554615,), (1374554618,), (1374554625,), (1374554628,), (1374554841,), (1374554927,), (1374554930,), (1374554933,), (1374554935,), (1374554938,), (1374554941,), (1374554954,), (1374554959,), (1374554961,), (1374554962,), (1374554964,), (1374554967,), (1374554983,), (1374554985,), (1374554987,), (1374554988,), (1374554990,), (1374554993,), (1374555008,), (1374555011,), (1374555013,), (1374555014,), (1374555015,), (1374555018,), (1374621781,), (1374621791,), (1374621809,), (1374621812,), (1374621821,), (1374621826,), (1374621829,), (1374555033,), (1374555035,), (1374555037,), (1374555038,), (1374555039,), (1374555041,), (1374555065,), (1374555073,), (1374555075,), (1374555076,), (1374555077,), (1374555079,), (1374555093,), (1374555099,), (1374555101,), (1374555103,), (1374555106,), (1374555108,), (1374555123,), (1374555126,), (1374555127,), (1374555134,), (1374555142,), (1374555150,), (1374555166,), (1374555172,), (1374555187,), (1374555189,), (1374555192,), (1374555196,), (1374555245,), (1374555273,), (1374555276,), (1374555283,), (1374555304,), (1374555310,), (1374555313,), (1374555322,), (1374555324,), (1374555326,), (1374555327,), (1374555329,), (1374555332,), (1374555345,), (1374555347,), (1374555356,), (1374555361,), (1374555372,), (1374555375,), (1374555387,), (1374555389,), (1374555391,), (1374555394,), (1374555396,), (1374555399,), (1374555408,), (1374555411,), (1374555413,), (1374555415,), (1374555417,), (1374555420,), (1374555437,), (1374555464,), (1374555473,), (1374555479,), (1374555484,), (1374555487,), (1374555490,), (1374555505,), (1374555507,), (1374555509,), (1374555511,), (1374555513,), (1374555516,), (1374555536,), (1374555539,), (1374555541,), (1374555543,), (1374555545,), (1374555547,), (1374621511,), (1374621515,), (1374621520,), (1374621522,), (1374621524,), (1374621545,), (1374621572,), (1374621577,), (1374621670,), (1374621678,), (1374621712,), (1374621714,), (1374621715,), (1374621717,), (1374621719,), (1374621720,), (1374621722,), (1374621760,), (1374621762,), (1374621771,), (1374621773,), (1374621775,), (1374621777,), (1374555596,), (1374555629,), (1374555630,), (1374555631,), (1374555632,), (1374555634,), (1374555638,), (1374555659,), (1374555660,), (1374555661,), (1374555662,), (1374555664,), (1374555668,), (1374555682,), (1374555683,), (1374555684,), (1374555685,), (1374555687,), (1374555688,), (1374555712,), (1374555715,), (1374555720,), (1374555721,), (1374555723,), (1374555725,), (1374555775,), (1374555777,), (1374555778,), (1374555795,), (1374555810,), (1374555813,), (1374555832,), (1374555833,), (1374555834,), (1374555835,), (1374555838,), (1374555842,), (1374555856,), (1374555859,), (1374555860,), (1374555861,), (1374555863,), (1374555866,), (1374555883,), (1374555884,), (1374555885,), (1374555886,), (1374555887,), (1374555889,), (1374555909,), (1374555911,), (1374555913,), (1374555915,), (1374555918,), (1374555922,), (1374555968,), (1374556020,), (1374556023,), (1374556025,), (1374556026,), (1374556029,), (1374556033,), (1374556048,), (1374556057,), (1374556067,), (1374556070,), (1374556072,), (1374556075,), (1374556091,), (1374556093,), (1374556095,), (1374556097,), (1374556100,), (1374556103,), (1374556166,), (1374556180,), (1374556190,), (1374556195,), (1374556199,), (1374556202,), (1374621468,), (1374621470,), (1374621472,), (1374621495,), (1374621496,), (1374556252,), (1374556278,), (1374556308,), (1374556334,), (1374556360,), (1374556363,), (1374556437,), (1374556458,), (1374556473,), (1374556475,), (1374556476,), (1374556478,), (1374556591,), (1374556601,), (1374556605,), (1374556607,), (1374556610,), (1374556614,), (1374556630,), (1374556633,), (1374556640,), (1374556643,), (1374556644,), (1374556646,), (1374556666,), (1374556674,), (1374556679,), (1374556681,), (1374556684,), (1374556688,), (1374556952,), (1374557106,), (1374557108,), (1374557110,), (1374557112,), (1374557114,), (1374557117,), (1374557138,), (1374557140,), (1374557141,), (1374557142,), (1374557144,), (1374557148,), (1374557172,), (1374557174,), (1374557176,), (1374557178,), (1374557181,), (1374557185,), (1374557216,), (1374557219,), (1374557220,), (1374557222,), (1374557223,), (1374557225,), (1374557242,), (1374557245,), (1374557247,), (1374557250,), (1374557251,), (1374557254,), (1374557292,), (1374557296,), (1374557300,), (1374557301,), (1374557303,), (1374557305,), (1374557573,), (1374557602,), (1374557626,), (1374557651,), (1374557677,), (1374557702,), (1374557890,), (1374557895,), (1374557898,), (1374557902,), (1374557906,), (1374557911,), (1374558105,), (1374621250,), (1374621365,), (1374621370,), (1374621373,), (1374621423,), (1374621425,), (1374621427,), (1374621429,), (1374621438,), (1374621441,), (1374621452,), (1374621455,), (1374621458,), (1374621459,), (1374621462,), (1374621464,), (1374621465,), (1374621467,), (1374558443,), (1374558466,), (1374558494,), (1374558519,), (1374558544,), (1374558571,), (1374558730,), (1374558974,), (1374558999,), (1374559040,), (1374559043,), (1374559045,), (1374559068,), (1374559158,), (1374559161,), (1374559164,), (1374559166,), (1374559169,), (1374559173,), (1374559371,), (1374559412,), (1374559440,), (1374559480,), (1374559498,), (1374559509,), (1374559667,), (1374559686,), (1374559688,), (1374559689,), (1374559712,), (1374559742,), (1374559756,), (1374559776,), (1374559778,), (1374559780,), (1374559781,), (1374559785,), (1374559792,), (1374559793,), (1374559795,), (1374559797,), (1374559799,), (1374559802,), (1374559822,), (1374559828,), (1374559829,), (1374559836,), (1374559862,), (1374559888,), (1374560165,), (1374560190,), (1374560217,), (1374560241,), (1374560265,), (1374560291,), (1374560732,), (1374560808,), (1374560817,), (1374560818,), (1374560819,), (1374560821,), (1374560824,), (1374560832,), (1374560874,), (1374560884,), (1374560894,), (1374560896,), (1374560898,), (1374560900,), (1374560916,), (1374560917,), (1374560918,), (1374560919,), (1374560921,), (1374560924,), (1374560937,), (1374560939,), (1374560940,), (1374560941,), (1374560944,), (1374560947,), (1374560985,), (1374560986,), (1374560987,), (1374560988,), (1374560990,), (1374560993,), (1374561007,), (1374561008,), (1374561009,), (1374561010,), (1374561012,), (1374561015,), (1374561036,), (1374561037,), (1374561038,), (1374561039,), (1374561041,), (1374561043,), (1374561084,), (1374561086,), (1374561088,), (1374561090,), (1374561091,), (1374561093,), (1374561108,), (1374561109,), (1374561110,), (1374561111,), (1374561112,), (1374561114,), (1374561147,), (1374561281,), (1374561282,), (1374561283,), (1374561284,), (1374561333,), (1374561343,), (1374561378,), (1374561379,), (1374561380,), (1374561381,), (1374561383,), (1374561386,), (1374561398,), (1374561399,), (1374561400,), (1374561401,), (1374561403,), (1374561405,), (1374561420,), (1374561421,), (1374561422,), (1374561423,), (1374561425,), (1374561428,), (1374561444,), (1374561445,), (1374561446,), (1374561448,), (1374561450,), (1374561454,), (1374561464,), (1374561466,), (1374561467,), (1374561468,), (1374561469,), (1374561471,), (1374561473,), (1374561489,), (1374561491,), (1374561493,), (1374561494,), (1374561496,), (1374561499,), (1374561510,), (1374561512,), (1374561514,), (1374561515,), (1374561517,), (1374561518,), (1374561533,), (1374561535,), (1374561539,), (1374561541,), (1374561543,), (1374561544,), (1374561616,), (1374561636,), (1374561639,), (1374561641,), (1374561643,), (1374561645,), (1374561647,), (1374561665,), (1374561668,), (1374561671,), (1374561672,), (1374561674,), (1374561677,), (1374561693,), (1374561695,), (1374561697,), (1374561698,), (1374561701,), (1374561704,), (1374561718,), (1374561722,), (1374561748,), (1374561772,), (1374561799,), (1374561830,), (1374561963,), (1374561966,), (1374561968,), (1374561970,), (1374561972,), (1374561975,), (1374561990,), (1374561992,), (1374561994,), (1374561995,), (1374561997,), (1374562000,), (1374562080,), (1374562082,), (1374562103,), (1374562116,), (1374562132,), (1374562138,), (1374562177,), (1374562179,), (1374562181,), (1374562182,), (1374562184,), (1374562187,), (1374562200,), (1374562201,), (1374562205,), (1374562206,), (1374562208,), (1374562211,), (1374562285,), (1374562385,), (1374562413,), (1374562438,), (1374562467,), (1374562493,), (1374562521,), (1374562670,), (1374562874,), (1374562920,), (1374562947,), (1374562948,), (1374562966,), (1374562985,), (1374563061,), (1374563062,), (1374563064,), (1374563065,), (1374563067,), (1374563070,), (1374620867,), (1374620872,), (1374620880,), (1374620883,), (1374620897,), (1374620922,), (1374620948,), (1374620975,), (1374621178,), (1374621203,), (1374621228,), (1374621243,), (1374621246,), (1374621247,), (1374563097,), (1374563098,), (1374563099,), (1374563100,), (1374563101,), (1374563103,), (1374563125,), (1374563127,), (1374563128,), (1374563130,), (1374563146,), (1374563174,), (1374563369,), (1374563371,), (1374563386,), (1374563408,), (1374563410,), (1374563412,), (1374563476,), (1374563480,), (1374563483,), (1374563486,), (1374563487,), (1374563490,), (1374563511,), (1374563514,), (1374563517,), (1374563518,), (1374563520,), (1374563524,), (1374563547,), (1374563624,), (1374563626,), (1374563629,), (1374563631,), (1374563633,), (1374563636,), (1374563651,), (1374563653,), (1374563655,), (1374563656,), (1374563658,), (1374563661,), (1374563682,), (1374563684,), (1374563686,), (1374563688,), (1374563690,), (1374563694,), (1374563708,), (1374563711,), (1374563714,), (1374563716,), (1374563720,), (1374563724,), (1374563737,), (1374563740,), (1374563742,), (1374563743,), (1374563746,), (1374563750,), (1374563762,), (1374563764,), (1374563766,), (1374563767,), (1374563769,), (1374563772,), (1374563914,), (1374563938,), (1374563962,), (1374563985,), (1374564009,), (1374564035,), (1374564641,), (1374618243,), (1374618267,), (1374618291,), (1374618316,), (1374618340,), (1374618766,), (1374618796,), (1374619034,), (1374619086,), (1374619131,), (1374620108,), (1374620151,), (1374620198,), (1374620246,), (1374620301,), (1374620349,), (1374620720,), (1374565298,), (1374565352,), (1374565406,), (1374565466,), (1374565515,), (1374565710,), (1374565780,), (1374565838,), (1374565895,), (1374565971,), (1374566050,), (1374566580,), (1374566593,), (1374566631,), (1374566675,), (1374566687,), (1374566709,), (1374566760,), (1374566768,), (1374566778,), (1374566783,), (1374566787,), (1374566790,), (1374566855,), (1374566879,), (1374566904,), (1374566911,), (1374566920,), (1374566943,), (1374567048,), (1374567075,), (1374567100,), (1374567128,), (1374567153,), (1374567203,), (1374567433,), (1374567596,), (1374567598,), (1374567600,), (1374567602,), (1374567604,), (1374567606,), (1374567622,), (1374567628,), (1374567631,), (1374567632,), (1374567635,), (1374567638,), (1374567648,), (1374567653,), (1374567655,), (1374567657,), (1374567659,), (1374567662,), (1374567694,), (1374567696,), (1374567698,), (1374567700,), (1374567703,), (1374567720,), (1374567807,), (1374567832,), (1374567834,), (1374567836,), (1374567878,), (1374567940,), (1374567971,), (1374567973,), (1374567975,), (1374567976,), (1374567978,), (1374567981,), (1374567991,), (1374567993,), (1374567995,), (1374567997,), (1374567998,), (1374568001,), (1374568011,), (1374568014,), (1374568016,), (1374568017,), (1374568019,), (1374568022,), (1374568036,), (1374568041,), (1374568043,), (1374568044,), (1374568046,), (1374568049,), (1374568060,), (1374568062,), (1374568064,), (1374568065,), (1374568067,), (1374568070,), (1374568089,), (1374568095,), (1374568097,), (1374568099,), (1374568101,), (1374568104,), (1374568116,), (1374568133,), (1374568141,), (1374568143,), (1374568145,), (1374568147,), (1374568151,), (1374568173,), (1374568191,), (1374568195,), (1374568196,), (1374568198,), (1374568200,), (1374568203,), (1374568216,), (1374568219,), (1374568221,), (1374568222,), (1374568224,), (1374568227,), (1374568242,), (1374568245,), (1374568248,), (1374568250,), (1374568251,), (1374568254,), (1374568268,), (1374568275,), (1374568283,), (1374568286,), (1374568287,), (1374568290,), (1374568309,), (1374568311,), (1374568313,), (1374568315,), (1374568316,), (1374568321,), (1374568348,), (1374568351,), (1374568354,), (1374568356,), (1374568359,), (1374568362,), (1374568372,), (1374568376,), (1374568378,), (1374568380,), (1374568381,), (1374568383,), (1374568393,), (1374568395,), (1374568397,), (1374568398,), (1374568400,), (1374568403,), (1374568417,), (1374568419,), (1374568422,), (1374568423,), (1374568425,), (1374568427,), (1374568462,), (1374568484,), (1374568486,), (1374568488,), (1374568490,), (1374568491,), (1374568494,), (1374568514,), (1374568517,), (1374568519,), (1374568521,), (1374568523,), (1374568525,), (1374568538,), (1374568541,), (1374568543,), (1374568545,), (1374568546,), (1374568549,), (1374568562,), (1374568564,), (1374568566,), (1374568569,), (1374568572,), (1374568574,), (1374568583,), (1374568586,), (1374568588,), (1374568590,), (1374568591,), (1374568594,), (1374568629,), (1374568633,), (1374568636,), (1374568639,), (1374568660,), (1374568663,), (1374568686,), (1374568692,), (1374568695,), (1374568698,), (1374568699,), (1374568702,), (1374568720,), (1374568722,), (1374568723,), (1374568737,), (1374568738,), (1374568752,), (1374568803,), (1374568809,), (1374568811,), (1374568813,), (1374568820,), (1374568827,), (1374568900,), (1374568934,), (1374568975,), (1374568999,), (1374569026,), (1374569075,), (1374569106,), (1374569185,), (1374569189,), (1374569193,), (1374569195,), (1374569196,), (1374569198,), (1374569208,), (1374569213,), (1374569220,), (1374569223,), (1374569225,), (1374569228,), (1374569239,), (1374569243,), (1374569245,), (1374569247,), (1374569249,), (1374569251,), (1374569263,), (1374569267,), (1374569269,), (1374569270,), (1374569272,), (1374569273,), (1374569281,), (1374569284,), (1374569285,), (1374569287,), (1374569289,), (1374569292,), (1374569352,), (1374569361,), (1374569371,), (1374569373,), (1374569375,), (1374569400,), (1374569545,), (1374569555,), (1374569571,), (1374569578,), (1374569589,), (1374569592,), (1374569645,), (1374569675,), (1374569698,), (1374569700,), (1374569701,), (1374569702,), (1374569944,), (1374570124,), (1374570127,), (1374570129,), (1374570132,), (1374570134,), (1374570137,), (1374570186,), (1374570190,), (1374570192,), (1374570194,), (1374570196,), (1374570198,), (1374570367,), (1374570381,), (1374570405,), (1374570424,), (1374570445,), (1374570484,), (1374570557,), (1374570561,), (1374570587,), (1374570610,), (1374570635,), (1374570660,), (1374570737,), (1374570741,), (1374570744,), (1374570748,), (1374570750,), (1374570752,), (1374570791,), (1374570798,), (1374570801,), (1374570803,), (1374570806,), (1374570808,), (1374570869,), (1374571069,), (1374571094,), (1374571122,), (1374571151,), (1374571177,), (1374571226,), (1374571778,), (1374572659,), (1374572357,), (1374572396,), (1374572452,), (1374572496,), (1374572533,), (1374572560,), (1374573024,), (1374573082,), (1374573142,), (1374573202,), (1374573255,), (1374573317,), (1374573486,), (1374573504,), (1374573587,), (1374573633,), (1374573660,), (1374573674,), (1374573754,), (1374573756,), (1374573758,), (1374573760,), (1374573761,), (1374573766,), (1374573785,), (1374573790,), (1374573794,), (1374573796,), (1374573798,), (1374573801,), (1374573819,), (1374573847,), (1374573849,), (1374573852,), (1374573854,), (1374573856,), (1374573860,), (1374573870,), (1374573873,), (1374573876,), (1374573877,), (1374573879,), (1374573880,), (1374573897,), (1374573905,), (1374573907,), (1374573908,), (1374573910,), (1374573914,), (1374573937,), (1374573949,), (1374573953,), (1374573956,), (1374573958,), (1374573968,), (1374574203,), (1374574237,), (1374574264,), (1374574289,), (1374574296,), (1374574300,), (1374574358,), (1374574376,), (1374574383,), (1374574384,), (1374574386,), (1374574390,), (1374574416,), (1374574421,), (1374574423,), (1374574424,), (1374574426,), (1374574429,), (1374574442,), (1374574470,), (1374574477,), (1374574479,), (1374574480,), (1374574481,), (1374574482,), (1374574496,), (1374574497,), (1374574498,), (1374574499,), (1374574501,), (1374574509,), (1374574527,), (1374574536,), (1374574539,), (1374574541,), (1374574543,), (1374574546,), (1374574564,), (1374574581,), (1374574605,), (1374574631,), (1374574661,), (1374574688,), (1374574946,), (1374574959,), (1374574966,), (1374574967,), (1374574968,), (1374574975,), (1374575197,), (1374575372,), (1374575380,), (1374575383,), (1374575404,), (1374575434,), (1374575439,), (1374575503,), (1374575504,), (1374575505,), (1374575506,), (1374575507,), (1374575509,), (1374575526,), (1374575535,), (1374575537,), (1374575539,), (1374575543,), (1374575568,), (1374575598,), (1374575601,), (1374575603,), (1374575605,), (1374575607,), (1374575610,), (1374575625,), (1374575634,), (1374575635,), (1374575637,), (1374575639,), (1374575642,), (1374575656,), (1374575657,), (1374575658,), (1374575659,), (1374575660,), (1374575663,), (1374575697,), (1374575704,), (1374575706,), (1374575708,), (1374575710,), (1374575712,), (1374575734,), (1374575738,), (1374575741,), (1374575744,), (1374575746,), (1374575748,), (1374575764,), (1374575774,), (1374575777,), (1374575778,), (1374575779,), (1374575781,), (1374575803,), (1374575822,), (1374575833,), (1374575858,), (1374575883,), (1374575909,), (1374575935,), (1374576037,), (1374576039,), (1374576040,), (1374576042,), (1374576044,), (1374576046,), (1374576074,), (1374576078,), (1374576081,), (1374576083,), (1374576085,), (1374576088,), (1374576108,), (1374576113,), (1374576118,), (1374576121,), (1374576123,), (1374576125,), (1374576296,), (1374576327,), (1374576351,), (1374576366,), (1374576367,), (1374576379,), (1374576467,), (1374576469,), (1374576471,), (1374576472,), (1374576473,), (1374576478,), (1374576495,), (1374576498,), (1374576501,), (1374576503,), (1374576505,), (1374576508,), (1374576662,), (1374576688,), (1374576691,), (1374576692,), (1374576699,), (1374576721,), (1374576834,), (1374576865,), (1374576870,), (1374576871,), (1374576872,), (1374576874,), (1374576930,), (1374577054,), (1374577058,), (1374577068,), (1374577072,), (1374577073,), (1374577075,), (1374577125,), (1374577138,), (1374577164,), (1374577172,), (1374577173,), (1374577186,), (1374577206,), (1374577212,), (1374577214,), (1374577215,), (1374577233,), (1374577265,), (1374577450,), (1374577456,), (1374577462,), (1374577464,), (1374577467,), (1374577497,), (1374577684,), (1374577716,), (1374577741,), (1374577764,), (1374577793,), (1374577817,), (1374577952,), (1374577986,), (1374578010,), (1374578013,), (1374578016,), (1374578017,), (1374578018,), (1374578020,), (1374578043,), (1374578053,), (1374578057,), (1374578060,), (1374578064,), (1374578068,), (1374578173,), (1374578254,), (1374578259,), (1374578262,), (1374578263,), (1374578265,), (1374578267,), (1374578289,), (1374578291,), (1374578313,), (1374578342,), (1374578365,), (1374578369,), (1374578393,), (1374578398,), (1374578400,), (1374578402,), (1374578404,), (1374578408,), (1374578423,), (1374578425,), (1374578428,), (1374578431,), (1374578434,), (1374578438,), (1374578457,), (1374578460,), (1374578464,), (1374578466,), (1374578468,), (1374578469,), (1374578483,), (1374578524,), (1374578530,), (1374578533,), (1374578537,), (1374578558,), (1374578583,), (1374579362,), (1374579415,), (1374579469,), (1374579520,), (1374579548,), (1374579576,), (1374579927,), (1374580352,), (1374580402,), (1374580426,), (1374580472,), (1374580508,), (1374580537,), (1374580912,), (1374580938,), (1374580963,), (1374580991,), (1374581022,), (1374581033,), (1374581039,), (1374581284,), (1374581309,), (1374581328,), (1374581329,), (1374581331,), (1374581341,), (1374581409,), (1374581426,), (1374581429,), (1374581431,), (1374581433,), (1374581435,), (1374581438,), (1374581450,), (1374581454,), (1374581457,), (1374581459,), (1374581462,), (1374581465,), (1374581493,), (1374581505,), (1374581510,), (1374581511,), (1374581514,), (1374581517,), (1374581533,), (1374581535,), (1374581537,), (1374581539,), (1374581541,), (1374581544,), (1374581567,), (1374581574,), (1374581577,), (1374581579,), (1374581582,), (1374581586,), (1374581601,), (1374581621,), (1374581623,), (1374581625,), (1374581627,), (1374581629,), (1374581633,), (1374581693,), (1374581698,), (1374581703,), (1374581706,), (1374581708,), (1374581711,), (1374581728,), (1374581731,), (1374581744,), (1374581748,), (1374581750,), (1374581752,), (1374582031,), (1374582034,), (1374582048,), (1374582050,), (1374582053,), (1374582056,), (1374617913,), (1374618099,), (1374618127,), (1374618217,), (1374582076,), (1374582080,), (1374582094,), (1374582099,), (1374582102,), (1374582106,), (1374582124,), (1374582128,), (1374582131,), (1374582158,), (1374582185,), (1374582214,), (1374582379,), (1374582390,), (1374582394,), (1374582420,), (1374582433,), (1374582436,), (1374582451,), (1374582454,), (1374582456,), (1374582457,), (1374582458,), (1374582460,), (1374582479,), (1374582487,), (1374582490,), (1374582491,), (1374582495,), (1374582499,), (1374582518,), (1374582538,), (1374582550,), (1374582555,), (1374582557,), (1374582560,), (1374582563,), (1374582770,), (1374582796,), (1374582821,), (1374582848,), (1374582873,), (1374582902,), (1374583049,), (1374583074,), (1374583189,), (1374583191,), (1374583197,), (1374583198,), (1374583236,), (1374583399,), (1374583402,), (1374583405,), (1374583414,), (1374583417,), (1374583419,), (1374583440,), (1374583442,), (1374583444,), (1374583446,), (1374583449,), (1374583451,), (1374583628,), (1374583661,), (1374583686,), (1374583709,), (1374583735,), (1374583761,), (1374583873,), (1374583876,), (1374583879,), (1374583881,), (1374583882,), (1374583885,), (1374583904,), (1374583907,), (1374583911,), (1374583912,), (1374583914,), (1374583916,), (1374617232,), (1374617727,), (1374617822,), (1374617823,), (1374617826,), (1374617843,), (1374617847,), (1374617848,), (1374617850,), (1374617878,), (1374617886,), (1374617889,), (1374617891,), (1374617893,), (1374617895,), (1374583937,), (1374583963,), (1374583966,), (1374583969,), (1374583972,), (1374583974,), (1374583977,), (1374583987,), (1374583991,), (1374583993,), (1374583994,), (1374583997,), (1374583999,), (1374584015,), (1374584017,), (1374584019,), (1374584021,), (1374584023,), (1374584027,), (1374584036,), (1374584039,), (1374584042,), (1374584044,), (1374584047,), (1374584050,), (1374584064,), (1374584074,), (1374584077,), (1374584078,), (1374584080,), (1374584084,), (1374584094,), (1374584103,), (1374584110,), (1374584111,), (1374584114,), (1374584117,), (1374584135,), (1374584138,), (1374584140,), (1374584141,), (1374584144,), (1374584147,), (1374584152,), (1374584154,), (1374584156,), (1374584157,), (1374584160,), (1374584164,), (1374584176,), (1374584178,), (1374584180,), (1374584181,), (1374584183,), (1374584186,), (1374584207,), (1374584226,), (1374584233,), (1374584235,), (1374584236,), (1374584239,), (1374584242,), (1374584454,), (1374584478,), (1374584501,), (1374584528,), (1374584560,), (1374584587,), (1374584700,), (1374584731,), (1374584755,), (1374584783,), (1374584810,), (1374584835,), (1374584924,), (1374584927,), (1374584929,), (1374584930,), (1374584932,), (1374584936,), (1374617010,), (1374617040,), (1374617041,), (1374617044,), (1374617046,), (1374617058,), (1374617072,), (1374617075,), (1374617077,), (1374617079,), (1374617081,), (1374617082,), (1374617138,), (1374617210,), (1374617231,), (1374617494,), (1374617520,), (1374584948,), (1374584953,), (1374584959,), (1374584965,), (1374584967,), (1374584970,), (1374584977,), (1374584979,), (1374584981,), (1374584995,), (1374584997,), (1374585001,), (1374585014,), (1374585022,), (1374585027,), (1374585029,), (1374585031,), (1374585035,), (1374585043,), (1374585046,), (1374585048,), (1374585049,), (1374585051,), (1374585054,), (1374585074,), (1374585084,), (1374585086,), (1374585087,), (1374585090,), (1374585093,), (1374585110,), (1374585131,), (1374585139,), (1374585140,), (1374585142,), (1374585144,), (1374585147,), (1374585157,), (1374585159,), (1374585161,), (1374585163,), (1374585164,), (1374585167,), (1374585188,), (1374585191,), (1374585197,), (1374585206,), (1374585212,), (1374585216,), (1374585223,), (1374585230,), (1374585232,), (1374585233,), (1374585236,), (1374585239,), (1374585248,), (1374585251,), (1374585253,), (1374585255,), (1374585257,), (1374585261,), (1374585276,), (1374585278,), (1374585280,), (1374585282,), (1374585285,), (1374585288,), (1374585304,), (1374586027,), (1374586074,), (1374586125,), (1374586170,), (1374586194,), (1374586220,), (1374586992,), (1374589802,), (1374616407,), (1374616410,), (1374616411,), (1374616572,), (1374616573,), (1374616726,), (1374616770,), (1374616802,), (1374616829,), (1374616840,), (1374616856,), (1374616886,), (1374616911,), (1374616934,), (1374616935,), (1374616980,), (1374616994,), (1374617002,), (1374617004,), (1374617005,), (1374617007,), (1374617009,), (1374586626,), (1374586673,), (1374586705,), (1374586757,), (1374586812,), (1374586864,), (1374587129,), (1374587158,), (1374587184,), (1374587211,), (1374587235,), (1374587260,), (1374587696,), (1374588002,), (1374588006,), (1374588010,), (1374588035,), (1374588055,), (1374588062,), (1374588073,), (1374588075,), (1374588077,), (1374588078,), (1374588080,), (1374588084,), (1374588095,), (1374588097,), (1374588099,), (1374588100,), (1374588102,), (1374588106,), (1374588121,), (1374588125,), (1374588127,), (1374588128,), (1374588130,), (1374588133,), (1374588154,), (1374588167,), (1374588174,), (1374588184,), (1374588186,), (1374588190,), (1374588204,), (1374588312,), (1374588315,), (1374588327,), (1374588329,), (1374588348,), (1374588355,), (1374588387,), (1374588493,), (1374588502,), (1374588517,), (1374588532,), (1374588545,), (1374588548,), (1374588612,), (1374588620,), (1374588630,), (1374588636,), (1374588666,), (1374588694,), (1374588726,), (1374588729,), (1374588740,), (1374588741,), (1374588742,), (1374588745,), (1374588763,), (1374588765,), (1374588768,), (1374588770,), (1374588773,), (1374588775,), (1374588813,), (1374588819,), (1374588821,), (1374588822,), (1374588858,), (1374588877,), (1374588939,), (1374588951,), (1374588953,), (1374588955,), (1374588958,), (1374588961,), (1374589096,), (1374589109,), (1374589118,), (1374589128,), (1374589137,), (1374589163,), (1374589209,), (1374589338,), (1374589343,), (1374589358,), (1374589359,), (1374589361,), (1374589363,), (1374589457,), (1374589500,), (1374589504,), (1374589506,), (1374589507,), (1374589509,), (1374589512,), (1374589629,), (1374589642,), (1374589649,), (1374589657,), (1374589667,), (1374589675,), (1374589702,), (1374589708,), (1374589710,), (1374589712,), (1374589714,), (1374589716,), (1374589730,), (1374589732,), (1374589735,), (1374589738,), (1374589741,), (1374589744,), (1374589753,), (1374589761,), (1374589764,), (1374589765,), (1374589768,), (1374589770,), (1374589782,), (1374589784,), (1374589786,), (1374589788,), (1374589789,), (1374589792,), (1374589811,), (1374589815,), (1374589823,), (1374589831,), (1374589834,), (1374589838,), (1374589855,), (1374589856,), (1374589857,), (1374589859,), (1374589860,), (1374589863,), (1374589889,), (1374589890,), (1374589892,), (1374589893,), (1374589894,), (1374589896,), (1374616299,), (1374616314,), (1374616332,), (1374616357,), (1374616367,), (1374616374,), (1374616403,), (1374616404,), (1374616406,), (1374589939,), (1374589941,), (1374589942,), (1374589943,), (1374589945,), (1374589949,), (1374589963,), (1374589973,), (1374589978,), (1374589992,), (1374589993,), (1374589995,), (1374590019,), (1374590021,), (1374590023,), (1374590025,), (1374590027,), (1374590029,), (1374590174,), (1374590209,), (1374590249,), (1374590276,), (1374590301,), (1374590327,), (1374590570,), (1374590740,), (1374590753,), (1374590779,), (1374590804,), (1374590820,), (1374590822,), (1374591179,), (1374591205,), (1374591234,), (1374591263,), (1374591292,), (1374591325,), (1374591395,), (1374591421,), (1374591447,), (1374591473,), (1374591499,), (1374591507,), (1374591606,), (1374591634,), (1374591663,), (1374591670,), (1374591671,), (1374591675,), (1374591716,), (1374591724,), (1374591737,), (1374591739,), (1374591740,), (1374591742,), (1374591806,), (1374591895,), (1374591900,), (1374591905,), (1374591906,), (1374591908,), (1374591909,), (1374591962,), (1374592008,), (1374592021,), (1374592053,), (1374592061,), (1374592064,), (1374592076,), (1374592089,), (1374592114,), (1374592140,), (1374592166,), (1374592193,), (1374592220,), (1374616264,), (1374616267,), (1374616271,), (1374616274,), (1374616285,), (1374616287,), (1374616288,), (1374616289,), (1374616294,), (1374592293,), (1374592295,), (1374592297,), (1374592298,), (1374592300,), (1374592303,), (1374592455,), (1374592474,), (1374592477,), (1374592479,), (1374592480,), (1374592482,), (1374592544,), (1374592546,), (1374592582,), (1374592607,), (1374592635,), (1374592671,), (1374592748,), (1374592751,), (1374592754,), (1374592756,), (1374592757,), (1374592760,), (1374592840,), (1374592850,), (1374592853,), (1374592855,), (1374592857,), (1374592860,), (1374592877,), (1374592879,), (1374592882,), (1374592883,), (1374592884,), (1374592887,), (1374592906,), (1374592992,), (1374592995,), (1374592997,), (1374593016,), (1374593018,), (1374593028,), (1374593163,), (1374593177,), (1374593204,), (1374593215,), (1374593241,), (1374593266,), (1374593633,), (1374593698,), (1374593736,), (1374593743,), (1374593748,), (1374593751,), (1374593771,), (1374593778,), (1374593790,), (1374593792,), (1374593794,), (1374593797,), (1374593811,), (1374593814,), (1374593815,), (1374593817,), (1374593818,), (1374593820,), (1374593845,), (1374593848,), (1374593868,), (1374593894,), (1374593920,), (1374593946,), (1374594661,), (1374615845,), (1374615847,), (1374615858,), (1374616228,), (1374616229,), (1374616242,), (1374616261,), (1374616262,), (1374595300,), (1374595309,), (1374595336,), (1374595365,), (1374595396,), (1374595789,), (1374595841,), (1374595889,), (1374595942,), (1374595980,), (1374596011,), (1374596521,), (1374596559,), (1374596619,), (1374596654,), (1374596686,), (1374596807,), (1374596971,), (1374596975,), (1374596978,), (1374596980,), (1374596983,), (1374596987,), (1374597058,), (1374597071,), (1374597077,), (1374597086,), (1374597089,), (1374597092,), (1374597173,), (1374597185,), (1374597206,), (1374597230,), (1374597246,), (1374597256,), (1374597340,), (1374597366,), (1374597391,), (1374597424,), (1374597449,), (1374597474,), (1374597755,), (1374597778,), (1374597781,), (1374597782,), (1374597784,), (1374597787,), (1374597948,), (1374597996,), (1374598042,), (1374598059,), (1374598063,), (1374598067,), (1374598151,), (1374598279,), (1374598412,), (1374598415,), (1374598417,), (1374598418,), (1374598420,), (1374598423,), (1374598437,), (1374598439,), (1374598440,), (1374598442,), (1374598444,), (1374598447,), (1374598473,), (1374598500,), (1374598527,), (1374598554,), (1374598583,), (1374598613,), (1374598879,), (1374615784,), (1374615786,), (1374615788,), (1374615789,), (1374615827,), (1374615830,), (1374615840,), (1374615842,), (1374615843,), (1374616171,), (1374616214,), (1374616220,), (1374598983,), (1374598986,), (1374598988,), (1374598990,), (1374598992,), (1374598994,), (1374599056,), (1374599058,), (1374599060,), (1374599061,), (1374599063,), (1374599066,), (1374599235,), (1374599263,), (1374599266,), (1374599268,), (1374599270,), (1374599281,), (1374599363,), (1374599389,), (1374599424,), (1374599429,), (1374599440,), (1374599451,), (1374599549,), (1374599572,), (1374599594,), (1374599595,), (1374599596,), (1374599599,), (1374599629,), (1374599632,), (1374599656,), (1374599670,), (1374599693,), (1374599696,), (1374599772,), (1374599796,), (1374599815,), (1374599819,), (1374599822,), (1374599824,), (1374599826,), (1374599842,), (1374599845,), (1374599871,), (1374599897,), (1374599924,), (1374599949,), (1374600011,), (1374600014,), (1374600016,), (1374600017,), (1374600019,), (1374600022,), (1374600048,), (1374600052,), (1374600056,), (1374600059,), (1374600062,), (1374600066,), (1374600077,), (1374600081,), (1374600084,), (1374600087,), (1374600089,), (1374600092,), (1374600112,), (1374600122,), (1374600125,), (1374600127,), (1374600131,), (1374600135,), (1374600173,), (1374600177,), (1374600179,), (1374600181,), (1374600182,), (1374600186,), (1374600220,), (1374600253,), (1374600279,), (1374600306,), (1374600349,), (1374600386,), (1374615713,), (1374615714,), (1374615732,), (1374615736,), (1374615741,), (1374615742,), (1374615743,), (1374615744,), (1374615745,), (1374615747,), (1374600462,), (1374600469,), (1374600497,), (1374600504,), (1374600516,), (1374600519,), (1374600544,), (1374600593,), (1374600595,), (1374600596,), (1374600597,), (1374600602,), (1374600608,), (1374600754,), (1374600780,), (1374600815,), (1374600841,), (1374600850,), (1374600854,), (1374601030,), (1374601056,), (1374601086,), (1374601115,), (1374601155,), (1374601209,), (1374601238,), (1374601241,), (1374601243,), (1374601246,), (1374601250,), (1374601253,), (1374601274,), (1374601281,), (1374601283,), (1374601294,), (1374601300,), (1374601309,), (1374601540,), (1374601567,), (1374601625,), (1374601688,), (1374601714,), (1374601731,), (1374601810,), (1374601859,), (1374601866,), (1374601868,), (1374601869,), (1374601871,), (1374601875,), (1374601901,), (1374601903,), (1374601905,), (1374601907,), (1374601910,), (1374601914,), (1374601991,), (1374602389,), (1374602399,), (1374602406,), (1374602413,), (1374602417,), (1374602421,), (1374602503,), (1374602511,), (1374602515,), (1374602516,), (1374602518,), (1374602520,), (1374602536,), (1374602537,), (1374602539,), (1374602540,), (1374602542,), (1374602547,), (1374615505,), (1374615506,), (1374615508,), (1374615530,), (1374615531,), (1374615533,), (1374615535,), (1374615537,), (1374615539,), (1374615541,), (1374615544,), (1374615571,), (1374615709,), (1374615710,), (1374615711,), (1374615712,), (1374602604,), (1374602612,), (1374602623,), (1374602626,), (1374602629,), (1374602632,), (1374602701,), (1374602702,), (1374602703,), (1374602704,), (1374602707,), (1374602711,), (1374602725,), (1374602727,), (1374602728,), (1374602729,), (1374602745,), (1374602755,), (1374602778,), (1374602780,), (1374602781,), (1374602782,), (1374602783,), (1374602785,), (1374602842,), (1374602843,), (1374602844,), (1374602845,), (1374602847,), (1374602865,), (1374602952,), (1374603005,), (1374603006,), (1374603007,), (1374603008,), (1374603010,), (1374603011,), (1374603082,), (1374603109,), (1374603131,), (1374603132,), (1374603146,), (1374603150,), (1374603246,), (1374603248,), (1374603260,), (1374603271,), (1374603274,), (1374603278,), (1374603364,), (1374603365,), (1374603366,), (1374603367,), (1374603368,), (1374603374,), (1374603466,), (1374603468,), (1374603469,), (1374603471,), (1374603474,), (1374603478,), (1374603492,), (1374603495,), (1374603498,), (1374603501,), (1374603504,), (1374603508,), (1374603681,), (1374603707,), (1374603732,), (1374603755,), (1374603778,), (1374603807,), (1374604602,), (1374604646,), (1374604682,), (1374604714,), (1374604766,), (1374604798,), (1374614842,), (1374614918,), (1374614920,), (1374614935,), (1374614939,), (1374614948,), (1374614955,), (1374615266,), (1374615272,), (1374615292,), (1374615297,), (1374615436,), (1374615442,), (1374615449,), (1374615453,), (1374615454,), (1374615472,), (1374615498,), (1374615501,), (1374615502,), (1374615503,), (1374605096,), (1374605124,), (1374605157,), (1374605183,), (1374605209,), (1374605235,), (1374605389,), (1374605439,), (1374605480,), (1374605507,), (1374605549,), (1374605597,), (1374605720,), (1374605723,), (1374605725,), (1374605727,), (1374605729,), (1374605733,), (1374605754,), (1374605760,), (1374605761,), (1374605763,), (1374605766,), (1374605769,), (1374605791,), (1374605793,), (1374605795,), (1374605797,), (1374605799,), (1374605802,), (1374605816,), (1374605819,), (1374605822,), (1374605823,), (1374605826,), (1374605830,), (1374605843,), (1374605850,), (1374605855,), (1374605856,), (1374605858,), (1374605861,), (1374605878,), (1374605882,), (1374605884,), (1374605885,), (1374605901,), (1374605921,), (1374606066,), (1374606086,), (1374606088,), (1374606090,), (1374606092,), (1374606094,), (1374606111,), (1374606114,), (1374606116,), (1374606118,), (1374606133,), (1374606138,), (1374606198,), (1374606320,), (1374606651,), (1374606682,), (1374606684,), (1374606686,), (1374606688,), (1374606690,), (1374606693,), (1374606710,), (1374606713,), (1374606716,), (1374606720,), (1374606723,), (1374606725,), (1374614768,), (1374614770,), (1374614772,), (1374614774,), (1374614776,), (1374614778,), (1374614799,), (1374614805,), (1374614809,), (1374614812,), (1374614814,), (1374614819,), (1374614822,), (1374614840,), (1374614841,), (1374606740,), (1374606752,), (1374606758,), (1374606759,), (1374606761,), (1374606764,), (1374606799,), (1374606802,), (1374606805,), (1374606808,), (1374606809,), (1374606812,), (1374606850,), (1374606852,), (1374606855,), (1374606856,), (1374606859,), (1374606864,), (1374606986,), (1374607013,), (1374607040,), (1374607066,), (1374607067,), (1374607071,), (1374607082,), (1374607087,), (1374607089,), (1374607091,), (1374607095,), (1374607103,), (1374607121,), (1374607122,), (1374607136,), (1374607166,), (1374607174,), (1374607177,), (1374607268,), (1374607519,), (1374607544,), (1374607567,), (1374607592,), (1374607618,), (1374607623,), (1374607672,), (1374607675,), (1374607678,), (1374607681,), (1374607683,), (1374607686,), (1374607700,), (1374607703,), (1374607705,), (1374607706,), (1374607708,), (1374607711,), (1374607744,), (1374607749,), (1374607752,), (1374607754,), (1374607764,), (1374607792,), (1374607863,), (1374607867,), (1374607868,), (1374607870,), (1374607873,), (1374607877,), (1374607899,), (1374607904,), (1374607906,), (1374607908,), (1374607910,), (1374607914,), (1374607932,), (1374607936,), (1374607940,), (1374607943,), (1374607946,), (1374607950,), (1374607979,), (1374607981,), (1374607983,), (1374607985,), (1374607987,), (1374607992,), (1374614737,), (1374614746,), (1374614750,), (1374614754,), (1374614758,), (1374614761,), (1374608009,), (1374608022,), (1374608024,), (1374608026,), (1374608029,), (1374608031,), (1374608035,), (1374608051,), (1374608054,), (1374608056,), (1374608058,), (1374608059,), (1374608062,), (1374608086,), (1374608088,), (1374608090,), (1374608092,), (1374608095,), (1374608100,), (1374608112,), (1374608114,), (1374608116,), (1374608117,), (1374608120,), (1374608123,), (1374608147,), (1374608151,), (1374608153,), (1374608155,), (1374608157,), (1374608161,), (1374608230,), (1374608233,), (1374608236,), (1374608240,), (1374608244,), (1374608261,), (1374608386,), (1374608389,), (1374608392,), (1374608416,), (1374608420,), (1374608429,), (1374608450,), (1374608453,), (1374608454,), (1374608456,), (1374608459,), (1374608464,), (1374608485,), (1374608491,), (1374608492,), (1374608493,), (1374608494,), (1374608496,), (1374608567,), (1374608577,), (1374608579,), (1374608581,), (1374608600,), (1374608607,), (1374608636,), (1374608826,), (1374608858,), (1374608885,), (1374608918,), (1374608944,), (1374608979,), (1374609092,), (1374609094,), (1374609095,), (1374609096,), (1374609098,), (1374609103,), (1374609163,), (1374609165,), (1374609168,), (1374609169,), (1374609171,), (1374609176,), (1374614358,), (1374614360,), (1374614401,), (1374614404,), (1374614460,), (1374614485,), (1374614511,), (1374614537,), (1374614562,), (1374614588,), (1374614721,), (1374614729,), (1374614731,), (1374609204,), (1374609210,), (1374609217,), (1374609218,), (1374609219,), (1374609222,), (1374609240,), (1374609243,), (1374609246,), (1374609247,), (1374609250,), (1374609255,), (1374609306,), (1374609309,), (1374609310,), (1374609311,), (1374609312,), (1374609314,), (1374609340,), (1374609344,), (1374609351,), (1374609360,), (1374609366,), (1374609368,), (1374609470,), (1374609475,), (1374609476,), (1374609477,), (1374609479,), (1374609480,), (1374609507,), (1374609508,), (1374609509,), (1374609510,), (1374609512,), (1374609515,), (1374609560,), (1374609581,), (1374609582,), (1374609583,), (1374609584,), (1374609585,), (1374609587,), (1374609609,), (1374609610,), (1374609611,), (1374609612,), (1374609613,), (1374609615,), (1374609630,), (1374609632,), (1374609634,), (1374609635,), (1374609636,), (1374609638,), (1374609682,), (1374609683,), (1374609684,), (1374609685,), (1374609687,), (1374609691,), (1374609837,), (1374609838,), (1374609839,), (1374609840,), (1374609842,), (1374609846,), (1374609957,), (1374609980,), (1374610006,), (1374610029,), (1374610054,), (1374610085,), (1374610801,), (1374613763,), (1374614316,), (1374614318,), (1374614320,), (1374614323,), (1374614325,), (1374614336,), (1374614339,), (1374614342,), (1374614350,), (1374614352,), (1374614354,), (1374614357,), (1374611466,), (1374611515,), (1374611543,), (1374611580,), (1374611626,), (1374612025,), (1374612227,), (1374612244,), (1374612267,), (1374612275,), (1374612277,), (1374612280,), (1374612346,), (1374612355,), (1374612363,), (1374612370,), (1374612372,), (1374612376,), (1374612389,), (1374612392,), (1374612395,), (1374612397,), (1374612399,), (1374612403,), (1374612413,), (1374612422,), (1374612430,), (1374612437,), (1374612440,), (1374612443,), (1374612462,), (1374612464,), (1374612466,), (1374612468,), (1374612470,), (1374612474,), (1374612632,), (1374612637,), (1374612640,), (1374612643,), (1374612651,), (1374612665,), (1374612699,), (1374612703,), (1374612705,), (1374612706,), (1374612708,), (1374612711,), (1374612729,), (1374612732,), (1374612734,), (1374612735,), (1374612738,), (1374612741,), (1374612756,), (1374612758,), (1374612760,), (1374612762,), (1374612765,), (1374612768,), (1374612802,), (1374612828,), (1374612831,), (1374612834,), (1374612836,), (1374612838,), (1374612841,), (1374613042,), (1374613056,), (1374613065,), (1374613067,), (1374613084,), (1374613092,), (1374613136,), (1374613139,), (1374613143,), (1374613145,), (1374613146,), (1374613149,), (1374613292,), (1374613293,), (1374613294,), (1374613295,), (1374613305,), (1374613332,), (1374613450,), (1374613471,), (1374613526,), (1374613530,), (1374613540,), (1374613564,), (1374613611,), (1374613658,), (1374613710,), (1374613946,), (1374613947,), (1374613948,), (1374613950,), (1374614278,), (1374614280,), (1374614299,), (1374614302,), (1374614305,), (1374614312,), (1374613169,), (1374613174,), (1374613176,), (1374613178,), (1374613179,), (1374613182,), (1374613209,), (1374613215,), (1374613221,), (1374613226,), (1374613229,), (1374613232,), (1374613431,), (1374613442,), (1374613446,), (1374613448,), (1374613501,), (1374613517,), (1374613520,), (1374613524,), (1374613944,), (1374613945,), (1374614140,), (1374614168,), (1374614186,), (1374614191,), (1374614195,), (1374614201,), (1374614221,), (1374614222,), (1374614245,), (1374614246,), (1374614251,), (1374614257,), (1374614263,), (1374614264,), (1374614268,), (1374614269,), (1374614294,), (1374614296,), (1374614297,), (1374614328,), (1374614330,), (1374614333,), (1374614389,), (1374614392,), (1374614394,), (1374614397,), (1374614688,), (1374614715,), (1374614743,), (1374614784,), (1374614786,), (1374614789,), (1374614792,), (1374614795,), (1374614832,), (1374614835,), (1374614838,), (1374614850,), (1374614854,), (1374614859,), (1374614862,), (1374614866,), (1374614869,), (1374615061,), (1374615034,), (1374615037,), (1374615044,), (1374615053,), (1374615059,), (1374615153,), (1374615154,), (1374615179,), (1374615183,), (1374615208,), (1374615213,), (1374615235,), (1374615246,), (1374615370,), (1374615374,), (1374615378,), (1374615386,), (1374615393,), (1374615399,), (1374615483,), (1374615486,), (1374615490,), (1374615492,), (1374615495,), (1374615518,), (1374615522,), (1374615524,), (1374615527,), (1374615551,), (1374615554,), (1374615558,), (1374615560,), (1374615563,), (1374615605,), (1374615615,), (1374615642,), (1374615653,), (1374615661,), (1374615669,), (1374615719,), (1374615723,), (1374615727,), (1374615729,), (1374615777,), (1374615781,), (1374615809,), (1374615816,), (1374615820,), (1374615823,), (1374615982,), (1374616010,), (1374616046,), (1374616095,), (1374616146,), (1374616202,), (1374616311,), (1374616516,), (1374616517,), (1374616547,), (1374616549,), (1374616562,), (1374616563,), (1374616567,), (1374616568,), (1374616569,), (1374616570,), (1374616692,), (1374616656,), (1374616940,), (1374616950,), (1374616957,), (1374616961,), (1374617022,), (1374617023,), (1374617027,), (1374617028,), (1374617031,), (1374617032,), (1374617035,), (1374617036,), (1374617048,), (1374617049,), (1374617050,), (1374617052,), (1374617055,), (1374617088,), (1374617091,), (1374617109,), (1374617131,), (1374617134,), (1374617182,), (1374617185,), (1374617188,), (1374617190,), (1374617193,), (1374617195,), (1374617197,), (1374617202,), (1374617209,), (1374617304,), (1374617306,), (1374617309,), (1374617314,), (1374617319,), (1374617328,), (1374617393,), (1374617417,), (1374617444,), (1374617469,), (1374617624,), (1374617656,), (1374617682,), (1374617711,), (1374617719,), (1374617781,), (1374617784,), (1374617789,), (1374617792,), (1374617798,), (1374617801,), (1374617812,), (1374617819,), (1374617821,), (1374617837,), (1374617839,), (1374617860,), (1374617868,), (1374617870,), (1374617872,), (1374617875,), (1374617990,), (1374618022,), (1374618048,), (1374618072,), (1374618573,), (1374618626,), (1374618676,), (1374618726,), (1374618935,), (1374618976,), (1374619002,), (1374619508,), (1374619529,), (1374619582,), (1374619632,), (1374619457,), (1374619482,), (1374619828,), (1374619858,), (1374619896,), (1374619926,), (1374619968,), (1374620004,), (1374620546,), (1374620595,), (1374620625,), (1374620661,), (1374620688,), (1374620786,), (1374620795,), (1374620821,), (1374620854,), (1374621097,), (1374621126,), (1374621156,), (1374621171,), (1374621175,), (1374621338,), (1374621340,), (1374621358,), (1374621380,), (1374621392,), (1374621399,), (1374621405,), (1374621407,), (1374621411,), (1374621450,), (1374621482,), (1374621483,), (1374621485,), (1374621486,), (1374621488,), (1374621489,), (1374621491,), (1374621492,), (1374621493,), (1374621494,), (1374621501,), (1374621503,), (1374621504,), (1374621507,), (1374621657,), (1374621658,), (1374621659,), (1374621660,), (1374621699,), (1374621702,), (1374621705,), (1374621708,), (1374621710,), (1374621730,), (1374621733,), (1374621735,), (1374621738,), (1374621740,), (1374621742,), (1374621751,), (1374621753,), (1374621755,), (1374621756,), (1374621797,), (1374621802,), (1374621805,), (1374621807,), (1374621852,), (1374621846,), (1374621848,), (1374621850,), (1374621857,), (1374621859,), (1374621862,), (1374621866,), (1374621869,), (1374621892,), (1374621896,), (1374621900,), (1374621903,), (1374621906,), (1374621931,), (1374621934,), (1374621937,), (1374621945,), (1374621947,), (1374621949,), (1374621951,), (1374621955,), (1374622058,), (1374622078,), (1374622084,), (1374622085,), (1374622086,), (1374622088,), (1374622097,), (1374622100,), (1374622104,), (1374622107,), (1374622110,), (1374622196,), (1374622200,), (1374622202,), (1374622205,), (1374622274,), (1374622277,), (1374622280,), (1374622285,), (1374622289,), (1374622293,), (1374622341,), (1374622342,), (1374622343,), (1374622345,), (1374622348,), (1374622352,), (1374622364,), (1374622367,), (1374622369,), (1374622414,), (1374622420,), (1374622423,), (1374622426,), (1374622460,), (1374622463,), (1374622485,), (1374622488,), (1374622492,), (1374622497,), (1374622517,), (1374622519,), (1374622522,), (1374622554,), (1374622557,), (1374622608,), (1374622611,), (1374627315,), (1374627162,), (1374627213,), (1374627263,), (1374627879,), (1374627973,), (1374628070,), (1374628155,), (1374628232,), (1374628272,), (1374628848,), (1374628874,), (1374629032,), (1374629037,), (1374629040,), (1374629044,), (1374629048,), (1374629086,), (1374629087,), (1374629090,), (1374629091,), (1374629094,), (1374629095,), (1374629098,), (1374629099,), (1374629119,), (1374629122,), (1374629126,), (1374629133,), (1374629135,), (1374629138,), (1374629164,), (1374629168,), (1374629171,), (1374629175,), (1374629179,), (1374629183,), (1374629238,), (1374629239,), (1374629242,), (1374629243,), (1374629253,), (1374629254,), (1374629258,), (1374629259,), (1374629268,), (1374629270,), (1374629371,), (1374629374,), (1374629502,), (1374629505,), (1374629509,), (1374629512,), (1374629514,), (1374629517,), (1374629524,), (1374629527,), (1374629530,), (1374629534,), (1374629538,), (1374629541,), (1374629593,), (1374629597,), (1374629599,), (1374629602,), (1374629606,), (1374629609,), (1374629799,), (1374629826,), (1374629858,), (1374629899,), (1374630130,), (1374630138,), (1374630149,), (1374630163,), (1374630165,), (1374630199,), (1374630434,), (1374630317,), (1374630362,), (1374630392,), (1374630423,), (1374630554,), (1374630557,), (1374630561,), (1374630594,), (1374630596,), (1374630961,), (1374630962,), (1374631184,), (1374631188,), (1374631191,), (1374631195,), (1374631197,), (1374631200,), (1374631221,), (1374631224,), (1374631228,), (1374631232,), (1374631238,), (1374631246,), (1374631247,), (1374631303,), (1374631307,), (1374631315,), (1374631406,), (1374631433,), (1374631460,), (1374631486,), (1374631494,), (1374631502,), (1374631525,), (1374631550,), (1374631555,), (1374631564,), (1374631576,), (1374631736,), (1374631738,), (1374631742,), (1374631746,), (1374631749,), (1374631765,), (1374631768,), (1374631771,), (1374631789,), (1374631792,), (1374631795,), (1374631799,), (1374631800,), (1374631860,), (1374631878,), (1374631882,), (1374631885,), (1374631887,), (1374631894,), (1374631845,), (1374631848,), (1374631851,), (1374631855,), (1374631857,), (1374631869,), (1374631870,), (1374631872,), (1374631874,), (1374631876,), (1374631897,), (1374631920,), (1374631936,), (1374631938,), (1374631989,), (1374631991,), (1374631992,), (1374631994,), (1374632002,), (1374632007,), (1374632062,), (1374632089,), (1374632115,), (1374632141,), (1374632171,), (1374632188,), (1374632271,), (1374632272,), (1374632274,), (1374632275,), (1374632287,), (1374632301,), (1374632313,), (1374632326,), (1374632399,), (1374632415,), (1374632421,), (1374632435,), (1374632477,), (1374632479,), (1374632481,), (1374632482,), (1374632483,), (1374632484,), (1374632495,), (1374632497,), (1374632500,), (1374632503,), (1374632526,), (1374632527,), (1374632529,), (1374632533,), (1374632536,), (1374632538,), (1374632617,), (1374632618,), (1374632619,), (1374632625,), (1374632626,), (1374632627,), (1374632634,), (1374632638,), (1374632641,), (1374632645,), (1374632648,), (1374632667,), (1374632668,), (1374632671,), (1374632672,), (1374632675,), (1374632676,), (1374632679,), (1374632681,), (1374632684,), (1374632685,), (1374632687,), (1374632688,), (1374632698,), (1374632699,), (1374632700,), (1374632702,), (1374632741,), (1374632745,), (1374632748,), (1374632749,), (1374632751,), (1374632837,), (1374632899,), (1374632826,), (1374632827,), (1374632829,), (1374632832,), (1374632834,), (1374632865,), (1374632867,), (1374632870,), (1374632873,), (1374632875,), (1374632878,), (1374632892,), (1374632894,), (1374632896,), (1374632897,), (1374632905,), (1374632908,), (1374632911,), (1374632914,), (1374632915,), (1374632918,), (1374632942,), (1374632944,), (1374632947,), (1374632949,), (1374632952,), (1374632954,), (1374632958,), (1374632959,), (1374632962,), (1374632997,), (1374632998,), (1374633000,), (1374633004,), (1374633008,), (1374633010,), (1374633042,), (1374633047,), (1374633051,), (1374633056,), (1374633059,), (1374633061,), (1374633104,), (1374633108,), (1374633112,), (1374633118,), (1374633141,), (1374633144,), (1374633146,), (1374633148,), (1374633150,), (1374633151,), (1374633154,), (1374633156,), (1374633161,), (1374633186,), (1374633187,), (1374633189,), (1374633220,), (1374633221,), (1374633222,), (1374633224,), (1374633228,), (1374633244,), (1374633246,), (1374633248,), (1374633252,), (1374633256,), (1374633259,), (1374633873,), (1374633930,), (1374633984,), (1374634037,), (1374634087,), (1374634136,), (1374634656,), (1374634717,), (1374634746,), (1374635960,), (1374635961,), (1374635970,), (1374635997,), (1374636019,), (1374636144,), (1374636235,), (1374634495,), (1374634555,), (1374634607,), (1374635106,), (1374635295,), (1374635347,), (1374635393,), (1374635439,), (1374635485,), (1374635639,), (1374635684,), (1374635730,), (1374635777,), (1374635822,), (1374635861,), (1374635953,), (1374636023,), (1374636038,), (1374636064,), (1374636095,), (1374636120,), (1374636239,), (1374636269,), (1374636297,), (1374636308,), (1374636441,), (1374636443,), (1374636445,), (1374636447,), (1374636450,), (1374636453,), (1374636470,), (1374636473,), (1374636477,), (1374636479,), (1374636481,), (1374636557,), (1374636561,), (1374636564,), (1374636566,), (1374636583,), (1374636586,), (1374636589,), (1374636592,), (1374636699,), (1374636700,), (1374636742,), (1374636758,), (1374636765,), (1374636787,), (1374636810,), (1374636811,), (1374636812,), (1374636813,), (1374636815,), (1374636819,), (1374636844,), (1374636846,), (1374636849,), (1374636851,), (1374636969,), (1374636970,), (1374636972,), (1374636976,), (1374636979,), (1374637028,), (1374637032,), (1374637034,), (1374637036,), (1374637038,), (1374637040,), (1374637282,), (1374637548,), (1374637262,), (1374637264,), (1374637275,), (1374637342,), (1374637346,), (1374637349,), (1374637374,), (1374637398,), (1374637423,), (1374637477,), (1374637478,), (1374637480,), (1374637491,), (1374637524,), (1374637528,), (1374638176,), (1374638290,), (1374638367,), (1374638368,), (1374638370,), (1374638371,), (1374638373,), (1374638374,), (1374638378,), (1374638379,), (1374638381,), (1374638382,), (1374638392,), (1374638395,), (1374638397,), (1374638399,), (1374638415,), (1374638416,), (1374638418,), (1374638420,), (1374638422,), (1374638424,), (1374638460,), (1374638463,), (1374638466,), (1374638467,), (1374638482,), (1374638486,), (1374638489,), (1374638491,), (1374638493,), (1374638494,), (1374638534,), (1374638536,), (1374638570,), (1374638574,), (1374638598,), (1374638611,), (1374638631,), (1374638644,), (1374638939,), (1374638942,), (1374638965,), (1374638990,), (1374639006,), (1374639019,), (1374639071,), (1374639073,), (1374639076,), (1374639080,), (1374639084,), (1374639199,), (1374639196,), (1374639197,), (1374639198,), (1374639219,), (1374639244,), (1374639272,), (1374639293,), (1374639303,), (1374639407,), (1374639411,), (1374639413,), (1374639515,), (1374639518,), (1374639539,), (1374639548,), (1374639590,), (1374639592,), (1374639619,), (1374639621,), (1374639623,), (1374639625,), (1374639626,), (1374639627,), (1374639642,), (1374639645,), (1374639647,), (1374639692,), (1374639694,), (1374639697,), (1374639719,), (1374639721,), (1374639806,), (1374639935,), (1374639938,), (1374639956,), (1374639960,), (1374639963,), (1374639965,), (1374639978,), (1374639980,), (1374640024,), (1374640025,), (1374640026,), (1374640028,), (1374640030,), (1374640031,), (1374640034,), (1374640035,), (1374640055,), (1374640056,), (1374640058,), (1374640059,), (1374640061,), (1374640062,), (1374640065,), (1374640066,), (1374640068,), (1374640069,), (1374640084,), (1374640086,), (1374640088,), (1374640090,), (1374640092,), (1374640094,), (1374640104,), (1374640106,), (1374640108,), (1374640114,), (1374640116,), (1374640118,), (1374640098,), (1374640099,), (1374640101,), (1374640121,), (1374640123,), (1374640124,), (1374640126,), (1374640129,), (1374640131,), (1374640152,), (1374640154,), (1374640157,), (1374640177,), (1374640178,), (1374640181,), (1374640184,), (1374640186,), (1374640212,), (1374640314,), (1374640316,), (1374640319,), (1374640342,), (1374640390,), (1374640468,), (1374640574,), (1374640599,), (1374640624,), (1374641557,), (1374641585,), (1374642118,), (1374642830,), (1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,), (1374643561,), (1374643563,), (1374643565,), (1374643567,), (1374643568,), (1374643571,), (1374643576,), (1374643579,), (1374643584,), (1374643610,), (1374643607,), (1374643635,), (1374643637,), (1374643658,), (1374643756,), (1374643758,), (1374643761,), (1374643764,), (1374643767,), (1374643790,), (1374643794,), (1374643797,), (1374643800,), (1374643820,), (1374643823,), (1374643874,), (1374643876,), (1374643879,), (1374643881,), (1374643883,), (1374643933,), (1374643934,), (1374643937,), (1374643938,), (1374643941,), (1374643942,), (1374643944,), (1374643946,), (1374643967,), (1374643972,), (1374643992,), (1374643996,), (1374644000,), (1374644005,), (1374644008,), (1374644010,), (1374644025,), (1374644026,), (1374644030,), (1374644032,), (1374644034,), (1374644035,), (1374644038,), (1374644040,), (1374644043,), (1374644044,), (1374644065,), (1374644068,), (1374644071,), (1374644073,), (1374644083,), (1374644084,), (1374644085,), (1374644251,), (1374644246,), (1374644248,), (1374644249,), (1374644283,), (1374644285,), (1374644286,), (1374644287,), (1374644290,), (1374644318,), (1374644319,), (1374644340,), (1374644346,), (1374644348,), (1374644350,), (1374644354,), (1374644380,), (1374644382,), (1374644385,), (1374644389,), (1374644392,), (1374644397,), (1374644418,), (1374644421,), (1374644423,), (1374644448,), (1374644452,), (1374644454,), (1374644456,), (1374644457,), (1374644458,), (1374644550,), (1374644566,), (1374644572,), (1374644583,), (1374644632,), (1374648676,), (1374648699,), (1374648703,), (1374648801,), (1374648804,), (1374648807,), (1374648874,), (1374648877,), (1374648880,), (1374648882,), (1374649051,), (1374649378,), (1374649381,), (1374649385,), (1374649389,), (1374649453,), (1374649420,), (1374649423,), (1374649426,), (1374649551,), (1374649553,), (1374649642,), (1374649653,), (1374649667,), (1374649671,), (1374649848,), (1374649873,), (1374649897,), (1374649900,), (1374649902,), (1374649904,), (1374649993,), (1374649995,), (1374649999,), (1374650011,), (1374650013,), (1374650136,), (1374650139,), (1374650141,), (1374650143,), (1374650151,), (1374650158,), (1374650163,), (1374650166,), (1374650168,), (1374650171,), (1374650174,), (1374650176,), (1374650179,), (1374650180,), (1374650183,), (1374650185,), (1374650188,), (1374650190,), (1374650217,), (1374650221,), (1374650305,), (1374650309,), (1374650312,), (1374650315,), (1374650316,), (1374650318,), (1374650334,), (1374650335,), (1374650358,), (1374650359,), (1374650697,), (1374650698,), (1374650700,), (1374650701,), (1374650711,), (1374650712,), (1374650715,), (1374650716,), (1374650717,), (1374650719,), (1374650720,), (1374650721,), (1374650725,), (1374650727,), (1374650728,), (1374650730,), (1374650732,), (1374650814,), (1374650820,), (1374650822,), (1374650838,), (1374650839,), (1374650841,), (1374650844,), (1374650847,), (1374650872,), (1374651323,), (1374651346,), (1374651351,), (1374651353,), (1374651358,), (1374651394,), (1374651396,), (1374651397,), (1374651438,), (1374651440,), (1374651460,), (1374651467,), (1374651470,), (1374651533,), (1374651387,), (1374651389,), (1374651391,), (1374651407,), (1374651409,), (1374651411,), (1374651413,), (1374651415,), (1374651416,), (1374651420,), (1374651421,), (1374651423,), (1374651425,), (1374651427,), (1374651430,), (1374651436,), (1374651476,), (1374651479,), (1374651506,), (1374651640,), (1374651644,), (1374651646,), (1374651649,), (1374651651,), (1374651653,), (1374651678,), (1374651679,), (1374651681,), (1374651684,), (1374651689,), (1374651693,), (1374651719,), (1374651729,), (1374651739,), (1374651742,), (1374651776,), (1374651779,), (1374651782,), (1374651784,), (1374651787,), (1374651876,), (1374651881,), (1374651886,), (1374651888,), (1374651896,), (1374652063,), (1374652093,), (1374652236,), (1374652375,), (1374652378,), (1374652380,), (1374652402,), (1374652404,), (1374652407,), (1374652411,), (1374652413,), (1374652415,), (1374652443,), (1374652448,), (1374652452,), (1374652455,), (1374652457,), (1374652461,), (1374652481,), (1374652484,), (1374652487,), (1374652489,), (1374652522,), (1374652510,), (1374652512,), (1374652516,), (1374652519,), (1374652521,), (1374652530,), (1374652531,), (1374652533,), (1374652591,), (1374652592,), (1374652594,), (1374652598,), (1374652601,), (1374652676,), (1374652680,), (1374652683,), (1374652685,), (1374652755,), (1374652758,), (1374652762,), (1374652764,), (1374652767,), (1374652821,), (1374652822,), (1374652824,), (1374652825,), (1374652828,), (1374652829,), (1374652833,), (1374652834,), (1374652838,), (1374652839,), (1374652840,), (1374652841,), (1374652850,), (1374652851,), (1374652854,), (1374652856,), (1374652857,), (1374652859,), (1374652863,), (1374652864,), (1374652866,), (1374652868,), (1374652871,), (1374652874,), (1374652883,), (1374652885,), (1374652892,), (1374652900,), (1374652901,), (1374652903,), (1374652905,), (1374652907,), (1374652924,), (1374652926,), (1374652938,), (1374652946,), (1374652954,), (1374652955,), (1374652974,), (1374652977,), (1374652979,), (1374652992,), (1374652996,), (1374652997,), (1374653020,), (1374653023,), (1374653035,), (1374653078,), (1374653183,), (1374653279,), (1374653305,), (1374653332,), (1374653360,), (1374653386,), (1374653415,), (1374653520,), (1374653567,), (1374653817,), (1374654603,), (1374653677,), (1374653718,), (1374653762,), (1374653787,), (1374654241,), (1374654287,), (1374654340,), (1374654395,), (1374654422,), (1374654458,), (1374654575,), (1374654599,), (1374654601,), (1374654607,), (1374654611,), (1374654614,), (1374654618,), (1374654621,), (1374654874,), (1374654891,), (1374654894,), (1374654896,), (1374654899,), (1374654946,), (1374654948,), (1374654951,), (1374655362,), (1374655364,), (1374655367,), (1374655370,), (1374655371,), (1374655454,), (1374655467,), (1374655469,), (1374655493,), (1374655542,), (1374655544,), (1374655546,), (1374655548,), (1374655554,), (1374655573,), (1374655575,), (1374655577,), (1374655578,), (1374655582,), (1374655614,), (1374655618,), (1374655632,), (1374655633,), (1374655634,), (1374655635,), (1374655668,), (1374655669,), (1374655856,), (1374655891,), (1374655917,), (1374655943,), (1374656178,), (1374656180,), (1374656183,), (1374656186,), (1374656388,), (1374656400,), (1374656403,), (1374656405,), (1374656406,), (1374656409,), (1374656425,), (1374656543,), (1374656518,), (1374656912,), (1374656941,), (1374657440,), (1374657710,), (1374657713,), (1374657731,), (1374657734,), (1374657736,), (1374657739,), (1374657781,), (1374657782,), (1374657806,), (1374657808,), (1374657817,), (1374658055,), (1374658104,), (1374658168,), (1374658194,), (1374658471,), (1374658496,), (1374658521,), (1374658549,), (1374658708,), (1374658728,), (1374658732,), (1374659189,), (1374659219,), (1374659244,), (1374659270,), (1374659299,), (1374659328,), (1374659600,), (1374659604,), (1374659606,), (1374659609,), (1374659612,), (1374659832,), (1374659859,), (1374659886,), (1374660051,), (1374660054,), (1374660057,), (1374660060,), (1374660114,), (1374660115,), (1374660116,), (1374660117,), (1374660151,), (1374660658,), (1374660124,), (1374660128,), (1374660521,), (1374660550,), (1374660580,), (1374660604,), (1374660633,), (1374660743,), (1374660769,), (1374660792,), (1374660933,), (1374660935,), (1374660937,), (1374660940,), (1374661224,), (1374661238,), (1374661375,), (1374661377,), (1374661380,), (1374661402,), (1374661404,), (1374661407,), (1374661410,), (1374661412,), (1374661440,), (1374661471,), (1374661481,), (1374661484,), (1374661517,), (1374661520,), (1374661522,), (1374661544,), (1374661601,), (1374661604,), (1374661607,), (1374661608,), (1374661609,), (1374661904,), (1374661927,), (1374662174,), (1374662177,), (1374662179,), (1374662181,), (1374662193,), (1374662195,), (1374662236,), (1374662219,), (1374662220,), (1374662570,), (1374662594,), (1374663172,), (1374663371,), (1374663438,), (1374663441,), (1374663445,), (1374663633,), (1374663660,), (1374663689,), (1374663716,), (1374664016,), (1374664044,), (1374664069,), (1374664154,), (1374664181,), (1374664209,), (1374664237,), (1374664548,), (1374664587,), (1374664640,), (1374664677,), (1374664709,), (1374665032,), (1374665049,), (1374665052,), (1374665103,), (1374665131,), (1374665159,), (1374665163,), (1374665563,), (1374665604,), (1374665631,), (1374665677,), (1374665707,), (1374666371,), (1374666425,), (1374666473,), (1374666526,), (1374666807,), (1374666835,), (1374666847,), (1374666888,), (1374666889,), (1374666891,), (1374666893,), (1374666896,), (1374666730,), (1374666754,), (1374666779,), (1374666905,), (1374666907,), (1374666910,), (1374666912,), (1374666927,), (1374666929,), (1374666932,), (1374666965,), (1374666967,), (1374666969,), (1374666971,), (1374666974,), (1374666978,), (1374667257,), (1374667281,), (1374667306,), (1374667333,), (1374667360,), (1374667386,), (1374667491,), (1374667517,), (1374667543,), (1374667566,), (1374667593,), (1374667664,), (1374667675,), (1374667701,), (1374667725,), (1374667749,), (1374667773,), (1374667873,), (1374667880,), (1374667884,), (1374667888,), (1374667911,), (1374667937,), (1374667961,), (1374667987,), (1374668031,), (1374668036,), (1374668041,), (1374668045,), (1374668048,), (1374668051,), (1374668073,), (1374668075,), (1374668078,), (1374668079,), (1374668081,), (1374668083,), (1374668085,), (1374668089,), (1374668092,), (1374668096,), (1374668623,), (1374668649,), (1374668673,), (1374668699,), (1374668730,), (1374668756,), (1374668797,), (1374668800,), (1374669193,), (1374669241,), (1374669293,), (1374669352,), (1374669662,), (1374669686,), (1374669712,), (1374669738,), (1374670003,), (1374670027,), (1374670056,), (1374670340,), (1374670285,), (1374670288,), (1374670311,), (1374670313,), (1374670456,), (1374670459,), (1374670462,), (1374670463,), (1374670500,), (1374670502,), (1374670505,), (1374670512,), (1374670541,), (1374670653,), (1374670677,), (1374670703,), (1374670730,), (1374670757,), (1374670785,), (1374671052,), (1374671055,), (1374671057,), (1374671278,), (1374671281,), (1374671283,), (1374671285,), (1374671290,), (1374671292,), (1374671295,), (1374671298,), (1374671302,), (1374671306,), (1374671316,), (1374671320,), (1374671351,), (1374671352,), (1374671354,), (1374671357,), (1374671359,), (1374671361,), (1374671363,), (1374671364,), (1374671519,), (1374671546,), (1374671572,), (1374671600,), (1374671625,), (1374671714,), (1374671740,), (1374671765,), (1374671790,), (1374671951,), (1374671969,), (1374671977,), (1374671997,), (1374671998,), (1374672000,), (1374672003,), (1374672005,), (1374672008,), (1374672494,), (1374672501,), (1374672528,), (1374672531,), (1374672533,), (1374672549,), (1374672552,), (1374672555,), (1374672557,), (1374672560,), (1374672780,), (1374672809,), (1374672843,), (1374672872,), (1374672899,), (1374672753,), (1374673397,), (1374673399,), (1374673402,), (1374673986,), (1374674035,), (1374674351,), (1374674371,), (1374674373,), (1374674376,), (1374674392,), (1374674395,), (1374674397,), (1374674400,), (1374674425,), (1374674428,), (1374674431,), (1374674433,), (1374674435,), (1374674456,), (1374674482,), (1374674508,), (1374674531,), (1374674564,), (1374674599,), (1374674889,), (1374674918,), (1374674941,), (1374674966,), (1374675224,), (1374675256,), (1374675303,), (1374675329,), (1374675982,), (1374676071,), (1374676143,), (1374676245,), (1374676341,), (1374676876,), (1374676927,), (1374676934,), (1374676935,), (1374676937,), (1374676940,), (1374676942,), (1374676944,), (1374676998,), (1374677028,), (1374677057,), (1374677085,), (1374677446,), (1374677475,), (1374677502,), (1374677528,), (1374677554,), (1374677711,), (1374677715,), (1374677719,), (1374677726,), (1374678225,), (1374678095,), (1374678121,), (1374678187,), (1374678565,), (1374678590,), (1374678616,), (1374678640,), (1374678898,), (1374678943,), (1374678979,), (1374679024,), (1374679052,), (1374679295,), (1374679408,), (1374679519,), (1374680123,), (1374680159,), (1374680222,), (1374680225,), (1374680228,), (1374680231,), (1374680244,), (1374680246,), (1374680248,), (1374680254,), (1374680255,), (1374680258,), (1374680622,), (1374680680,), (1374680684,), (1374680687,), (1374680765,), (1374680793,), (1374680825,), (1374680828,), (1374680831,), (1374680833,), (1374680835,), (1374680861,), (1374680863,), (1374680866,), (1374680883,), (1374680885,), (1374680888,), (1374680890,), (1374680893,), (1374681170,), (1374681191,), (1374681218,), (1374681245,), (1374681678,), (1374681732,), (1374681781,), (1374681831,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31072025': {'nb_upload': 15, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25560280]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] map_info['map_portfolio_photo'] : {25560280: [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699]} final : True mtd_id 4302 list_pids : [1374649453, 1374649389, 1374649385, 1374649381, 1374649378, 1374649051, 1374648882, 1374648880, 1374648877, 1374648874, 1374648807, 1374648804, 1374648801, 1374648703, 1374648699] Looping around the photos to save general results len do output : 1 /25560280Didn'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, '3420942') ('4302', '25560280', '1374649453', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942') ('4302', None, None, None, None, None, None, None, '3420942') ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '25560280', 'None', None, None, None, None, '3420942'), ('4302', '25560280', '1374649453', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649389', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649385', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649381', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649378', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374649051', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648882', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648880', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648877', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648874', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648807', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648804', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648801', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648703', None, None, None, None, None, '3420942'), ('4302', '25560280', '1374648699', None, None, None, None, None, '3420942')] time used for this insertion : 0.01753997802734375 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.733938455581665 time spend to save output : 0.017850875854492188 total time spend for step 5 : 13.751789331436157 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 (3420942) 2.35user 2.50system 0:21.95elapsed 22%CPU (0avgtext+0avgdata 161696maxresident)k 0inputs+10984outputs (1major+75310minor)pagefaults 0swaps