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 : 3510005 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 (3652703) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3652703) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445193 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3652703'] with mtr_portfolio_ids : ['26445193'] and first list_photo_ids : [] new path : /proc/3510005/ Name: python3 Umask: 0002 State: R (running) Tgid: 3510005 Ngid: 0 Pid: 3510005 PPid: 3510004 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3510005 NSpid: 3510005 NSpgid: 3508010 NSsid: 3508010 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98764 kB VmRSS: 98764 kB RssAnon: 60164 kB RssFile: 38600 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3510005', 'Ngid': '0', 'Pid': '3510005', 'PPid': '3510004', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3510005', 'NSpid': '3510005', 'NSpgid': '3508010', 'NSsid': '3508010', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98764 kB', 'VmRSS': '98764 kB', 'RssAnon': '60164 kB', 'RssFile': '38600 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '3510005', '1107252', '0', '1107252', '866004', '98764', b'', 'marlene', '3652703') 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 (26445193) 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 (3652703 ) ) 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 (26445193) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380872931, 'portfolio_id': 26445193}, {'photo_id': 1380872929, 'portfolio_id': 26445193}, {'photo_id': 1380872927, 'portfolio_id': 26445193}, {'photo_id': 1380872925, 'portfolio_id': 26445193}, {'photo_id': 1380872923, 'portfolio_id': 26445193}, {'photo_id': 1380872690, 'portfolio_id': 26445193}, {'photo_id': 1380872685, 'portfolio_id': 26445193}, {'photo_id': 1380872682, 'portfolio_id': 26445193}, {'photo_id': 1380872294, 'portfolio_id': 26445193}, {'photo_id': 1380872292, 'portfolio_id': 26445193}, {'photo_id': 1380872206, 'portfolio_id': 26445193}, {'photo_id': 1380872205, 'portfolio_id': 26445193}, {'photo_id': 1380872204, 'portfolio_id': 26445193}, {'photo_id': 1380872202, 'portfolio_id': 26445193}, {'photo_id': 1380872151, 'portfolio_id': 26445193}, {'photo_id': 1380872150, 'portfolio_id': 26445193}, {'photo_id': 1380872149, 'portfolio_id': 26445193}, {'photo_id': 1380871886, 'portfolio_id': 26445193}, {'photo_id': 1380871884, 'portfolio_id': 26445193}, {'photo_id': 1380871881, 'portfolio_id': 26445193}, {'photo_id': 1380871792, 'portfolio_id': 26445193}, {'photo_id': 1380871790, 'portfolio_id': 26445193}, {'photo_id': 1380871786, 'portfolio_id': 26445193}, {'photo_id': 1380871784, 'portfolio_id': 26445193}, {'photo_id': 1380871782, 'portfolio_id': 26445193}, {'photo_id': 1380871780, 'portfolio_id': 26445193}, {'photo_id': 1380871347, 'portfolio_id': 26445193}, {'photo_id': 1380871345, 'portfolio_id': 26445193}, {'photo_id': 1380871343, 'portfolio_id': 26445193}] map_portfolio_id_photo_id: {26445193: [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682, 1380872294, 1380872292, 1380872206, 1380872205, 1380872204, 1380872202, 1380872151, 1380872150, 1380872149, 1380871886, 1380871884, 1380871881, 1380871792, 1380871790, 1380871786, 1380871784, 1380871782, 1380871780, 1380871347, 1380871345, 1380871343]} ##### 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.015171289443969727 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 2 16:52:56 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 (26445193) 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 : 26445193 get user id for portfolio 26445193 get sub ptf for main ptf 26445193, type 3726 and hashtags ['autre_refus', 'metal', 'papier', 'cartonnette', 'Carton_brun', 'Carton_gris', 'flou', 'mal_croppe', 'kraft', 'plastique', 'environnement', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26445193 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','cartonnette','Carton_brun','Carton_gris','flou','mal_croppe','kraft','plastique','environnement','Teint_Dans_La_Masse')) 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`=26445193 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','cartonnette','Carton_brun','Carton_gris','flou','mal_croppe','kraft','plastique','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26445193, 'sub_port_id': 26445219, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797633, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'Carton_brun': {'main_port_id': 26445193, 'sub_port_id': 26445220, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797634, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26445193, 'sub_port_id': 26445221, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797635, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'cartonnette': {'main_port_id': 26445193, 'sub_port_id': 26445222, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797636, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'autre_refus': {'main_port_id': 26445193, 'sub_port_id': 26445223, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797637, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'plastique': {'main_port_id': 26445193, 'sub_port_id': 26445224, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797638, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'metal': {'main_port_id': 26445193, 'sub_port_id': 26445225, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797639, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'environnement': {'main_port_id': 26445193, 'sub_port_id': 26445226, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797640, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'flou': {'main_port_id': 26445193, 'sub_port_id': 26445227, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797641, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'kraft': {'main_port_id': 26445193, 'sub_port_id': 26445228, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797642, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'mal_croppe': {'main_port_id': 26445193, 'sub_port_id': 26445229, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797643, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}, 'papier': {'main_port_id': 26445193, 'sub_port_id': 26445230, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797644, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445219 , 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=26445193 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 (26445219) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445220 , 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=26445193 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 (26445220) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445221 , 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=26445193 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 (26445221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445222 , 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=26445193 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 (26445222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445223 , 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=26445193 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 (26445223) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445224 , 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=26445193 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 (26445224) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445225 , 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=26445193 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 (26445225) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445226 , 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=26445193 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 (26445226) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445227 , 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=26445193 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 (26445227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445228 , 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=26445193 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 (26445228) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445229 , 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=26445193 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 (26445229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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 26445230 , 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=26445193 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 (26445230) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445193) result : ((1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) 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`=26445193 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','cartonnette','Carton_brun','Carton_gris','flou','mal_croppe','kraft','plastique','environnement','Teint_Dans_La_Masse')) 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`=26445193 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','cartonnette','Carton_brun','Carton_gris','flou','mal_croppe','kraft','plastique','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26445193, 'sub_port_id': 26445231, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797645, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'Carton_brun': {'main_port_id': 26445193, 'sub_port_id': 26445232, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797646, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 26445193, 'sub_port_id': 26445233, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797647, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'cartonnette': {'main_port_id': 26445193, 'sub_port_id': 26445234, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797648, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'autre_refus': {'main_port_id': 26445193, 'sub_port_id': 26445235, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797649, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'plastique': {'main_port_id': 26445193, 'sub_port_id': 26445236, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797650, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'metal': {'main_port_id': 26445193, 'sub_port_id': 26445237, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797651, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'environnement': {'main_port_id': 26445193, 'sub_port_id': 26445238, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797652, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'flou': {'main_port_id': 26445193, 'sub_port_id': 26445239, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797653, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'kraft': {'main_port_id': 26445193, 'sub_port_id': 26445240, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797654, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'mal_croppe': {'main_port_id': 26445193, 'sub_port_id': 26445241, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797655, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}, 'papier': {'main_port_id': 26445193, 'sub_port_id': 26445242, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17797656, 'last_updated_at': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 16, 47, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445230 lien utilise dans velours : https://marlene.fotonower.com/velours/26445231,26445232,26445233,26445234,26445235,26445236,26445237,26445238,26445239,26445240,26445241,26445242?tags=Carton_gris,Carton_brun,Teint_Dans_La_Masse,cartonnette,autre_refus,plastique,metal,environnement,flou,kraft,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445193]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] map_info['map_portfolio_photo'] : {26445193: [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682, 1380872294, 1380872292, 1380872206, 1380872205, 1380872204, 1380872202, 1380872151, 1380872150, 1380872149, 1380871886, 1380871884, 1380871881, 1380871792, 1380871790, 1380871786, 1380871784, 1380871782, 1380871780, 1380871347, 1380871345, 1380871343]} final : False mtd_id 4302 list_pids : [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] Looping around the photos to save general results len do output : 1 /26445193. 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, '3652703') ('4302', '26445193', '1380872931', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26445193', "{'Carton_gris': 26445219, 'Carton_brun': 26445220, 'Teint_Dans_La_Masse': 26445221, 'cartonnette': 26445222, 'autre_refus': 26445223, 'plastique': 26445224, 'metal': 26445225, 'environnement': 26445226, 'flou': 26445227, 'kraft': 26445228, 'mal_croppe': 26445229, 'papier': 26445230}", None, None, None, None, '3652703'), ('4302', '26445193', '1380872931', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703')] time used for this insertion : 0.012836933135986328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5560998916625977 time spend to save output : 0.01309514045715332 total time spend for step 1 : 1.569195032119751 step2:final Tue Sep 2 16:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (26445193) 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 26445193 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380871347,1380871886,1380871345,1380871884,1380871881,1380871343,1380871792,1380871790,1380871786,1380871784,1380871782,1380871780,1380872151,1380872150,1380872149,1380872206,1380872205,1380872204,1380872202,1380872294,1380872292,1380872690,1380872685,1380872682,1380872931,1380872929,1380872927,1380872925,1380872923); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445193]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} new output for save of step final : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] map_info['map_portfolio_photo'] : {26445193: [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682, 1380872294, 1380872292, 1380872206, 1380872205, 1380872204, 1380872202, 1380872151, 1380872150, 1380872149, 1380871886, 1380871884, 1380871881, 1380871792, 1380871790, 1380871786, 1380871784, 1380871782, 1380871780, 1380871347, 1380871345, 1380871343]} final : False mtd_id 4302 list_pids : [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] Looping around the photos to save general results len do output : 8 /1380872931.Didn't retrieve data . /1380872929.Didn't retrieve data . /1380872927.Didn't retrieve data . /1380872925.Didn't retrieve data . /1380872923.Didn't retrieve data . /1380872690.Didn't retrieve data . /1380872685.Didn't retrieve data . /1380872682.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, '3652703') ('4302', '26445193', '1380872931', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26445193', '1380872931', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872929', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872927', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872925', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872923', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872690', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872685', '0.0', None, None, None, None, '3652703'), ('4302', '26445193', '1380872682', '0.0', None, None, None, None, '3652703')] time used for this insertion : 0.011610269546508789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.04998588562011719 time spend to save output : 0.012020587921142578 total time spend for step 2 : 0.062006473541259766 step3:velours_tree Tue Sep 2 16:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {26445193: [{'Carton_gris': 26445219, 'Carton_brun': 26445220, 'Teint_Dans_La_Masse': 26445221, 'cartonnette': 26445222, 'autre_refus': 26445223, 'plastique': 26445224, 'metal': 26445225, 'environnement': 26445226, 'flou': 26445227, 'kraft': 26445228, 'mal_croppe': 26445229, 'papier': 26445230}]} input_args_next_step : {26445193: ()} output_args : {26445193: [{'Carton_gris': 26445219, 'Carton_brun': 26445220, 'Teint_Dans_La_Masse': 26445221, 'cartonnette': 26445222, 'autre_refus': 26445223, 'plastique': 26445224, 'metal': 26445225, 'environnement': 26445226, 'flou': 26445227, 'kraft': 26445228, 'mal_croppe': 26445229, 'papier': 26445230}]} args : 26445193 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 : ({'Carton_gris': 26445219, 'Carton_brun': 26445220, 'Teint_Dans_La_Masse': 26445221, 'cartonnette': 26445222, 'autre_refus': 26445223, 'plastique': 26445224, 'metal': 26445225, 'environnement': 26445226, 'flou': 26445227, 'kraft': 26445228, 'mal_croppe': 26445229, 'papier': 26445230},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26445193) 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([26445193]) 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.3080167770385742 time spend to save output : 5.9604644775390625e-05 total time spend for step 3 : 0.3080763816833496 step4:send_mail_cod Tue Sep 2 16:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} input_args_next_step : {1380872931: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872931 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872929 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872927 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872925 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872923 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872690 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872685 depend.output_id : 0 input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ()} output_args : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',)} args : 1380872682 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 : {26445193: [{'Carton_gris': 26445219, 'Carton_brun': 26445220, 'Teint_Dans_La_Masse': 26445221, 'cartonnette': 26445222, 'autre_refus': 26445223, 'plastique': 26445224, 'metal': 26445225, 'environnement': 26445226, 'flou': 26445227, 'kraft': 26445228, 'mal_croppe': 26445229, 'papier': 26445230}]} input_args_next_step : {1380872931: ('0.0',), 1380872929: ('0.0',), 1380872927: ('0.0',), 1380872925: ('0.0',), 1380872923: ('0.0',), 1380872690: ('0.0',), 1380872685: ('0.0',), 1380872682: ('0.0',), 26445193: ()} output_args : {26445193: [{'Carton_gris': 26445219, 'Carton_brun': 26445220, 'Teint_Dans_La_Masse': 26445221, 'cartonnette': 26445222, 'autre_refus': 26445223, 'plastique': 26445224, 'metal': 26445225, 'environnement': 26445226, 'flou': 26445227, 'kraft': 26445228, 'mal_croppe': 26445229, 'papier': 26445230}]} args : 26445193 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26445193) 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 (1380872931,1380872929,1380872927,1380872925,1380872923,1380872690,1380872685,1380872682) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380872682 begin to download photo : 1380872690 begin to download photo : 1380872925 begin to download photo : 1380872929 download finish for photo 1380872682 begin to download photo : 1380872685 download finish for photo 1380872925 begin to download photo : 1380872927 download finish for photo 1380872929 begin to download photo : 1380872931 download finish for photo 1380872690 begin to download photo : 1380872923 download finish for photo 1380872685 download finish for photo 1380872931 download finish for photo 1380872923 download finish for photo 1380872927 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette264452221756824778/ imagette264452231756824778/ imagette264452241756824778/ imagette264452251756824778/ imagette264452271756824778/ imagette264452281756824778/ imagette264452291756824778/ imagette264452191756824778/ imagette264452201756824778/ imagette264452211756824778/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P26445193_02-09-2025_16_52_58.pdf 26445222 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=26445222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452221756824778 26445223 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=26445223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452231756824778 26445224 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=26445224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452241756824778 26445225 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=26445225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452251756824778 26445227 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=26445227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452271756824778 26445228 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=26445228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452281756824778 26445229 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=26445229 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452291756824778 26445219 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=26445219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452191756824778 26445220 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=26445220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452201756824778 26445221 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=26445221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264452211756824778 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26445193 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26445231,26445232,26445233,26445234,26445235,26445236,26445237,26445238,26445239,26445240,26445241,26445242?tags=Carton_gris,Carton_brun,Teint_Dans_La_Masse,cartonnette,autre_refus,plastique,metal,environnement,flou,kraft,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1380872931] : ('0.0',) no score found for photo 1380872931 We are sending mail with results at report@fotonower.com args[1380872929] : ('0.0',) no score found for photo 1380872929 We are sending mail with results at report@fotonower.com args[1380872927] : ('0.0',) no score found for photo 1380872927 We are sending mail with results at report@fotonower.com args[1380872925] : ('0.0',) no score found for photo 1380872925 We are sending mail with results at report@fotonower.com args[1380872923] : ('0.0',) no score found for photo 1380872923 We are sending mail with results at report@fotonower.com args[1380872690] : ('0.0',) no score found for photo 1380872690 We are sending mail with results at report@fotonower.com args[1380872685] : ('0.0',) no score found for photo 1380872685 We are sending mail with results at report@fotonower.com args[1380872682] : ('0.0',) no score found for photo 1380872682 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445193 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_P26445193_02-09-2025_16_52_58.pdf results_Auto_P26445193_02-09-2025_16_52_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_16_52_58.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','26445193','results_Auto_P26445193_02-09-2025_16_52_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_16_52_58.pdf','pdf','','0.09','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445193]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] map_info['map_portfolio_photo'] : {26445193: [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682, 1380872294, 1380872292, 1380872206, 1380872205, 1380872204, 1380872202, 1380872151, 1380872150, 1380872149, 1380871886, 1380871884, 1380871881, 1380871792, 1380871790, 1380871786, 1380871784, 1380871782, 1380871780, 1380871347, 1380871345, 1380871343]} final : False mtd_id 4302 list_pids : [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] 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, '3652703') ('4302', '26445193', '1380872931', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26445193', '1380872931', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703')] time used for this insertion : 0.01279306411743164 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2705156803131104 time spend to save output : 0.013007879257202148 total time spend for step 4 : 1.2835235595703125 step5:split_time_score Tue Sep 2 16:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26445193'] 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 : [('26445193',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26445193) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380872682: {'path': 'temp/1756824778_3510005_1380872682_d100bd05cc8ea3d3344ae7a8007bdab0_34204066.jpg', 'extension': 'jpg'}, 1380872685: {'path': 'temp/1756824778_3510005_1380872685_7acae995918b636ffdd114a454b84c72_80724644.jpg', 'extension': 'jpg'}, 1380872929: {'path': 'temp/1756824778_3510005_1380872929_4431b6a64960a89146b78345b3d9285d_41684831.jpg', 'extension': 'jpg'}, 1380872931: {'path': 'temp/1756824778_3510005_1380872931_32ea1d6ef00bd8f5f8d84e5adabd07a0_91958380.jpg', 'extension': 'jpg'}, 1380872690: {'path': 'temp/1756824778_3510005_1380872690_a14f1d8829505550c49c73006a848a83_7909297.jpg', 'extension': 'jpg'}, 1380872923: {'path': 'temp/1756824778_3510005_1380872923_2b4ad3a415678433666af3cc28a688c7_37237456.jpg', 'extension': 'jpg'}, 1380872925: {'path': 'temp/1756824778_3510005_1380872925_36249748dbf7a08e72fcf1daeea2fa92_22686216.jpg', 'extension': 'jpg'}, 1380872927: {'path': 'temp/1756824778_3510005_1380872927_43a8eed528e26100ddc0f7487dc28825_5745253.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 = 26445193; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26445193 group by h (('16', 29),) 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=26445193 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 (26445193) 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 (26445193) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02092025 26445193 Nombre de photos uploadées : 29 / 23040 (0%) 02092025 26445193 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 02092025 26445193 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1380871347, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b1ea7bcb78b0cb16b8ff0ff79c2e42f9_2212296.jpg', 'username': None, 'uploaded_at': 1756824372, 'text': 'image_02092025_16_45_04_10140.jpg'}, {'photo_id': 1380871886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b1ea7bcb78b0cb16b8ff0ff79c2e42f9_60163018.jpg', 'username': None, 'uploaded_at': 1756824448, 'text': 'image_02092025_16_45_04_10140.jpg'}, {'photo_id': 1380871345, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/f711f5f1e622ab51150e0a2a1ede52a0_34539124.jpg', 'username': None, 'uploaded_at': 1756824372, 'text': 'image_02092025_16_45_14_10134.jpg'}, {'photo_id': 1380871884, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/f711f5f1e622ab51150e0a2a1ede52a0_22432385.jpg', 'username': None, 'uploaded_at': 1756824448, 'text': 'image_02092025_16_45_14_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018870830535888672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26445193, '2025-09-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2213047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20282292366027832 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= 2213047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26419800, 'dashboard_result_id': 14600813, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26420091, 'dashboard_result_id': 14600815, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26420215, 'dashboard_result_id': 14600816, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26420269, 'dashboard_result_id': 14600817, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26420665, 'dashboard_result_id': 14600818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26420821, 'dashboard_result_id': 14600819, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26421082, 'dashboard_result_id': 14600820, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26421275, 'dashboard_result_id': 14600821, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26421697, 'dashboard_result_id': 14600822, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26421773, 'dashboard_result_id': 14600823, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26421852, 'dashboard_result_id': 14600824, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26422348, 'dashboard_result_id': 14600825, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26422569, 'dashboard_result_id': 14600826, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26422847, 'dashboard_result_id': 14600827, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26423247, 'dashboard_result_id': 14600828, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26423697, 'dashboard_result_id': 14600829, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26425366, 'dashboard_result_id': 14600830, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26425367, 'dashboard_result_id': 14600831, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26425368, 'dashboard_result_id': 14600832, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26426242, 'dashboard_result_id': 14600834, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26426742, 'dashboard_result_id': 14600835, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26426922, 'dashboard_result_id': 14600836, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26427649, 'dashboard_result_id': 14600837, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26427997, 'dashboard_result_id': 14600838, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_10_58_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26429064, 'dashboard_result_id': 14600839, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26429066, 'dashboard_result_id': 14600840, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26429069, 'dashboard_result_id': 14600841, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26430560, 'dashboard_result_id': 14600842, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26431021, 'dashboard_result_id': 14600843, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26431877, 'dashboard_result_id': 14600844, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26432175, 'dashboard_result_id': 14600845, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26432932, 'dashboard_result_id': 14600846, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26432958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432969, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26433636, 'dashboard_result_id': 14600847, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26433703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26433704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26433705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26433706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26433707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26433708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26433709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26433710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26433711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26433712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26433713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26433714, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26434418, 'dashboard_result_id': 14600848, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26434426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26434427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26434428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26434429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26434430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26434431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26434432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26434433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26434434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26434435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26434436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26434437, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26435176, 'dashboard_result_id': 14600849, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435176_02-09-2025_11_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435196, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26435639, 'dashboard_result_id': 14600850, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435639_02-09-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435667, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26435936, 'dashboard_result_id': 14600851, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435973, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26437996, 'dashboard_result_id': 14600853, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26438000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26438001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26438003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26438004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26438005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26438007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26438008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26438009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26438010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438011, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26438994, 'dashboard_result_id': 14600854, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439008, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26439239, 'dashboard_result_id': 14600855, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439269, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26439847, 'dashboard_result_id': 14600856, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26439863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439874, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26440428, 'dashboard_result_id': 14600857, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440485, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26440892, 'dashboard_result_id': 14600858, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440919, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26441460, 'dashboard_result_id': 14600859, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26441492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26441493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26441494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26441495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26441496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26441497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26441498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26441499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26441500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26441501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26441502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26441503, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26442297, 'dashboard_result_id': 14600860, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26442302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442313, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26442757, 'dashboard_result_id': 14600861, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26442789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442791, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26443340, 'dashboard_result_id': 14600862, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443371, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26443863, 'dashboard_result_id': 14600863, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443863_02-09-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443887, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26444379, 'dashboard_result_id': 14600864, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444379_02-09-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444395, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26444704, 'dashboard_result_id': 14600865, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444704_02-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444744, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225521, 'mtr_portfolio_id': 26445193, 'dashboard_result_id': 14600866, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_16_51_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445230, '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 = 26419800 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649621, 'mtr_portfolio_id': 26419800, 'created_at': datetime.datetime(2025, 9, 2, 6, 10, 40), 'result': '0.03686026602506332', 'result_long': None, 'result_double': None}] Qualite : 0.03686026602506332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26419800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26419800 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}" where mtr_portfolio_id = 26419800 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26419800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600813, 0.03686026602506332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420091 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649622, 'mtr_portfolio_id': 26420091, 'created_at': datetime.datetime(2025, 9, 2, 6, 11), 'result': '0.0030135671054280005', 'result_long': None, 'result_double': None}] Qualite : 0.0030135671054280005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420091 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}" where mtr_portfolio_id = 26420091 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600815, 0.0030135671054280005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420215 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649623, 'mtr_portfolio_id': 26420215, 'created_at': datetime.datetime(2025, 9, 2, 6, 11, 30), 'result': '0.021580946659637567', 'result_long': None, 'result_double': None}] Qualite : 0.021580946659637567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420215 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}" where mtr_portfolio_id = 26420215 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600816, 0.021580946659637567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420269 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649624, 'mtr_portfolio_id': 26420269, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 1), 'result': '0.024971925645642143', 'result_long': None, 'result_double': None}] Qualite : 0.024971925645642143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420269 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}" where mtr_portfolio_id = 26420269 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600817, 0.024971925645642143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420665 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649625, 'mtr_portfolio_id': 26420665, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 29), 'result': '0.11729822377686816', 'result_long': None, 'result_double': None}] Qualite : 0.11729822377686816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}" where mtr_portfolio_id = 26420665 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600818, 0.11729822377686816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420821 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649626, 'mtr_portfolio_id': 26420821, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 58), 'result': '0.017734543541633403', 'result_long': None, 'result_double': None}] Qualite : 0.017734543541633403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420821 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}" where mtr_portfolio_id = 26420821 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600819, 0.017734543541633403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421082 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649627, 'mtr_portfolio_id': 26421082, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 30), 'result': '0.047804041156876025', 'result_long': None, 'result_double': None}] Qualite : 0.047804041156876025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421082 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}" where mtr_portfolio_id = 26421082 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600820, 0.047804041156876025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421275 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649628, 'mtr_portfolio_id': 26421275, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 59), 'result': '0.02803459362490644', 'result_long': None, 'result_double': None}] Qualite : 0.02803459362490644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}" where mtr_portfolio_id = 26421275 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600821, 0.02803459362490644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421697 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649629, 'mtr_portfolio_id': 26421697, 'created_at': datetime.datetime(2025, 9, 2, 6, 14, 28), 'result': '0.032193565636688314', 'result_long': None, 'result_double': None}] Qualite : 0.032193565636688314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421697 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}" where mtr_portfolio_id = 26421697 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600822, 0.032193565636688314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421773 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649630, 'mtr_portfolio_id': 26421773, 'created_at': datetime.datetime(2025, 9, 2, 6, 15), 'result': '0.041312166364478355', 'result_long': None, 'result_double': None}] Qualite : 0.041312166364478355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421773 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}" where mtr_portfolio_id = 26421773 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600823, 0.041312166364478355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421852 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649631, 'mtr_portfolio_id': 26421852, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 28), 'result': '0.011354407159164243', 'result_long': None, 'result_double': None}] Qualite : 0.011354407159164243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}" where mtr_portfolio_id = 26421852 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600824, 0.011354407159164243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26422348 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649634, 'mtr_portfolio_id': 26422348, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 40), 'result': '0.06504504754248332', 'result_long': None, 'result_double': None}] Qualite : 0.06504504754248332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422348 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}" where mtr_portfolio_id = 26422348 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26422348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600825, 0.06504504754248332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26422569 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649635, 'mtr_portfolio_id': 26422569, 'created_at': datetime.datetime(2025, 9, 2, 5, 40, 39), 'result': '0.05665505530903546', 'result_long': None, 'result_double': None}] Qualite : 0.05665505530903546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422569 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}" where mtr_portfolio_id = 26422569 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26422569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600826, 0.05665505530903546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26422847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649554, 'mtr_portfolio_id': 26422847, 'created_at': datetime.datetime(2025, 9, 2, 5, 49), 'result': '0.050945077666736796', 'result_long': None, 'result_double': None}] Qualite : 0.050945077666736796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}" where mtr_portfolio_id = 26422847 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26422847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600827, 0.050945077666736796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26423247 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649728, 'mtr_portfolio_id': 26423247, 'created_at': datetime.datetime(2025, 9, 2, 6, 3, 28), 'result': '0.04732348082075002', 'result_long': None, 'result_double': None}] Qualite : 0.04732348082075002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423247 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}" where mtr_portfolio_id = 26423247 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26423247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600828, 0.04732348082075002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26423697 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649799, 'mtr_portfolio_id': 26423697, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 41), 'result': '0.09345634243956515', 'result_long': None, 'result_double': None}] Qualite : 0.09345634243956515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423697 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}" where mtr_portfolio_id = 26423697 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26423697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600829, 0.09345634243956515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26425366 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650072, 'mtr_portfolio_id': 26425366, 'created_at': datetime.datetime(2025, 9, 2, 7, 1, 3), 'result': '0.051827515755475985', 'result_long': None, 'result_double': None}] Qualite : 0.051827515755475985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425366 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}" where mtr_portfolio_id = 26425366 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26425366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600830, 0.051827515755475985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26425367 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650073, 'mtr_portfolio_id': 26425367, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 33), 'result': '0.04827498812658768', 'result_long': None, 'result_double': None}] Qualite : 0.04827498812658768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425367 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}" where mtr_portfolio_id = 26425367 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26425367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600831, 0.04827498812658768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26425368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650074, 'mtr_portfolio_id': 26425368, 'created_at': datetime.datetime(2025, 9, 2, 7, 16, 58), 'result': '0.0630449193859071', 'result_long': None, 'result_double': None}] Qualite : 0.0630449193859071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}" where mtr_portfolio_id = 26425368 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26425368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600832, 0.0630449193859071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26426242 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650197, 'mtr_portfolio_id': 26426242, 'created_at': datetime.datetime(2025, 9, 2, 7, 24, 57), 'result': '0.04403825290894583', 'result_long': None, 'result_double': None}] Qualite : 0.04403825290894583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426242 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}" where mtr_portfolio_id = 26426242 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26426242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600834, 0.04403825290894583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26426742 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650241, 'mtr_portfolio_id': 26426742, 'created_at': datetime.datetime(2025, 9, 2, 7, 33), 'result': '0.06966086867563821', 'result_long': None, 'result_double': None}] Qualite : 0.06966086867563821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426742 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}" where mtr_portfolio_id = 26426742 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26426742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600835, 0.06966086867563821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26426922 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650264, 'mtr_portfolio_id': 26426922, 'created_at': datetime.datetime(2025, 9, 2, 7, 48, 58), 'result': '0.07815691925885802', 'result_long': None, 'result_double': None}] Qualite : 0.07815691925885802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426922 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}" where mtr_portfolio_id = 26426922 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26426922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600836, 0.07815691925885802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427649 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650333, 'mtr_portfolio_id': 26427649, 'created_at': datetime.datetime(2025, 9, 2, 8, 3, 1), 'result': '0.0064983107930800255', 'result_long': None, 'result_double': None}] Qualite : 0.0064983107930800255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427649 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}" where mtr_portfolio_id = 26427649 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26427649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600837, 0.0064983107930800255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 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 = 26427997 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 = 26427997 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 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 = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_10_58_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427997 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_10_58_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}" where mtr_portfolio_id = 26427997 and dashboard_run_id = 2225521 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651285, 'mtr_portfolio_id': 26429064, 'created_at': datetime.datetime(2025, 9, 2, 10, 57, 29), 'result': '0.04928245450208556', 'result_long': None, 'result_double': None}] Qualite : 0.04928245450208556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}" where mtr_portfolio_id = 26429064 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26429064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600839, 0.04928245450208556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429066 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651286, 'mtr_portfolio_id': 26429066, 'created_at': datetime.datetime(2025, 9, 2, 10, 56, 59), 'result': '0.06253374620855036', 'result_long': None, 'result_double': None}] Qualite : 0.06253374620855036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429066 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}" where mtr_portfolio_id = 26429066 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26429066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600840, 0.06253374620855036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429069 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650450, 'mtr_portfolio_id': 26429069, 'created_at': datetime.datetime(2025, 9, 2, 9, 32, 57), 'result': '0.08166377855555111', 'result_long': None, 'result_double': None}] Qualite : 0.08166377855555111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429069 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}" where mtr_portfolio_id = 26429069 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26429069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600841, 0.08166377855555111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26430560 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650688, 'mtr_portfolio_id': 26430560, 'created_at': datetime.datetime(2025, 9, 2, 9, 49), 'result': '0.06947375716795579', 'result_long': None, 'result_double': None}] Qualite : 0.06947375716795579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26430560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26430560 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}" where mtr_portfolio_id = 26430560 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26430560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600842, 0.06947375716795579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26431021 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650737, 'mtr_portfolio_id': 26431021, 'created_at': datetime.datetime(2025, 9, 2, 10, 3, 28), 'result': '0.04648616721703691', 'result_long': None, 'result_double': None}] Qualite : 0.04648616721703691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26431021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26431021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}" where mtr_portfolio_id = 26431021 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26431021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600843, 0.04648616721703691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26431877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650867, 'mtr_portfolio_id': 26431877, 'created_at': datetime.datetime(2025, 9, 2, 10, 18, 29), 'result': '0.029112940950147572', 'result_long': None, 'result_double': None}] Qualite : 0.029112940950147572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26431877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26431877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}" where mtr_portfolio_id = 26431877 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26431877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600844, 0.029112940950147572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26432175 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650915, 'mtr_portfolio_id': 26432175, 'created_at': datetime.datetime(2025, 9, 2, 10, 33), 'result': '0.025717990244983273', 'result_long': None, 'result_double': None}] Qualite : 0.025717990244983273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26432175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26432175 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}" where mtr_portfolio_id = 26432175 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26432175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600845, 0.025717990244983273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26432932 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651045, 'mtr_portfolio_id': 26432932, 'created_at': datetime.datetime(2025, 9, 2, 10, 48, 57), 'result': '0.0545022621205445', 'result_long': None, 'result_double': None}] Qualite : 0.0545022621205445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26432932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26432932 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26432958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432969, 'pht': 3726}}" where mtr_portfolio_id = 26432932 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26432932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600846, 0.0545022621205445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26432958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26433636 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651130, 'mtr_portfolio_id': 26433636, 'created_at': datetime.datetime(2025, 9, 2, 11, 56, 30), 'result': '0.0837256333957793', 'result_long': None, 'result_double': None}] Qualite : 0.0837256333957793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26433636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26433636 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26433703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26433704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26433705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26433706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26433707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26433708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26433709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26433710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26433711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26433712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26433713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26433714, 'pht': 3726}}" where mtr_portfolio_id = 26433636 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26433636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600847, 0.0837256333957793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26433703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26433704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26433705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26433706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26433707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26433708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26433709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26433710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26433711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26433712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26433713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26433714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26434418 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651380, 'mtr_portfolio_id': 26434418, 'created_at': datetime.datetime(2025, 9, 2, 11, 18, 29), 'result': '0.04458375694838719', 'result_long': None, 'result_double': None}] Qualite : 0.04458375694838719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26434418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26434418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26434426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26434427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26434428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26434429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26434430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26434431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26434432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26434433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26434434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26434435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26434436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26434437, 'pht': 3726}}" where mtr_portfolio_id = 26434418 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26434418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600848, 0.04458375694838719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26434426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26434427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26434428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26434429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26434430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26434431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26434432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26434433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26434434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26434435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26434436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26434437, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435176 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 = 26435176 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 = 26435176 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435176 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 = 26435176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26435176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435176_02-09-2025_11_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26435176 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435176_02-09-2025_11_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435196, 'pht': 3726}}" where mtr_portfolio_id = 26435176 and dashboard_run_id = 2225521 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435639 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 = 26435639 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 = 26435639 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435639 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 = 26435639 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26435639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435639_02-09-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26435639 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435639_02-09-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435667, 'pht': 3726}}" where mtr_portfolio_id = 26435639 and dashboard_run_id = 2225521 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435936 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651514, 'mtr_portfolio_id': 26435936, 'created_at': datetime.datetime(2025, 9, 2, 13, 0, 29), 'result': '0.06918039650787307', 'result_long': None, 'result_double': None}] Qualite : 0.06918039650787307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26435936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26435936 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435973, 'pht': 3726}}" where mtr_portfolio_id = 26435936 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26435936 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600851, 0.06918039650787307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435973, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26437996 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651781, 'mtr_portfolio_id': 26437996, 'created_at': datetime.datetime(2025, 9, 2, 13, 59, 58), 'result': '0.06487771982379276', 'result_long': None, 'result_double': None}] Qualite : 0.06487771982379276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26437996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26437996 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26438000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26438001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26438003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26438004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26438005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26438007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26438008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26438009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26438010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438011, 'pht': 3726}}" where mtr_portfolio_id = 26437996 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26437996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600853, 0.06487771982379276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26438000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26438001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26438003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26438004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26438005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26438007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26438008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26438009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26438010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438011, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26438994 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651902, 'mtr_portfolio_id': 26438994, 'created_at': datetime.datetime(2025, 9, 2, 14, 2, 59), 'result': '0.0514167746937567', 'result_long': None, 'result_double': None}] Qualite : 0.0514167746937567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26438994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26438994 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439008, 'pht': 3726}}" where mtr_portfolio_id = 26438994 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26438994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600854, 0.0514167746937567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26439239 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651947, 'mtr_portfolio_id': 26439239, 'created_at': datetime.datetime(2025, 9, 2, 14, 18, 58), 'result': '0.040271574377869566', 'result_long': None, 'result_double': None}] Qualite : 0.040271574377869566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26439239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26439239 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439269, 'pht': 3726}}" where mtr_portfolio_id = 26439239 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26439239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600855, 0.040271574377869566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26439847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652019, 'mtr_portfolio_id': 26439847, 'created_at': datetime.datetime(2025, 9, 2, 14, 32, 57), 'result': '0.07007570620751657', 'result_long': None, 'result_double': None}] Qualite : 0.07007570620751657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26439847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26439847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26439863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439874, 'pht': 3726}}" where mtr_portfolio_id = 26439847 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26439847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600856, 0.07007570620751657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26439863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439874, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26440428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652091, 'mtr_portfolio_id': 26440428, 'created_at': datetime.datetime(2025, 9, 2, 14, 49), 'result': '0.09138343852938557', 'result_long': None, 'result_double': None}] Qualite : 0.09138343852938557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26440428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26440428 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440485, 'pht': 3726}}" where mtr_portfolio_id = 26440428 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26440428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600857, 0.09138343852938557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440485, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26440892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652143, 'mtr_portfolio_id': 26440892, 'created_at': datetime.datetime(2025, 9, 2, 15, 2, 59), 'result': '0.061975130028068745', 'result_long': None, 'result_double': None}] Qualite : 0.061975130028068745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26440892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26440892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440919, 'pht': 3726}}" where mtr_portfolio_id = 26440892 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26440892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600858, 0.061975130028068745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440919, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26441460 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652243, 'mtr_portfolio_id': 26441460, 'created_at': datetime.datetime(2025, 9, 2, 15, 18, 56), 'result': '0.037136621543279576', 'result_long': None, 'result_double': None}] Qualite : 0.037136621543279576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26441460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26441460 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26441492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26441493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26441494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26441495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26441496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26441497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26441498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26441499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26441500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26441501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26441502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26441503, 'pht': 3726}}" where mtr_portfolio_id = 26441460 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26441460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600859, 0.037136621543279576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26441492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26441493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26441494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26441495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26441496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26441497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26441498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26441499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26441500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26441501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26441502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26441503, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26442297 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652341, 'mtr_portfolio_id': 26442297, 'created_at': datetime.datetime(2025, 9, 2, 15, 33), 'result': '0.044398406937729694', 'result_long': None, 'result_double': None}] Qualite : 0.044398406937729694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26442297 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26442297 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26442302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442313, 'pht': 3726}}" where mtr_portfolio_id = 26442297 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26442297 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600860, 0.044398406937729694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26442302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442313, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26442757 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652410, 'mtr_portfolio_id': 26442757, 'created_at': datetime.datetime(2025, 9, 2, 15, 49, 1), 'result': '0.06241485380856781', 'result_long': None, 'result_double': None}] Qualite : 0.06241485380856781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26442757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26442757 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26442789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442791, 'pht': 3726}}" where mtr_portfolio_id = 26442757 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26442757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600861, 0.06241485380856781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26442789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442791, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443340 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652506, 'mtr_portfolio_id': 26443340, 'created_at': datetime.datetime(2025, 9, 2, 16, 2, 58), 'result': '0.0781427020288136', 'result_long': None, 'result_double': None}] Qualite : 0.0781427020288136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26443340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26443340 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443371, 'pht': 3726}}" where mtr_portfolio_id = 26443340 and dashboard_run_id = 2225521 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26443340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14600862, 0.0781427020288136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443371, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443863 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 = 26443863 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 = 26443863 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443863 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 = 26443863 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26443863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443863_02-09-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26443863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443863_02-09-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443887, 'pht': 3726}}" where mtr_portfolio_id = 26443863 and dashboard_run_id = 2225521 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444379 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 = 26444379 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 = 26444379 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444379 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 = 26444379 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26444379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444379_02-09-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26444379 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444379_02-09-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444395, 'pht': 3726}}" where mtr_portfolio_id = 26444379 and dashboard_run_id = 2225521 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444704 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 = 26444704 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 = 26444704 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444704 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 = 26444704 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26444704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444704_02-09-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26444704 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444704_02-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444744, 'pht': 3726}}" where mtr_portfolio_id = 26444704 and dashboard_run_id = 2225521 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445193 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 = 26445193 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 = 26445193 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445193 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 = 26445193 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26445193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_16_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26445193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_16_52_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445230, 'pht': 3726}}" where mtr_portfolio_id = 26445193 and dashboard_run_id = 2225519 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26419800,26420091,26420215,26420269,26420665,26420821,26421082,26421275,26421697,26421773,26421852,26422348,26422569,26422847,26423247,26423697,26425366,26425367,26425368,26426242,26426742,26426922,26427649,26427997,26429064,26429066,26429069,26430560,26431021,26431877,26432175,26432932,26433636,26434418,26435176,26435639,26435936,26437996,26438994,26439239,26439847,26440428,26440892,26441460,26442297,26442757,26443340,26443863,26444379,26444704,26445193) result : ((1380746927,), (1380746929,), (1380747076,), (1380747077,), (1380747078,), (1380747090,), (1380747136,), (1380747157,), (1380747158,), (1380747673,), (1380747675,), (1380747677,), (1380747745,), (1380747808,), (1380748022,), (1380747872,), (1380748234,), (1380748235,), (1380748316,), (1380748660,), (1380748661,), (1380748801,), (1380748822,), (1380748859,), (1380748919,), (1380748922,), (1380748976,), (1380749079,), (1380749223,), (1380749240,), (1380749270,), (1380749336,), (1380749439,), (1380749491,), (1380749492,), (1380750502,), (1380750974,), (1380750975,), (1380751018,), (1380751029,), (1380754439,), (1380754438,), (1380754608,), (1380754609,), (1380754648,), (1380754649,), (1380754650,), (1380754672,), (1380754674,), (1380754675,), (1380754676,), (1380754744,), (1380754745,), (1380754788,), (1380754789,), (1380754811,), (1380754832,), (1380754849,), (1380754871,), (1380754892,), (1380754909,), (1380754959,), (1380754956,), (1380755028,), (1380755060,), (1380755121,), (1380755186,), (1380755282,), (1380755347,), (1380755348,), (1380755349,), (1380755585,), (1380755586,), (1380755587,), (1380756011,), (1380756763,), (1380756970,), (1380756971,), (1380757095,), (1380757478,), (1380757480,), (1380757482,), (1380757690,), (1380757702,), (1380757716,), (1380757728,), (1380757770,), (1380757771,), (1380757772,), (1380757830,), (1380757855,), (1380757876,), (1380757877,), (1380757906,), (1380757957,), (1380757979,), (1380757992,), (1380758050,), (1380758101,), (1380758102,), (1380758103,), (1380758233,), (1380761735,), (1380761817,), (1380761818,), (1380761819,), (1380761902,), (1380761964,), (1380761985,), (1380762007,), (1380762099,), (1380762149,), (1380762258,), (1380762259,), (1380762275,), (1380762316,), (1380762355,), (1380762416,), (1380762417,), (1380762472,), (1380762590,), (1380762650,), (1380762651,), (1380762792,), (1380762847,), (1380762848,), (1380762849,), (1380763516,), (1380763636,), (1380763697,), (1380769131,), (1380769132,), (1380769133,), (1380769203,), (1380769204,), (1380769205,), (1380769244,), (1380769245,), (1380769313,), (1380769314,), (1380769343,), (1380769344,), (1380769345,), (1380769372,), (1380769373,), (1380769405,), (1380769406,), (1380769407,), (1380769408,), (1380769409,), (1380769436,), (1380769471,), (1380769486,), (1380769502,), (1380769522,), (1380769523,), (1380769524,), (1380769525,), (1380769550,), (1380769552,), (1380769553,), (1380769554,), (1380769614,), (1380769615,), (1380769616,), (1380769617,), (1380769618,), (1380769644,), (1380769645,), (1380769646,), (1380769647,), (1380769648,), (1380769649,), (1380769700,), (1380769701,), (1380769702,), (1380769703,), (1380769730,), (1380769731,), (1380769732,), (1380769758,), (1380769759,), (1380769760,), (1380769761,), (1380769784,), (1380769785,), (1380769786,), (1380769787,), (1380769807,), (1380769808,), (1380769809,), (1380769810,), (1380769811,), (1380769812,), (1380769816,), (1380769828,), (1380769829,), (1380769830,), (1380769831,), (1380769855,), (1380769856,), (1380769857,), (1380769858,), (1380769859,), (1380769860,), (1380769883,), (1380769884,), (1380769885,), (1380769886,), (1380769887,), (1380769888,), (1380769916,), (1380769912,), (1380769913,), (1380769914,), (1380769915,), (1380769934,), (1380769935,), (1380769936,), (1380769937,), (1380769938,), (1380769939,), (1380769979,), (1380769980,), (1380769981,), (1380769982,), (1380770014,), (1380770015,), (1380770016,), (1380770017,), (1380770018,), (1380770019,), (1380770052,), (1380770053,), (1380770054,), (1380770055,), (1380770056,), (1380770057,), (1380770083,), (1380770085,), (1380770086,), (1380770087,), (1380770088,), (1380770089,), (1380770113,), (1380770114,), (1380770115,), (1380770116,), (1380770117,), (1380770149,), (1380770151,), (1380770152,), (1380770153,), (1380770154,), (1380770155,), (1380770182,), (1380770183,), (1380770184,), (1380770185,), (1380770218,), (1380770219,), (1380770220,), (1380770221,), (1380770223,), (1380770225,), (1380770246,), (1380770247,), (1380770248,), (1380770249,), (1380770320,), (1380770321,), (1380770322,), (1380770323,), (1380770324,), (1380770325,), (1380770351,), (1380770352,), (1380770353,), (1380770354,), (1380770386,), (1380770424,), (1380770382,), (1380770383,), (1380770384,), (1380770385,), (1380770407,), (1380770408,), (1380770409,), (1380770410,), (1380770412,), (1380770413,), (1380770420,), (1380770421,), (1380770422,), (1380770423,), (1380770444,), (1380770445,), (1380770446,), (1380770447,), (1380770476,), (1380770477,), (1380770478,), (1380770479,), (1380770480,), (1380770481,), (1380770506,), (1380770507,), (1380770508,), (1380770509,), (1380770510,), (1380770511,), (1380770555,), (1380770556,), (1380770557,), (1380770558,), (1380770587,), (1380770588,), (1380770589,), (1380770590,), (1380770592,), (1380770629,), (1380770630,), (1380770631,), (1380770653,), (1380770661,), (1380770662,), (1380770664,), (1380770665,), (1380770666,), (1380770688,), (1380770689,), (1380770690,), (1380770691,), (1380770692,), (1380770693,), (1380770712,), (1380770713,), (1380770714,), (1380770744,), (1380770746,), (1380770748,), (1380770749,), (1380770750,), (1380770751,), (1380770755,), (1380770756,), (1380770757,), (1380771045,), (1380771047,), (1380771049,), (1380771051,), (1380771053,), (1380771569,), (1380771571,), (1380771575,), (1380771578,), (1380771581,), (1380771641,), (1380771643,), (1380771646,), (1380771648,), (1380771650,), (1380772008,), (1380772002,), (1380772004,), (1380772006,), (1380772369,), (1380772371,), (1380772373,), (1380772375,), (1380772377,), (1380772755,), (1380772757,), (1380772759,), (1380772761,), (1380772938,), (1380772940,), (1380772942,), (1380772944,), (1380773103,), (1380773104,), (1380773105,), (1380773106,), (1380773107,), (1380773138,), (1380773139,), (1380773140,), (1380773141,), (1380773142,), (1380773143,), (1380773176,), (1380773177,), (1380773178,), (1380773179,), (1380773180,), (1380773181,), (1380773186,), (1380773187,), (1380773215,), (1380773249,), (1380773291,), (1380773392,), (1380773414,), (1380773415,), (1380773416,), (1380773417,), (1380773418,), (1380773454,), (1380773479,), (1380773450,), (1380773451,), (1380773452,), (1380773453,), (1380773468,), (1380773469,), (1380773470,), (1380773471,), (1380773472,), (1380773473,), (1380773477,), (1380773513,), (1380773514,), (1380773515,), (1380773517,), (1380773519,), (1380773547,), (1380773548,), (1380773549,), (1380773550,), (1380773551,), (1380773588,), (1380773589,), (1380773590,), (1380773591,), (1380773592,), (1380773618,), (1380773619,), (1380773656,), (1380773657,), (1380773658,), (1380773659,), (1380773660,), (1380773682,), (1380773683,), (1380773684,), (1380773685,), (1380773686,), (1380773687,), (1380773785,), (1380773786,), (1380773787,), (1380773788,), (1380773818,), (1380773819,), (1380773820,), (1380773821,), (1380773846,), (1380773847,), (1380773894,), (1380773895,), (1380773896,), (1380773897,), (1380773898,), (1380773935,), (1380773936,), (1380773937,), (1380773938,), (1380773939,), (1380773955,), (1380773956,), (1380773957,), (1380773958,), (1380773959,), (1380773995,), (1380773996,), (1380773997,), (1380773998,), (1380774020,), (1380774014,), (1380774018,), (1380774019,), (1380774056,), (1380774057,), (1380774058,), (1380774059,), (1380774060,), (1380774079,), (1380774080,), (1380774119,), (1380774121,), (1380774123,), (1380774124,), (1380774160,), (1380774161,), (1380774162,), (1380774163,), (1380774200,), (1380774201,), (1380774202,), (1380774203,), (1380774217,), (1380774219,), (1380774220,), (1380774221,), (1380774222,), (1380774223,), (1380774226,), (1380774227,), (1380774253,), (1380774254,), (1380774255,), (1380774256,), (1380774283,), (1380774284,), (1380774311,), (1380774312,), (1380774313,), (1380774314,), (1380774315,), (1380774336,), (1380774337,), (1380774338,), (1380774339,), (1380774340,), (1380774341,), (1380774383,), (1380774384,), (1380774385,), (1380774386,), (1380774387,), (1380774405,), (1380774406,), (1380774407,), (1380774408,), (1380774447,), (1380774448,), (1380774449,), (1380774450,), (1380774451,), (1380774475,), (1380774476,), (1380774478,), (1380774480,), (1380774541,), (1380774567,), (1380774537,), (1380774538,), (1380774539,), (1380774540,), (1380774556,), (1380774557,), (1380774558,), (1380774559,), (1380774560,), (1380774561,), (1380774565,), (1380774585,), (1380774586,), (1380774587,), (1380774588,), (1380774589,), (1380774609,), (1380774612,), (1380774613,), (1380774614,), (1380774615,), (1380774616,), (1380774648,), (1380774649,), (1380774650,), (1380774669,), (1380774670,), (1380774671,), (1380774672,), (1380774700,), (1380774701,), (1380774702,), (1380774703,), (1380774704,), (1380774719,), (1380774720,), (1380774721,), (1380774722,), (1380774749,), (1380774750,), (1380774751,), (1380774752,), (1380774753,), (1380774781,), (1380774782,), (1380774783,), (1380774784,), (1380774785,), (1380774786,), (1380774823,), (1380774824,), (1380774825,), (1380774847,), (1380774848,), (1380774849,), (1380774850,), (1380774851,), (1380774852,), (1380774875,), (1380774879,), (1380774880,), (1380774881,), (1380774882,), (1380775553,), (1380775557,), (1380775561,), (1380775565,), (1380775569,), (1380775712,), (1380775716,), (1380776439,), (1380776431,), (1380776433,), (1380776435,), (1380776437,), (1380776936,), (1380776938,), (1380776940,), (1380776942,), (1380776944,), (1380777177,), (1380777178,), (1380777179,), (1380777180,), (1380777181,), (1380777212,), (1380777213,), (1380777214,), (1380777215,), (1380777238,), (1380777239,), (1380777241,), (1380777242,), (1380777281,), (1380777282,), (1380777283,), (1380777297,), (1380777298,), (1380777299,), (1380777300,), (1380777301,), (1380777303,), (1380777312,), (1380777343,), (1380777344,), (1380777345,), (1380777346,), (1380777347,), (1380777374,), (1380777375,), (1380777376,), (1380777377,), (1380777430,), (1380777431,), (1380778686,), (1380778732,), (1380778733,), (1380778734,), (1380778735,), (1380778838,), (1380778839,), (1380778840,), (1380778841,), (1380779077,), (1380779080,), (1380779083,), (1380779086,), (1380779090,), (1380779093,), (1380779160,), (1380779162,), (1380779261,), (1380779262,), (1380779263,), (1380779264,), (1380779301,), (1380779302,), (1380779303,), (1380779304,), (1380779305,), (1380779306,), (1380779338,), (1380779339,), (1380779340,), (1380779342,), (1380779343,), (1380779372,), (1380779370,), (1380779371,), (1380779466,), (1380779467,), (1380779468,), (1380779469,), (1380779470,), (1380779471,), (1380779491,), (1380779492,), (1380779493,), (1380779494,), (1380779540,), (1380779541,), (1380779542,), (1380779619,), (1380779620,), (1380779622,), (1380779723,), (1380779725,), (1380779726,), (1380779727,), (1380779899,), (1380779900,), (1380779901,), (1380779902,), (1380779903,), (1380779904,), (1380779908,), (1380779910,), (1380779930,), (1380779931,), (1380779932,), (1380779933,), (1380779934,), (1380779935,), (1380780002,), (1380780003,), (1380780004,), (1380780005,), (1380780006,), (1380780007,), (1380780030,), (1380780031,), (1380780032,), (1380780086,), (1380780089,), (1380780091,), (1380780092,), (1380780254,), (1380780256,), (1380780258,), (1380780260,), (1380780394,), (1380780395,), (1380780396,), (1380780397,), (1380780398,), (1380780425,), (1380780426,), (1380780484,), (1380780486,), (1380780549,), (1380780712,), (1380780708,), (1380780709,), (1380780711,), (1380781186,), (1380781235,), (1380781330,), (1380781359,), (1380781360,), (1380781361,), (1380781387,), (1380781389,), (1380781390,), (1380781391,), (1380781422,), (1380781423,), (1380781424,), (1380781938,), (1380781940,), (1380782059,), (1380782060,), (1380782061,), (1380782057,), (1380782058,), (1380782093,), (1380782095,), (1380782096,), (1380782115,), (1380782116,), (1380782149,), (1380782151,), (1380782152,), (1380782176,), (1380782214,), (1380782215,), (1380782216,), (1380782217,), (1380782218,), (1380782234,), (1380782235,), (1380782236,), (1380782237,), (1380782238,), (1380782239,), (1380782243,), (1380782275,), (1380782276,), (1380782277,), (1380782278,), (1380782298,), (1380782299,), (1380782300,), (1380782327,), (1380782328,), (1380782344,), (1380782346,), (1380782347,), (1380782563,), (1380782565,), (1380782567,), (1380782569,), (1380782916,), (1380782918,), (1380783225,), (1380783226,), (1380783228,), (1380783230,), (1380783232,), (1380783234,), (1380783523,), (1380783527,), (1380783530,), (1380783533,), (1380783536,), (1380783539,), (1380783963,), (1380784309,), (1380783962,), (1380784126,), (1380784130,), (1380784134,), (1380784138,), (1380784144,), (1380784148,), (1380784305,), (1380784456,), (1380784457,), (1380784458,), (1380784459,), (1380784461,), (1380784887,), (1380784889,), (1380784891,), (1380784893,), (1380785264,), (1380785383,), (1380785386,), (1380785874,), (1380785877,), (1380785880,), (1380785883,), (1380785886,), (1380785889,), (1380786078,), (1380786079,), (1380786080,), (1380786081,), (1380786082,), (1380786519,), (1380786521,), (1380786523,), (1380786680,), (1380786681,), (1380786682,), (1380786735,), (1380786736,), (1380786737,), (1380786785,), (1380786786,), (1380786787,), (1380786788,), (1380786878,), (1380786879,), (1380786881,), (1380786882,), (1380786883,), (1380786884,), (1380786889,), (1380786890,), (1380786911,), (1380786913,), (1380786915,), (1380786917,), (1380787050,), (1380787051,), (1380787052,), (1380787207,), (1380787208,), (1380787209,), (1380787210,), (1380787211,), (1380787353,), (1380787351,), (1380787352,), (1380787432,), (1380787433,), (1380787434,), (1380787557,), (1380787559,), (1380787561,), (1380787563,), (1380787565,), (1380787567,), (1380787990,), (1380787992,), (1380787994,), (1380787996,), (1380788336,), (1380788337,), (1380788338,), (1380788339,), (1380788409,), (1380788410,), (1380788460,), (1380788461,), (1380788462,), (1380788463,), (1380788464,), (1380788532,), (1380788533,), (1380788534,), (1380788589,), (1380788590,), (1380788591,), (1380788804,), (1380788840,), (1380788841,), (1380788959,), (1380789017,), (1380789018,), (1380789117,), (1380789119,), (1380789120,), (1380789121,), (1380789122,), (1380789223,), (1380789344,), (1380789221,), (1380789222,), (1380789338,), (1380789339,), (1380789340,), (1380789341,), (1380789342,), (1380789414,), (1380789416,), (1380789417,), (1380789418,), (1380789538,), (1380789599,), (1380789600,), (1380789601,), (1380789675,), (1380789679,), (1380789717,), (1380789718,), (1380789817,), (1380789818,), (1380789854,), (1380789855,), (1380789945,), (1380789946,), (1380789980,), (1380789981,), (1380790038,), (1380790039,), (1380790040,), (1380790041,), (1380790042,), (1380790140,), (1380790142,), (1380790144,), (1380795572,), (1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,), (1380797714,), (1380797508,), (1380797509,), (1380797510,), (1380797511,), (1380797699,), (1380797700,), (1380797702,), (1380797703,), (1380797704,), (1380797705,), (1380797712,), (1380797713,), (1380797835,), (1380797861,), (1380797862,), (1380797863,), (1380797908,), (1380797909,), (1380797910,), (1380797911,), (1380797912,), (1380797936,), (1380797937,), (1380797938,), (1380797939,), (1380797940,), (1380797976,), (1380797977,), (1380797978,), (1380798000,), (1380798001,), (1380798002,), (1380798095,), (1380798329,), (1380798330,), (1380798331,), (1380798332,), (1380798453,), (1380798454,), (1380798455,), (1380798456,), (1380798457,), (1380798458,), (1380799176,), (1380799178,), (1380799181,), (1380799441,), (1380799437,), (1380799438,), (1380799439,), (1380799440,), (1380799543,), (1380799545,), (1380799548,), (1380799550,), (1380799552,), (1380799875,), (1380799877,), (1380799879,), (1380799881,), (1380799883,), (1380799885,), (1380799996,), (1380799998,), (1380800000,), (1380800001,), (1380800002,), (1380800049,), (1380800050,), (1380800051,), (1380800052,), (1380800053,), (1380800101,), (1380800102,), (1380800103,), (1380800104,), (1380800105,), (1380800153,), (1380800154,), (1380800155,), (1380800157,), (1380800158,), (1380800159,), (1380800168,), (1380800169,), (1380800171,), (1380800173,), (1380800197,), (1380800198,), (1380800199,), (1380800200,), (1380800201,), (1380800202,), (1380800248,), (1380800249,), (1380800250,), (1380800251,), (1380800252,), (1380800253,), (1380800295,), (1380800307,), (1380800308,), (1380800309,), (1380800459,), (1380800461,), (1380800463,), (1380800465,), (1380801646,), (1380801647,), (1380801648,), (1380801649,), (1380801995,), (1380801996,), (1380801997,), (1380801998,), (1380801999,), (1380802000,), (1380802142,), (1380802145,), (1380802147,), (1380802149,), (1380802314,), (1380802316,), (1380802317,), (1380802318,), (1380802319,), (1380802320,), (1380802524,), (1380802727,), (1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,), (1380804504,), (1380804505,), (1380804506,), (1380804507,), (1380804508,), (1380804510,), (1380805003,), (1380805013,), (1380805014,), (1380805015,), (1380805016,), (1380805017,), (1380804998,), (1380804999,), (1380805000,), (1380805001,), (1380805002,), (1380805142,), (1380805143,), (1380805144,), (1380805145,), (1380805146,), (1380805206,), (1380805207,), (1380805208,), (1380805209,), (1380805210,), (1380805211,), (1380805345,), (1380805347,), (1380805349,), (1380805352,), (1380805354,), (1380805540,), (1380805541,), (1380805542,), (1380805544,), (1380805545,), (1380805679,), (1380805680,), (1380805681,), (1380805682,), (1380805683,), (1380805684,), (1380805733,), (1380805734,), (1380805735,), (1380805736,), (1380805737,), (1380805739,), (1380805745,), (1380805747,), (1380805750,), (1380805751,), (1380805974,), (1380805976,), (1380805978,), (1380805980,), (1380805982,), (1380805984,), (1380806270,), (1380806272,), (1380806274,), (1380806276,), (1380806278,), (1380806455,), (1380806457,), (1380806459,), (1380806461,), (1380806463,), (1380806465,), (1380806623,), (1380806624,), (1380806625,), (1380806626,), (1380806627,), (1380806628,), (1380806904,), (1380806906,), (1380806908,), (1380806910,), (1380806912,), (1380807478,), (1380807482,), (1380807484,), (1380807486,), (1380807982,), (1380807983,), (1380807984,), (1380807985,), (1380808173,), (1380808174,), (1380808346,), (1380808512,), (1380808340,), (1380808341,), (1380808343,), (1380808344,), (1380808345,), (1380808483,), (1380808485,), (1380808486,), (1380808488,), (1380808489,), (1380808490,), (1380808501,), (1380808503,), (1380808506,), (1380808508,), (1380808510,), (1380808683,), (1380808685,), (1380808687,), (1380809040,), (1380809041,), (1380809197,), (1380809198,), (1380809199,), (1380809200,), (1380809201,), (1380809590,), (1380809591,), (1380809592,), (1380809593,), (1380809595,), (1380809905,), (1380809907,), (1380809909,), (1380809911,), (1380809913,), (1380810040,), (1380810041,), (1380810044,), (1380810045,), (1380810046,), (1380810119,), (1380810120,), (1380810121,), (1380810122,), (1380810123,), (1380810124,), (1380810188,), (1380810189,), (1380810190,), (1380810191,), (1380810251,), (1380810252,), (1380810253,), (1380810522,), (1380810523,), (1380810524,), (1380810527,), (1380810528,), (1380810529,), (1380810685,), (1380810888,), (1380810890,), (1380810894,), (1380811464,), (1380811458,), (1380811460,), (1380811462,), (1380812028,), (1380812031,), (1380812034,), (1380812037,), (1380812040,), (1380812043,), (1380812774,), (1380812777,), (1380812780,), (1380813472,), (1380813474,), (1380813477,), (1380813480,), (1380813483,), (1380813486,), (1380813755,), (1380813757,), (1380813759,), (1380813761,), (1380813763,), (1380814237,), (1380814240,), (1380814243,), (1380814246,), (1380814249,), (1380814252,), (1380814743,), (1380814745,), (1380814748,), (1380814750,), (1380814752,), (1380814754,), (1380814766,), (1380814767,), (1380814768,), (1380814769,), (1380815018,), (1380815019,), (1380815020,), (1380815021,), (1380815022,), (1380815023,), (1380815348,), (1380815350,), (1380815352,), (1380815354,), (1380815534,), (1380815536,), (1380815538,), (1380815540,), (1380815618,), (1380815619,), (1380815620,), (1380815621,), (1380815622,), (1380815623,), (1380815761,), (1380815762,), (1380815925,), (1380815926,), (1380815927,), (1380815928,), (1380815929,), (1380815930,), (1380816040,), (1380816041,), (1380816042,), (1380816043,), (1380816160,), (1380816161,), (1380816162,), (1380816163,), (1380816281,), (1380816411,), (1380816276,), (1380816277,), (1380816278,), (1380816279,), (1380816280,), (1380816371,), (1380816372,), (1380816373,), (1380816374,), (1380816375,), (1380816376,), (1380816405,), (1380816408,), (1380816410,), (1380816568,), (1380816574,), (1380816579,), (1380816584,), (1380817435,), (1380817438,), (1380817810,), (1380817812,), (1380817814,), (1380817816,), (1380817818,), (1380817919,), (1380817920,), (1380817921,), (1380817922,), (1380817991,), (1380817992,), (1380817993,), (1380817995,), (1380818130,), (1380818131,), (1380818132,), (1380818133,), (1380818134,), (1380818135,), (1380818270,), (1380818271,), (1380818272,), (1380818273,), (1380818354,), (1380818355,), (1380818356,), (1380818357,), (1380818358,), (1380818359,), (1380818435,), (1380818436,), (1380818437,), (1380818438,), (1380818439,), (1380818645,), (1380818646,), (1380818647,), (1380818648,), (1380818649,), (1380818650,), (1380818656,), (1380818657,), (1380818658,), (1380818659,), (1380818757,), (1380818761,), (1380818766,), (1380818770,), (1380818810,), (1380818811,), (1380818812,), (1380818813,), (1380818814,), (1380818815,), (1380819229,), (1380819232,), (1380819235,), (1380819238,), (1380819524,), (1380819522,), (1380819523,), (1380819672,), (1380819673,), (1380819674,), (1380819675,), (1380819676,), (1380819780,), (1380819781,), (1380819782,), (1380819783,), (1380819784,), (1380819847,), (1380819848,), (1380819849,), (1380819850,), (1380819913,), (1380819914,), (1380819915,), (1380819973,), (1380819974,), (1380820030,), (1380820032,), (1380820033,), (1380820034,), (1380820035,), (1380820036,), (1380820096,), (1380820097,), (1380820098,), (1380820099,), (1380820100,), (1380820275,), (1380820276,), (1380820277,), (1380820278,), (1380820279,), (1380820344,), (1380820345,), (1380820409,), (1380820410,), (1380820411,), (1380820412,), (1380820500,), (1380820501,), (1380820502,), (1380820503,), (1380820767,), (1380820769,), (1380820770,), (1380820893,), (1380820895,), (1380821036,), (1380821087,), (1380821158,), (1380821084,), (1380821085,), (1380821086,), (1380821154,), (1380821155,), (1380821156,), (1380821416,), (1380821417,), (1380821418,), (1380821419,), (1380821468,), (1380821479,), (1380821480,), (1380821481,), (1380821482,), (1380821683,), (1380821849,), (1380821850,), (1380821851,), (1380821852,), (1380821853,), (1380821906,), (1380821907,), (1380821908,), (1380822011,), (1380822012,), (1380822013,), (1380822014,), (1380822015,), (1380822016,), (1380822114,), (1380822115,), (1380822116,), (1380822117,), (1380822149,), (1380822150,), (1380822151,), (1380822153,), (1380822154,), (1380822155,), (1380822161,), (1380822163,), (1380822343,), (1380822345,), (1380822347,), (1380822349,), (1380822878,), (1380822881,), (1380822885,), (1380822888,), (1380823300,), (1380823296,), (1380823298,), (1380823772,), (1380823775,), (1380823778,), (1380823781,), (1380824597,), (1380824600,), (1380824603,), (1380824606,), (1380824610,), (1380825004,), (1380825007,), (1380825009,), (1380825479,), (1380825481,), (1380825483,), (1380826304,), (1380826305,), (1380826306,), (1380826351,), (1380826352,), (1380826445,), (1380841858,), (1380841856,), (1380842525,), (1380842687,), (1380842723,), (1380842724,), (1380842761,), (1380842762,), (1380842763,), (1380842807,), (1380842808,), (1380842809,), (1380842810,), (1380843034,), (1380843035,), (1380843036,), (1380843037,), (1380843038,), (1380843040,), (1380843064,), (1380843067,), (1380843132,), (1380843133,), (1380843134,), (1380843552,), (1380843554,), (1380843556,), (1380843558,), (1380844465,), (1380844458,), (1380844462,), (1380845248,), (1380845250,), (1380845252,), (1380845254,), (1380845256,), (1380846156,), (1380846158,), (1380846160,), (1380846163,), (1380846166,), (1380846431,), (1380846433,), (1380846435,), (1380846437,), (1380846439,), (1380846441,), (1380846705,), (1380846706,), (1380846707,), (1380846708,), (1380846832,), (1380846834,), (1380846836,), (1380846838,), (1380846840,), (1380846842,), (1380847290,), (1380847292,), (1380847295,), (1380847297,), (1380847299,), (1380847301,), (1380847380,), (1380847384,), (1380847388,), (1380847392,), (1380847394,), (1380847709,), (1380847711,), (1380847713,), (1380847715,), (1380847717,), (1380847719,), (1380847992,), (1380847993,), (1380847994,), (1380847995,), (1380847996,), (1380847997,), (1380848069,), (1380848071,), (1380848073,), (1380848527,), (1380848530,), (1380848532,), (1380848534,), (1380848763,), (1380848764,), (1380848765,), (1380848766,), (1380848767,), (1380848972,), (1380848973,), (1380848974,), (1380848975,), (1380849044,), (1380849045,), (1380849046,), (1380849094,), (1380849096,), (1380849098,), (1380849100,), (1380849101,), (1380849143,), (1380849238,), (1380849141,), (1380849142,), (1380849225,), (1380849226,), (1380849227,), (1380849228,), (1380849230,), (1380849231,), (1380849236,), (1380849237,), (1380849418,), (1380849419,), (1380849420,), (1380849421,), (1380849422,), (1380849423,), (1380849517,), (1380849518,), (1380849519,), (1380849520,), (1380849720,), (1380849721,), (1380849722,), (1380849723,), (1380849724,), (1380849725,), (1380850040,), (1380850042,), (1380850043,), (1380850100,), (1380850101,), (1380850102,), (1380850103,), (1380850104,), (1380850267,), (1380850441,), (1380850601,), (1380850602,), (1380850603,), (1380850604,), (1380850673,), (1380850674,), (1380850675,), (1380850676,), (1380850731,), (1380850726,), (1380850727,), (1380850728,), (1380850729,), (1380850730,), (1380850886,), (1380850888,), (1380850890,), (1380850892,), (1380850992,), (1380850993,), (1380850994,), (1380850995,), (1380851051,), (1380851052,), (1380851053,), (1380851054,), (1380851055,), (1380851104,), (1380851105,), (1380851106,), (1380851107,), (1380851108,), (1380851158,), (1380851168,), (1380851169,), (1380851171,), (1380851172,), (1380851235,), (1380851236,), (1380851237,), (1380851303,), (1380851304,), (1380851347,), (1380851401,), (1380851402,), (1380851403,), (1380851475,), (1380851476,), (1380851477,), (1380851478,), (1380851479,), (1380851480,), (1380851527,), (1380851528,), (1380851529,), (1380851594,), (1380851595,), (1380851596,), (1380851597,), (1380851598,), (1380851599,), (1380851655,), (1380851656,), (1380851657,), (1380851658,), (1380851695,), (1380851707,), (1380851708,), (1380851709,), (1380851710,), (1380851712,), (1380851777,), (1380851843,), (1380851774,), (1380851775,), (1380851776,), (1380851823,), (1380851824,), (1380851825,), (1380851826,), (1380851828,), (1380851829,), (1380851838,), (1380851839,), (1380851841,), (1380851899,), (1380851900,), (1380851901,), (1380851902,), (1380851947,), (1380851948,), (1380851949,), (1380852075,), (1380852076,), (1380852135,), (1380852136,), (1380852137,), (1380852138,), (1380852178,), (1380852179,), (1380852180,), (1380852181,), (1380852182,), (1380852183,), (1380852232,), (1380852242,), (1380852243,), (1380852244,), (1380852292,), (1380852293,), (1380852294,), (1380852296,), (1380852342,), (1380852343,), (1380852344,), (1380852388,), (1380852389,), (1380852390,), (1380852391,), (1380852392,), (1380852393,), (1380852398,), (1380852399,), (1380852455,), (1380852456,), (1380852457,), (1380852458,), (1380852459,), (1380852675,), (1380852677,), (1380852679,), (1380853291,), (1380853285,), (1380853288,), (1380854114,), (1380854117,), (1380854120,), (1380854123,), (1380854126,), (1380854426,), (1380854429,), (1380854433,), (1380854436,), (1380854439,), (1380854442,), (1380855178,), (1380855180,), (1380855182,), (1380855184,), (1380855186,), (1380855440,), (1380855444,), (1380855447,), (1380855450,), (1380855453,), (1380855456,), (1380855754,), (1380855755,), (1380855756,), (1380855757,), (1380855794,), (1380855797,), (1380855798,), (1380855799,), (1380855800,), (1380855801,), (1380855828,), (1380855829,), (1380855831,), (1380855834,), (1380856006,), (1380856007,), (1380856008,), (1380856009,), (1380856109,), (1380856221,), (1380856222,), (1380856223,), (1380856224,), (1380856268,), (1380856269,), (1380856270,), (1380856271,), (1380856272,), (1380856349,), (1380856359,), (1380857383,), (1380857380,), (1380857483,), (1380857484,), (1380857537,), (1380857538,), (1380857539,), (1380857540,), (1380857589,), (1380857590,), (1380857591,), (1380857592,), (1380857593,), (1380857594,), (1380857635,), (1380857645,), (1380857647,), (1380857648,), (1380857688,), (1380857689,), (1380857690,), (1380857691,), (1380857771,), (1380857772,), (1380857773,), (1380857774,), (1380857775,), (1380857875,), (1380857876,), (1380857877,), (1380857878,), (1380857879,), (1380857924,), (1380857925,), (1380857926,), (1380857927,), (1380857928,), (1380857929,), (1380857968,), (1380857969,), (1380857970,), (1380857972,), (1380857973,), (1380857974,), (1380857983,), (1380857985,), (1380857987,), (1380857989,), (1380857991,), (1380858024,), (1380858025,), (1380858026,), (1380858027,), (1380858028,), (1380858029,), (1380858068,), (1380858069,), (1380858070,), (1380858071,), (1380858072,), (1380858176,), (1380858177,), (1380858178,), (1380858179,), (1380858334,), (1380858331,), (1380858332,), (1380858333,), (1380858442,), (1380858444,), (1380858446,), (1380858448,), (1380858450,), (1380858684,), (1380858686,), (1380858688,), (1380858690,), (1380858692,), (1380858694,), (1380859005,), (1380859255,), (1380859257,), (1380859259,), (1380859261,), (1380859415,), (1380859417,), (1380859419,), (1380859421,), (1380859423,), (1380859554,), (1380859555,), (1380859556,), (1380859557,), (1380859559,), (1380859560,), (1380859568,), (1380859569,), (1380859570,), (1380859571,), (1380859573,), (1380859611,), (1380859612,), (1380859614,), (1380859615,), (1380859668,), (1380859669,), (1380859670,), (1380859671,), (1380859737,), (1380859738,), (1380859739,), (1380859740,), (1380859741,), (1380859742,), (1380859873,), (1380859875,), (1380859877,), (1380859879,), (1380859943,), (1380859944,), (1380859945,), (1380859946,), (1380859947,), (1380859948,), (1380860029,), (1380860031,), (1380860033,), (1380860035,), (1380860090,), (1380860091,), (1380860092,), (1380860188,), (1380860189,), (1380860190,), (1380860191,), (1380860192,), (1380860384,), (1380860567,), (1380860376,), (1380860378,), (1380860380,), (1380860382,), (1380860528,), (1380860529,), (1380860530,), (1380860531,), (1380860532,), (1380860533,), (1380860560,), (1380860562,), (1380860565,), (1380860699,), (1380860700,), (1380860701,), (1380860702,), (1380860881,), (1380860883,), (1380861121,), (1380861123,), (1380861124,), (1380861125,), (1380861126,), (1380861201,), (1380861202,), (1380861203,), (1380861204,), (1380861205,), (1380861206,), (1380861270,), (1380861272,), (1380861274,), (1380861275,), (1380861323,), (1380861324,), (1380861325,), (1380861326,), (1380861327,), (1380861380,), (1380861381,), (1380861382,), (1380861383,), (1380861430,), (1380861431,), (1380861498,), (1380861499,), (1380861500,), (1380861501,), (1380861541,), (1380861542,), (1380861543,), (1380861544,), (1380861545,), (1380861546,), (1380861551,), (1380861552,), (1380861553,), (1380861594,), (1380861595,), (1380861596,), (1380862294,), (1380862296,), (1380862297,), (1380862316,), (1380862318,), (1380862319,), (1380862873,), (1380862865,), (1380862869,), (1380862871,), (1380863403,), (1380863406,), (1380863409,), (1380863412,), (1380864195,), (1380864198,), (1380864201,), (1380864204,), (1380864208,), (1380864631,), (1380864633,), (1380864635,), (1380864637,), (1380865032,), (1380865034,), (1380865036,), (1380865038,), (1380865040,), (1380865042,), (1380865574,), (1380865578,), (1380865582,), (1380865585,), (1380865966,), (1380865967,), (1380865969,), (1380865970,), (1380865971,), (1380865972,), (1380865979,), (1380865981,), (1380865982,), (1380866019,), (1380866020,), (1380866021,), (1380866022,), (1380866070,), (1380866071,), (1380866072,), (1380866073,), (1380866139,), (1380866140,), (1380866313,), (1380866314,), (1380866315,), (1380866316,), (1380866317,), (1380866406,), (1380866408,), (1380866409,), (1380866410,), (1380866411,), (1380866412,), (1380866501,), (1380866502,), (1380866503,), (1380866562,), (1380866563,), (1380866564,), (1380866565,), (1380866566,), (1380866643,), (1380866644,), (1380866645,), (1380866646,), (1380866647,), (1380866704,), (1380866780,), (1380866702,), (1380866703,), (1380866769,), (1380866770,), (1380866771,), (1380866772,), (1380866773,), (1380866774,), (1380866825,), (1380866826,), (1380866827,), (1380866828,), (1380866829,), (1380866872,), (1380866873,), (1380866874,), (1380866876,), (1380866877,), (1380866878,), (1380866933,), (1380866934,), (1380866935,), (1380867006,), (1380867007,), (1380867008,), (1380867009,), (1380867010,), (1380867073,), (1380867074,), (1380867075,), (1380867076,), (1380867077,), (1380867078,), (1380867118,), (1380867119,), (1380867120,), (1380867121,), (1380867122,), (1380867123,), (1380867161,), (1380867162,), (1380867163,), (1380867164,), (1380867211,), (1380867212,), (1380867213,), (1380867214,), (1380867335,), (1380867336,), (1380867337,), (1380867338,), (1380867339,), (1380867543,), (1380867544,), (1380867545,), (1380867546,), (1380867547,), (1380867548,), (1380867552,), (1380867553,), (1380867607,), (1380867608,), (1380867609,), (1380867610,), (1380867661,), (1380867662,), (1380867663,), (1380867716,), (1380867717,), (1380867796,), (1380867873,), (1380867874,), (1380867875,), (1380867876,), (1380867928,), (1380867929,), (1380867930,), (1380867983,), (1380867985,), (1380867987,), (1380868268,), (1380868270,), (1380868272,), (1380868274,), (1380868276,), (1380868278,), (1380868449,), (1380868450,), (1380868451,), (1380868452,), (1380868453,), (1380868454,), (1380868547,), (1380868548,), (1380868549,), (1380868550,), (1380868552,), (1380868553,), (1380868560,), (1380868561,), (1380868563,), (1380868682,), (1380868684,), (1380868686,), (1380868688,), (1380868690,), (1380868692,), (1380868820,), (1380868822,), (1380868986,), (1380868987,), (1380868988,), (1380868989,), (1380868990,), (1380869407,), (1380869409,), (1380869411,), (1380869713,), (1380869715,), (1380869717,), (1380869719,), (1380869721,), (1380870143,), (1380870147,), (1380870151,), (1380870155,), (1380870159,), (1380870163,), (1380871057,), (1380871059,), (1380871061,), (1380871064,), (1380871065,), (1380871068,), (1380871348,), (1380871888,), (1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02092025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445193]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] map_info['map_portfolio_photo'] : {26445193: [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682, 1380872294, 1380872292, 1380872206, 1380872205, 1380872204, 1380872202, 1380872151, 1380872150, 1380872149, 1380871886, 1380871884, 1380871881, 1380871792, 1380871790, 1380871786, 1380871784, 1380871782, 1380871780, 1380871347, 1380871345, 1380871343]} final : True mtd_id 4302 list_pids : [1380872931, 1380872929, 1380872927, 1380872925, 1380872923, 1380872690, 1380872685, 1380872682] Looping around the photos to save general results len do output : 1 /26445193Didn'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, '3652703') ('4302', '26445193', '1380872931', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703') ('4302', None, None, None, None, None, None, None, '3652703') ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26445193', 'None', None, None, None, None, '3652703'), ('4302', '26445193', '1380872931', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872929', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872927', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872925', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872923', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872690', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872685', None, None, None, None, None, '3652703'), ('4302', '26445193', '1380872682', None, None, None, None, None, '3652703')] time used for this insertion : 0.012889623641967773 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.031702756881714 time spend to save output : 0.013080596923828125 total time spend for step 5 : 3.044783353805542 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 (3652703) 2.09user 2.41system 0:07.69elapsed 58%CPU (0avgtext+0avgdata 158964maxresident)k 1376inputs+6088outputs (13major+64424minor)pagefaults 0swaps