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 : 4157538 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 (4070044) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4070044) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676760 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4070044'] with mtr_portfolio_ids : ['28676760'] and first list_photo_ids : [] new path : /proc/4157538/ Name: python3 Umask: 0002 State: R (running) Tgid: 4157538 Ngid: 0 Pid: 4157538 PPid: 4157537 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4157538 NSpid: 4157538 NSpgid: 4155965 NSsid: 4155965 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98304 kB VmRSS: 98304 kB RssAnon: 59904 kB RssFile: 38400 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 57 nonvoluntary_ctxt_switches: 79 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4157538', 'Ngid': '0', 'Pid': '4157538', 'PPid': '4157537', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4157538', 'NSpid': '4157538', 'NSpgid': '4155965', 'NSsid': '4155965', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98304 kB', 'VmRSS': '98304 kB', 'RssAnon': '59904 kB', 'RssFile': '38400 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '57', 'nonvoluntary_ctxt_switches': '79'} ('datou_batch_current', '4157538', '1106908', '0', '1106884', '865636', '98304', b'', 'marlene', '4070044') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28676760) 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 (4070044 ) ) 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 (28676760) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395098317, 'portfolio_id': 28676760}, {'photo_id': 1395097552, 'portfolio_id': 28676760}, {'photo_id': 1395097325, 'portfolio_id': 28676760}, {'photo_id': 1395097301, 'portfolio_id': 28676760}] map_portfolio_id_photo_id: {28676760: [1395098317, 1395097552, 1395097325, 1395097301]} ##### 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.015121221542358398 #### 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 Nov 18 21:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28676760) 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 : 28676760 get user id for portfolio 28676760 get sub ptf for main ptf 28676760, type 3726 and hashtags ['autre_refus', 'papier', 'cartonnette', 'flou', 'environnement', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'kraft', 'mal_croppe', 'metal', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28676760 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','cartonnette','flou','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28676760 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','cartonnette','flou','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28676760, 'sub_port_id': 28676810, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447104, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'kraft': {'main_port_id': 28676760, 'sub_port_id': 28676811, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447105, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28676760, 'sub_port_id': 28676812, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447106, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'cartonnette': {'main_port_id': 28676760, 'sub_port_id': 28676813, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447107, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'Carton_brun': {'main_port_id': 28676760, 'sub_port_id': 28676814, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447108, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'flou': {'main_port_id': 28676760, 'sub_port_id': 28676815, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447109, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'mal_croppe': {'main_port_id': 28676760, 'sub_port_id': 28676816, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447110, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'papier': {'main_port_id': 28676760, 'sub_port_id': 28676817, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447111, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'plastique': {'main_port_id': 28676760, 'sub_port_id': 28676818, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447112, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'environnement': {'main_port_id': 28676760, 'sub_port_id': 28676819, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447113, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'autre_refus': {'main_port_id': 28676760, 'sub_port_id': 28676820, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447114, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}, 'metal': {'main_port_id': 28676760, 'sub_port_id': 28676821, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447115, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28676810 , 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=28676760 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 (28676810) result : ((1395098071,), (1395098072,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676811 , 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=28676760 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 (28676811) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676812 , 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=28676760 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 (28676812) result : ((1395098068,), (1395098069,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676813 , 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=28676760 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 (28676813) result : ((1395098074,), (1395098075,), (1395098076,), (1395098077,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676814 , 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=28676760 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 (28676814) result : ((1395098080,), (1395098081,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676815 , 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=28676760 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 (28676815) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676816 , 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=28676760 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 (28676816) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676817 , 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=28676760 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 (28676817) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676818 , 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=28676760 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 (28676818) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676819 , 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=28676760 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 (28676819) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676820 , 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=28676760 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 (28676820) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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 28676821 , 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=28676760 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 (28676821) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28676760) result : ((1395097301,), (1395097325,), (1395097552,), (1395098317,)) 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`=28676760 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','cartonnette','flou','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28676760 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','cartonnette','flou','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28676760, 'sub_port_id': 28676823, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447116, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'kraft': {'main_port_id': 28676760, 'sub_port_id': 28676824, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447117, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 28676760, 'sub_port_id': 28676825, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447118, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'cartonnette': {'main_port_id': 28676760, 'sub_port_id': 28676826, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447119, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'Carton_brun': {'main_port_id': 28676760, 'sub_port_id': 28676827, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447120, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'flou': {'main_port_id': 28676760, 'sub_port_id': 28676828, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447121, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'mal_croppe': {'main_port_id': 28676760, 'sub_port_id': 28676829, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447122, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'papier': {'main_port_id': 28676760, 'sub_port_id': 28676830, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447123, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'plastique': {'main_port_id': 28676760, 'sub_port_id': 28676831, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447124, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'environnement': {'main_port_id': 28676760, 'sub_port_id': 28676832, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447125, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'autre_refus': {'main_port_id': 28676760, 'sub_port_id': 28676833, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447126, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}, 'metal': {'main_port_id': 28676760, 'sub_port_id': 28676834, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19447127, 'last_updated_at': datetime.datetime(2025, 11, 18, 21, 7, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 21, 7, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 21, 7, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676827,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676814 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676828,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676815 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676816 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676830,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676817 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676831,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676818 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676832,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676819 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28676834,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28676821 lien utilise dans velours : https://marlene.fotonower.com/velours/28676823,28676824,28676825,28676826,28676827,28676828,28676829,28676830,28676831,28676832,28676833,28676834?tags=Carton_gris,kraft,Teint_Dans_La_Masse,cartonnette,Carton_brun,flou,mal_croppe,papier,plastique,environnement,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28676760]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395098317] map_info['map_portfolio_photo'] : {28676760: [1395098317, 1395097552, 1395097325, 1395097301]} final : False mtd_id 4302 list_pids : [1395098317] Looping around the photos to save general results len do output : 1 /28676760. 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, '4070044') ('4302', '28676760', '1395098317', None, None, None, None, None, '4070044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '28676760', "{'Carton_gris': 28676810, 'kraft': 28676811, 'Teint_Dans_La_Masse': 28676812, 'cartonnette': 28676813, 'Carton_brun': 28676814, 'flou': 28676815, 'mal_croppe': 28676816, 'papier': 28676817, 'plastique': 28676818, 'environnement': 28676819, 'autre_refus': 28676820, 'metal': 28676821}", None, None, None, None, '4070044'), ('4302', '28676760', '1395098317', None, None, None, None, None, '4070044')] time used for this insertion : 0.011667013168334961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5618414878845215 time spend to save output : 0.01185154914855957 total time spend for step 1 : 1.573693037033081 step2:final Tue Nov 18 21:14: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 (28676760) 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 28676760 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395097301,1395097325,1395098317,1395097552); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28676760]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395098317: ('0.11654191142040156',)} new output for save of step final : {1395098317: ('0.11654191142040156',)} [1395098317] map_info['map_portfolio_photo'] : {28676760: [1395098317, 1395097552, 1395097325, 1395097301]} final : False mtd_id 4302 list_pids : [1395098317] Looping around the photos to save general results len do output : 1 /1395098317.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, '4070044') ('4302', '28676760', '1395098317', None, None, None, None, None, '4070044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '28676760', '1395098317', '0.11654191142040156', None, None, None, None, '4070044')] time used for this insertion : 0.012161970138549805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06295394897460938 time spend to save output : 0.012367725372314453 total time spend for step 2 : 0.07532167434692383 step3:velours_tree Tue Nov 18 21:14: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 : {28676760: [{'Carton_gris': 28676810, 'kraft': 28676811, 'Teint_Dans_La_Masse': 28676812, 'cartonnette': 28676813, 'Carton_brun': 28676814, 'flou': 28676815, 'mal_croppe': 28676816, 'papier': 28676817, 'plastique': 28676818, 'environnement': 28676819, 'autre_refus': 28676820, 'metal': 28676821}]} input_args_next_step : {28676760: ()} output_args : {28676760: [{'Carton_gris': 28676810, 'kraft': 28676811, 'Teint_Dans_La_Masse': 28676812, 'cartonnette': 28676813, 'Carton_brun': 28676814, 'flou': 28676815, 'mal_croppe': 28676816, 'papier': 28676817, 'plastique': 28676818, 'environnement': 28676819, 'autre_refus': 28676820, 'metal': 28676821}]} args : 28676760 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': 28676810, 'kraft': 28676811, 'Teint_Dans_La_Masse': 28676812, 'cartonnette': 28676813, 'Carton_brun': 28676814, 'flou': 28676815, 'mal_croppe': 28676816, 'papier': 28676817, 'plastique': 28676818, 'environnement': 28676819, 'autre_refus': 28676820, 'metal': 28676821},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28676760) 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([28676760]) 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.3187251091003418 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.31876611709594727 step4:send_mail_cod Tue Nov 18 21:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395098317: ('0.11654191142040156',)} input_args_next_step : {1395098317: ()} output_args : {1395098317: ('0.11654191142040156',)} args : 1395098317 depend.output_id : 0 complete output_args for input 3 : {28676760: [{'Carton_gris': 28676810, 'kraft': 28676811, 'Teint_Dans_La_Masse': 28676812, 'cartonnette': 28676813, 'Carton_brun': 28676814, 'flou': 28676815, 'mal_croppe': 28676816, 'papier': 28676817, 'plastique': 28676818, 'environnement': 28676819, 'autre_refus': 28676820, 'metal': 28676821}]} input_args_next_step : {1395098317: ('0.11654191142040156',), 28676760: ()} output_args : {28676760: [{'Carton_gris': 28676810, 'kraft': 28676811, 'Teint_Dans_La_Masse': 28676812, 'cartonnette': 28676813, 'Carton_brun': 28676814, 'flou': 28676815, 'mal_croppe': 28676816, 'papier': 28676817, 'plastique': 28676818, 'environnement': 28676819, 'autre_refus': 28676820, 'metal': 28676821}]} args : 28676760 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 :2, first value : ('0.11654191142040156',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28676760) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1395098317) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395098317 download finish for photo 1395098317 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette286768111763496899/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P28676760_18-11-2025_21_14_59.pdf 28676811 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286768111763496899 28676813 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395098074: '1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974184_0.png', 1395098075: '1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974191_0.png', 1395098076: '1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974258_0.png', 1395098077: '1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/986a6e9eebde18947d65b4bf20bfe2f3_78190691.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/053b81a3bdf50c9e2bff6f2757268392_13985412.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/986a6e9eebde18947d65b4bf20bfe2f3_74743595.png change filename to text .imagette286768131763496899/ imagette286768131763496899/1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974258_0.png.png imagette286768131763496899/1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974265_0.png.png imagette286768131763496899/1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974191_0.png.png imagette286768131763496899/1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974184_0.png.png imagette286768151763496899/ imagette286768161763496899/ imagette286768181763496899/ imagette286768201763496899/ imagette286768211763496899/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/053b81a3bdf50c9e2bff6f2757268392_32047732.png imagette286768131763496899 28676815 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676815 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286768151763496899 28676816 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286768161763496899 28676818 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676818 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286768181763496899 28676820 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676820 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286768201763496899 28676821 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676821 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286768211763496899 28676810 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395098071: '1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974185_0.png', 1395098072: '1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974259_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/b979fd21459568ec75e1b251d6c90dc6_63754868.png change filename to text .imagette286768101763496899/ imagette286768101763496899/1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974259_0.png.png imagette286768101763496899/1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974185_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/b979fd21459568ec75e1b251d6c90dc6_28654651.png imagette286768101763496899 28676812 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395098068: '1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974192_0.png', 1395098069: '1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/ea2706ec0f3233d12b6146996bd87c24_72173165.png change filename to text .imagette286768121763496899/ imagette286768121763496899/1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974192_0.png.png imagette286768121763496899/1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974266_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/ea2706ec0f3233d12b6146996bd87c24_67740168.png imagette286768121763496899 28676814 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395098080: '1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974187_0.png', 1395098081: '1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974261_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/f194e8cceb80e4de73facc20c67b551c_44444637.png change filename to text .imagette286768141763496900/ imagette286768141763496900/1763496546_2024285_1395097325_af6f6c08c6fea6d44b0a7d6be2f56bba_rle_crop_4037974187_0.png.png imagette286768141763496900/1763496546_2024285_1395097301_6e8a58667270a38b81c126e8723df83a_rle_crop_4037974261_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/f194e8cceb80e4de73facc20c67b551c_83373211.png imagette286768141763496900 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28676760 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28676823,28676824,28676825,28676826,28676827,28676828,28676829,28676830,28676831,28676832,28676833,28676834?tags=Carton_gris,kraft,Teint_Dans_La_Masse,cartonnette,Carton_brun,flou,mal_croppe,papier,plastique,environnement,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1395098317] : ('0.11654191142040156',) no score found for photo 1395098317 We are sending mail with results at report@fotonower.com refus_total : 0.11654191142040156 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676760 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_P28676760_18-11-2025_21_14_59.pdf results_Auto_P28676760_18-11-2025_21_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676760_18-11-2025_21_14_59.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','28676760','results_Auto_P28676760_18-11-2025_21_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676760_18-11-2025_21_14_59.pdf','pdf','','0.06','0.11654191142040156') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28676760]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395098317] map_info['map_portfolio_photo'] : {28676760: [1395098317, 1395097552, 1395097325, 1395097301]} final : False mtd_id 4302 list_pids : [1395098317] 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, '4070044') ('4302', '28676760', '1395098317', None, None, None, None, None, '4070044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '28676760', '1395098317', None, None, None, None, None, '4070044')] time used for this insertion : 0.011457204818725586 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.368757724761963 time spend to save output : 0.011593818664550781 total time spend for step 4 : 2.3803515434265137 step5:split_time_score Tue Nov 18 21:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28676760'] 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 : [('28676760',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28676760) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395098317: {'path': 'temp/1763496899_4157538_1395098317_4c749b9513bd544f4427ac2235318b95.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 = 28676760; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28676760 group by h (('21', 4),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28676760 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 (28676760) 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 (28676760) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18112025 28676760 Nombre de photos uploadées : 4 / 23040 (0%) 18112025 28676760 Nombre de photos taguées (types de déchets): 0 / 4 (0%) 18112025 28676760 Nombre de photos taguées (volume) : 0 / 4 (0%) [{'photo_id': 1395097301, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/6e8a58667270a38b81c126e8723df83a.jpg', 'username': None, 'uploaded_at': 1763496247, 'text': 'image_18112025_21_03_44_9125.jpg'}, {'photo_id': 1395097325, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/af6f6c08c6fea6d44b0a7d6be2f56bba.jpg', 'username': None, 'uploaded_at': 1763496312, 'text': 'image_18112025_21_03_44_9125.jpg'}, {'photo_id': 1395098317, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/4c749b9513bd544f4427ac2235318b95.jpg', 'username': None, 'uploaded_at': 1763496788, 'text': 'image_18112025_21_03_54_10142.jpg'}, {'photo_id': 1395097552, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/44caf900a627ffb1d1a30dc5bdfc86c5.jpg', 'username': None, 'uploaded_at': 1763496367, 'text': 'image_18112025_21_05_04_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???? elapsed_time : fill_and_build_computed_from_old_data 0.00026106834411621094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28676760, '2025-11-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2598648,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2047574520111084 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= 2598648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28631138, 'dashboard_result_id': 17453406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28631823, 'dashboard_result_id': 17453407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28632284, 'dashboard_result_id': 17453408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28632886, 'dashboard_result_id': 17453409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28634373, 'dashboard_result_id': 17453410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28635010, 'dashboard_result_id': 17453411, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28635491, 'dashboard_result_id': 17453412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28636035, 'dashboard_result_id': 17453413, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28636740, 'dashboard_result_id': 17453414, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28637017, 'dashboard_result_id': 17453415, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28637392, 'dashboard_result_id': 17453416, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28638080, 'dashboard_result_id': 17453417, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28638689, 'dashboard_result_id': 17453418, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28639147, 'dashboard_result_id': 17453419, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28639591, 'dashboard_result_id': 17453420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28641020, 'dashboard_result_id': 17453421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28641206, 'dashboard_result_id': 17453422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28641579, 'dashboard_result_id': 17453423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28641934, 'dashboard_result_id': 17453424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28642364, 'dashboard_result_id': 17453425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28642968, 'dashboard_result_id': 17453426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28643374, 'dashboard_result_id': 17453427, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28643779, 'dashboard_result_id': 17453428, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28644283, 'dashboard_result_id': 17453429, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28645127, 'dashboard_result_id': 17453430, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28645778, 'dashboard_result_id': 17453431, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28646472, 'dashboard_result_id': 17453432, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28647027, 'dashboard_result_id': 17453433, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28647656, 'dashboard_result_id': 17453434, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28648493, 'dashboard_result_id': 17453435, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28649305, 'dashboard_result_id': 17453436, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28650959, 'dashboard_result_id': 17453437, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28651460, 'dashboard_result_id': 17453438, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28651808, 'dashboard_result_id': 17453439, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28652248, 'dashboard_result_id': 17453440, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28652749, 'dashboard_result_id': 17453441, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28653464, 'dashboard_result_id': 17453442, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28653849, 'dashboard_result_id': 17453443, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28654500, 'dashboard_result_id': 17453444, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28655193, 'dashboard_result_id': 17453445, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28655671, 'dashboard_result_id': 17453446, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28656138, 'dashboard_result_id': 17453447, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28658711, 'dashboard_result_id': 17453448, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28659160, 'dashboard_result_id': 17453449, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28659722, 'dashboard_result_id': 17453450, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659722_18-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28659755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659762, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28660259, 'dashboard_result_id': 17453451, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28660259_18-11-2025_14_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28660293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28660294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28660295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28660296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28660297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28660298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28660299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28660300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28660301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28660302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28660304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28660305, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28661085, 'dashboard_result_id': 17453452, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661085_18-11-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28661092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661103, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28661468, 'dashboard_result_id': 17453453, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661468_18-11-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28661528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661534, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28662141, 'dashboard_result_id': 17453454, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662141_18-11-2025_15_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28662241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662243, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28662798, 'dashboard_result_id': 17453455, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662798_18-11-2025_15_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28662816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662828, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28663472, 'dashboard_result_id': 17453456, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663472_18-11-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28663474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28663475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28663476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28663477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28663478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28663481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28663483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28663484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28663485, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28663984, 'dashboard_result_id': 17453457, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663984_18-11-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664008, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28664534, 'dashboard_result_id': 17453458, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28664534_18-11-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28664586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28664593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28664594, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28665161, 'dashboard_result_id': 17453459, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665161_18-11-2025_16_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665203, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28665818, 'dashboard_result_id': 17453460, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665818_18-11-2025_17_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665860, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28666502, 'dashboard_result_id': 17453461, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_19_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28666524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28666525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28666526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28666527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28666528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28666529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28666530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28666531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28666532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28666533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28666534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28666535, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28667333, 'dashboard_result_id': 17453462, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28667333_18-11-2025_17_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28667365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28667366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28667367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28667368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28667369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28667370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28667371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28667372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28667373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28667374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28667375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28667376, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28669039, 'dashboard_result_id': 17453463, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669039_18-11-2025_18_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28669045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28669049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28669053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669056, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28669636, 'dashboard_result_id': 17453464, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669636_18-11-2025_18_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28669653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28669655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28669656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669663, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28669946, 'dashboard_result_id': 17453465, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669946_18-11-2025_18_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28669991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28670000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28670001, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28670527, 'dashboard_result_id': 17453466, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28670527_18-11-2025_19_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28670528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28670529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28670530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28670531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28670532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28670533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28670534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28670535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28670536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28670537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28670538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28670539, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28671006, 'dashboard_result_id': 17453467, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671006_18-11-2025_19_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28671026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28671027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28671028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28671029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28671030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28671031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28671032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28671033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28671034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28671035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28671036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28671037, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28671566, 'dashboard_result_id': 17453468, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671566_18-11-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28671600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28671601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28671602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28671603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28671604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28671605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28671606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28671607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28671609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28671610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28671611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28671612, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28672057, 'dashboard_result_id': 17453469, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672057_18-11-2025_19_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28672069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28672070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28672071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28672072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28672073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28672074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28672075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28672076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28672077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28672078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28672079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28672080, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28672738, 'dashboard_result_id': 17453470, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672738_18-11-2025_20_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28672755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28672756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28672757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28672758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28672759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28672760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28672761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28672762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28672763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28672764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28672765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28672766, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28673555, 'dashboard_result_id': 17453471, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28673555_18-11-2025_20_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28673574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28673575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28673576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28673577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28673578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28673579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28673580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28673581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28673582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28673583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28673584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28673585, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28674277, 'dashboard_result_id': 17453472, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28674277_18-11-2025_20_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28674296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28674297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28674298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28674299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28674300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28674301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28674302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28674303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28674304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28674305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28674306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28674307, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28675030, 'dashboard_result_id': 17453473, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28675030_18-11-2025_21_06_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28675055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28675056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28675057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28675058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28675059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28675060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28675061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28675062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28675063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28675064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28675065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28675066, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28676246, 'dashboard_result_id': 17453474, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676246_18-11-2025_20_57_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28676304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28676305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28676306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28676307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28676308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28676309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28676310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28676311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28676312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28676313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28676314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28676315, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2612693, 'mtr_portfolio_id': 28676760, 'dashboard_result_id': 17453475, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676760_18-11-2025_21_07_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28676810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28676811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28676812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28676813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28676814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28676815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28676816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28676817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28676818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28676819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28676820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28676821, '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 = 28631138 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063453, 'mtr_portfolio_id': 28631138, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 30), 'result': '0.027044003199104157', 'result_long': None, 'result_double': None}] Qualite : 0.027044003199104157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631138 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}" where mtr_portfolio_id = 28631138 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28631138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453406, 0.027044003199104157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28631823 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063454, 'mtr_portfolio_id': 28631823, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 58), 'result': '0.05851027303634385', 'result_long': None, 'result_double': None}] Qualite : 0.05851027303634385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631823 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}" where mtr_portfolio_id = 28631823 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28631823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453407, 0.05851027303634385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28632284 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063455, 'mtr_portfolio_id': 28632284, 'created_at': datetime.datetime(2025, 11, 18, 6, 14, 29), 'result': '0.050061643709369275', 'result_long': None, 'result_double': None}] Qualite : 0.050061643709369275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632284 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}" where mtr_portfolio_id = 28632284 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28632284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453408, 0.050061643709369275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28632886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063456, 'mtr_portfolio_id': 28632886, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 28), 'result': '0.0354841780332806', 'result_long': None, 'result_double': None}] Qualite : 0.0354841780332806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}" where mtr_portfolio_id = 28632886 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28632886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453409, 0.0354841780332806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28634373 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063457, 'mtr_portfolio_id': 28634373, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 59), 'result': '0.043975554337369126', 'result_long': None, 'result_double': None}] Qualite : 0.043975554337369126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28634373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28634373 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}" where mtr_portfolio_id = 28634373 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28634373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453410, 0.043975554337369126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28635010 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063458, 'mtr_portfolio_id': 28635010, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 8), 'result': '0.03015534667359816', 'result_long': None, 'result_double': None}] Qualite : 0.03015534667359816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}" where mtr_portfolio_id = 28635010 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28635010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453411, 0.03015534667359816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28635491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063459, 'mtr_portfolio_id': 28635491, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 30), 'result': '0.04740794187181342', 'result_long': None, 'result_double': None}] Qualite : 0.04740794187181342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}" where mtr_portfolio_id = 28635491 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28635491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453412, 0.04740794187181342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28636035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063460, 'mtr_portfolio_id': 28636035, 'created_at': datetime.datetime(2025, 11, 18, 6, 17, 29), 'result': '0.0323353417388423', 'result_long': None, 'result_double': None}] Qualite : 0.0323353417388423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}" where mtr_portfolio_id = 28636035 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28636035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453413, 0.0323353417388423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28636740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063461, 'mtr_portfolio_id': 28636740, 'created_at': datetime.datetime(2025, 11, 18, 6, 18), 'result': '0.0684027049911958', 'result_long': None, 'result_double': None}] Qualite : 0.0684027049911958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}" where mtr_portfolio_id = 28636740 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28636740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453414, 0.0684027049911958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28637017 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063462, 'mtr_portfolio_id': 28637017, 'created_at': datetime.datetime(2025, 11, 18, 6, 18, 29), 'result': '0.0537666861023958', 'result_long': None, 'result_double': None}] Qualite : 0.0537666861023958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637017 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}" where mtr_portfolio_id = 28637017 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28637017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453415, 0.0537666861023958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28637392 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063463, 'mtr_portfolio_id': 28637392, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 58), 'result': '0.05145964967620445', 'result_long': None, 'result_double': None}] Qualite : 0.05145964967620445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637392 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}" where mtr_portfolio_id = 28637392 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28637392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453416, 0.05145964967620445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28638080 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063464, 'mtr_portfolio_id': 28638080, 'created_at': datetime.datetime(2025, 11, 18, 6, 20, 29), 'result': '0.03214392118285005', 'result_long': None, 'result_double': None}] Qualite : 0.03214392118285005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638080 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}" where mtr_portfolio_id = 28638080 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28638080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453417, 0.03214392118285005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28638689 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063465, 'mtr_portfolio_id': 28638689, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 8), 'result': '0.053369357786094584', 'result_long': None, 'result_double': None}] Qualite : 0.053369357786094584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638689 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}" where mtr_portfolio_id = 28638689 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28638689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453418, 0.053369357786094584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28639147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063466, 'mtr_portfolio_id': 28639147, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 26), 'result': '0.043664073794498326', 'result_long': None, 'result_double': None}] Qualite : 0.043664073794498326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}" where mtr_portfolio_id = 28639147 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28639147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453419, 0.043664073794498326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28639591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063467, 'mtr_portfolio_id': 28639591, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 56), 'result': '0.047182145080419576', 'result_long': None, 'result_double': None}] Qualite : 0.047182145080419576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}" where mtr_portfolio_id = 28639591 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28639591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453420, 0.047182145080419576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063468, 'mtr_portfolio_id': 28641020, 'created_at': datetime.datetime(2025, 11, 18, 6, 22, 29), 'result': '0.05131668854412686', 'result_long': None, 'result_double': None}] Qualite : 0.05131668854412686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}" where mtr_portfolio_id = 28641020 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453421, 0.05131668854412686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641206 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063469, 'mtr_portfolio_id': 28641206, 'created_at': datetime.datetime(2025, 11, 18, 6, 23, 28), 'result': '0.042545553451280756', 'result_long': None, 'result_double': None}] Qualite : 0.042545553451280756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641206 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}" where mtr_portfolio_id = 28641206 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453422, 0.042545553451280756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641579 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063377, 'mtr_portfolio_id': 28641579, 'created_at': datetime.datetime(2025, 11, 18, 5, 47, 28), 'result': '0.05853607655274519', 'result_long': None, 'result_double': None}] Qualite : 0.05853607655274519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}" where mtr_portfolio_id = 28641579 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453423, 0.05853607655274519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28641934 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063585, 'mtr_portfolio_id': 28641934, 'created_at': datetime.datetime(2025, 11, 18, 6, 3, 27), 'result': '0.0420865347740443', 'result_long': None, 'result_double': None}] Qualite : 0.0420865347740443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641934 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}" where mtr_portfolio_id = 28641934 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28641934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453424, 0.0420865347740443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28642364 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063660, 'mtr_portfolio_id': 28642364, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 28), 'result': '0.06073383736561497', 'result_long': None, 'result_double': None}] Qualite : 0.06073383736561497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642364 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}" where mtr_portfolio_id = 28642364 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28642364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453425, 0.06073383736561497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28642968 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063734, 'mtr_portfolio_id': 28642968, 'created_at': datetime.datetime(2025, 11, 18, 6, 33, 28), 'result': '0.05626145265431898', 'result_long': None, 'result_double': None}] Qualite : 0.05626145265431898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642968 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}" where mtr_portfolio_id = 28642968 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28642968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453426, 0.05626145265431898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28643374 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063793, 'mtr_portfolio_id': 28643374, 'created_at': datetime.datetime(2025, 11, 18, 6, 47, 29), 'result': '0.05293475167005118', 'result_long': None, 'result_double': None}] Qualite : 0.05293475167005118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643374 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}" where mtr_portfolio_id = 28643374 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28643374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453427, 0.05293475167005118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28643779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063851, 'mtr_portfolio_id': 28643779, 'created_at': datetime.datetime(2025, 11, 18, 7, 2, 58), 'result': '0.04435094046803636', 'result_long': None, 'result_double': None}] Qualite : 0.04435094046803636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}" where mtr_portfolio_id = 28643779 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28643779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453428, 0.04435094046803636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28644283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4063968, 'mtr_portfolio_id': 28644283, 'created_at': datetime.datetime(2025, 11, 18, 7, 18, 59), 'result': '0.03468004728367508', 'result_long': None, 'result_double': None}] Qualite : 0.03468004728367508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28644283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28644283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}" where mtr_portfolio_id = 28644283 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28644283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453429, 0.03468004728367508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28645127 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064092, 'mtr_portfolio_id': 28645127, 'created_at': datetime.datetime(2025, 11, 18, 7, 35, 30), 'result': '0.027859632548191356', 'result_long': None, 'result_double': None}] Qualite : 0.027859632548191356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645127 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}" where mtr_portfolio_id = 28645127 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28645127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453430, 0.027859632548191356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28645778 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064173, 'mtr_portfolio_id': 28645778, 'created_at': datetime.datetime(2025, 11, 18, 7, 49), 'result': '0.0590152139734779', 'result_long': None, 'result_double': None}] Qualite : 0.0590152139734779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645778 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}" where mtr_portfolio_id = 28645778 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28645778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453431, 0.0590152139734779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28646472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064317, 'mtr_portfolio_id': 28646472, 'created_at': datetime.datetime(2025, 11, 18, 8, 2, 59), 'result': '0.07002810345918892', 'result_long': None, 'result_double': None}] Qualite : 0.07002810345918892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28646472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28646472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}" where mtr_portfolio_id = 28646472 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28646472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453432, 0.07002810345918892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28647027 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064437, 'mtr_portfolio_id': 28647027, 'created_at': datetime.datetime(2025, 11, 18, 8, 17, 28), 'result': '0.0510507725241517', 'result_long': None, 'result_double': None}] Qualite : 0.0510507725241517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647027 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}" where mtr_portfolio_id = 28647027 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28647027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453433, 0.0510507725241517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28647656 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064588, 'mtr_portfolio_id': 28647656, 'created_at': datetime.datetime(2025, 11, 18, 8, 33, 30), 'result': '0.04203229748767614', 'result_long': None, 'result_double': None}] Qualite : 0.04203229748767614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647656 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}" where mtr_portfolio_id = 28647656 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28647656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453434, 0.04203229748767614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28648493 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064766, 'mtr_portfolio_id': 28648493, 'created_at': datetime.datetime(2025, 11, 18, 8, 48, 59), 'result': '0.03588526522438144', 'result_long': None, 'result_double': None}] Qualite : 0.03588526522438144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28648493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28648493 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}" where mtr_portfolio_id = 28648493 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28648493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453435, 0.03588526522438144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28649305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4064969, 'mtr_portfolio_id': 28649305, 'created_at': datetime.datetime(2025, 11, 18, 9, 34, 59), 'result': '0.0541977277007493', 'result_long': None, 'result_double': None}] Qualite : 0.0541977277007493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28649305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28649305 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}" where mtr_portfolio_id = 28649305 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28649305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453436, 0.0541977277007493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28650959 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065191, 'mtr_portfolio_id': 28650959, 'created_at': datetime.datetime(2025, 11, 18, 9, 48, 58), 'result': '0.04071743132239154', 'result_long': None, 'result_double': None}] Qualite : 0.04071743132239154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28650959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28650959 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}" where mtr_portfolio_id = 28650959 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28650959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453437, 0.04071743132239154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28651460 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065279, 'mtr_portfolio_id': 28651460, 'created_at': datetime.datetime(2025, 11, 18, 10, 2, 57), 'result': '0.1055295895326338', 'result_long': None, 'result_double': None}] Qualite : 0.1055295895326338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651460 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}" where mtr_portfolio_id = 28651460 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453438, 0.1055295895326338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28651808 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065400, 'mtr_portfolio_id': 28651808, 'created_at': datetime.datetime(2025, 11, 18, 10, 16, 58), 'result': '0.03774582213050657', 'result_long': None, 'result_double': None}] Qualite : 0.03774582213050657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651808 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}" where mtr_portfolio_id = 28651808 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453439, 0.03774582213050657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28652248 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065494, 'mtr_portfolio_id': 28652248, 'created_at': datetime.datetime(2025, 11, 18, 10, 32, 57), 'result': '0.04842535208555276', 'result_long': None, 'result_double': None}] Qualite : 0.04842535208555276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28652248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28652248 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}" where mtr_portfolio_id = 28652248 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28652248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453440, 0.04842535208555276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28652749 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065589, 'mtr_portfolio_id': 28652749, 'created_at': datetime.datetime(2025, 11, 18, 10, 49), 'result': '0.0392963227833819', 'result_long': None, 'result_double': None}] Qualite : 0.0392963227833819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28652749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28652749 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}" where mtr_portfolio_id = 28652749 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28652749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453441, 0.0392963227833819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28653464 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065735, 'mtr_portfolio_id': 28653464, 'created_at': datetime.datetime(2025, 11, 18, 11, 2, 59), 'result': '0.044935169530185635', 'result_long': None, 'result_double': None}] Qualite : 0.044935169530185635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28653464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28653464 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}" where mtr_portfolio_id = 28653464 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28653464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453442, 0.044935169530185635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28653849 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065814, 'mtr_portfolio_id': 28653849, 'created_at': datetime.datetime(2025, 11, 18, 11, 17), 'result': '0.04346195309913817', 'result_long': None, 'result_double': None}] Qualite : 0.04346195309913817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28653849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28653849 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}" where mtr_portfolio_id = 28653849 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28653849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453443, 0.04346195309913817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28654500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4065904, 'mtr_portfolio_id': 28654500, 'created_at': datetime.datetime(2025, 11, 18, 11, 32, 31), 'result': '0.04532263780244547', 'result_long': None, 'result_double': None}] Qualite : 0.04532263780244547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28654500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28654500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}" where mtr_portfolio_id = 28654500 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28654500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453444, 0.04532263780244547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28655193 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066046, 'mtr_portfolio_id': 28655193, 'created_at': datetime.datetime(2025, 11, 18, 11, 46, 58), 'result': '0.0982486872859036', 'result_long': None, 'result_double': None}] Qualite : 0.0982486872859036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28655193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28655193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}" where mtr_portfolio_id = 28655193 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28655193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453445, 0.0982486872859036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28655671 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066103, 'mtr_portfolio_id': 28655671, 'created_at': datetime.datetime(2025, 11, 18, 12, 3), 'result': '0.15661501072345188', 'result_long': None, 'result_double': None}] Qualite : 0.15661501072345188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28655671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28655671 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}" where mtr_portfolio_id = 28655671 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28655671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453446, 0.15661501072345188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28656138 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066190, 'mtr_portfolio_id': 28656138, 'created_at': datetime.datetime(2025, 11, 18, 14, 0), 'result': '0.06195973976749275', 'result_long': None, 'result_double': None}] Qualite : 0.06195973976749275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28656138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28656138 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}" where mtr_portfolio_id = 28656138 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28656138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453447, 0.06195973976749275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28658711 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066517, 'mtr_portfolio_id': 28658711, 'created_at': datetime.datetime(2025, 11, 18, 14, 2, 59), 'result': '0.02541703047821988', 'result_long': None, 'result_double': None}] Qualite : 0.02541703047821988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28658711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28658711 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}" where mtr_portfolio_id = 28658711 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28658711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453448, 0.02541703047821988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28659160 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066579, 'mtr_portfolio_id': 28659160, 'created_at': datetime.datetime(2025, 11, 18, 14, 16, 57), 'result': '0.0373493923941434', 'result_long': None, 'result_double': None}] Qualite : 0.0373493923941434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28659160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28659160 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, 'pht': 3726}}" where mtr_portfolio_id = 28659160 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453449, 0.0373493923941434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28659722 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066620, 'mtr_portfolio_id': 28659722, 'created_at': datetime.datetime(2025, 11, 18, 14, 33), 'result': '0.042966329348506783', 'result_long': None, 'result_double': None}] Qualite : 0.042966329348506783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28659722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659722_18-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28659722 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659722_18-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28659755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659762, 'pht': 3726}}" where mtr_portfolio_id = 28659722 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28659722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453450, 0.042966329348506783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659722_18-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28659755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28660259 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066702, 'mtr_portfolio_id': 28660259, 'created_at': datetime.datetime(2025, 11, 18, 14, 51), 'result': '0.05978370760819674', 'result_long': None, 'result_double': None}] Qualite : 0.05978370760819674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28660259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28660259_18-11-2025_14_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28660259 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28660259_18-11-2025_14_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28660293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28660294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28660295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28660296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28660297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28660298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28660299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28660300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28660301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28660302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28660304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28660305, 'pht': 3726}}" where mtr_portfolio_id = 28660259 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28660259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453451, 0.05978370760819674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28660259_18-11-2025_14_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28660293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28660294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28660295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28660296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28660297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28660298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28660299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28660300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28660301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28660302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28660304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28660305, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28661085 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066827, 'mtr_portfolio_id': 28661085, 'created_at': datetime.datetime(2025, 11, 18, 15, 2, 59), 'result': '0.08028670108901848', 'result_long': None, 'result_double': None}] Qualite : 0.08028670108901848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28661085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661085_18-11-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28661085 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661085_18-11-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28661092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661103, 'pht': 3726}}" where mtr_portfolio_id = 28661085 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28661085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453452, 0.08028670108901848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661085_18-11-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28661092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661103, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28661468 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4066878, 'mtr_portfolio_id': 28661468, 'created_at': datetime.datetime(2025, 11, 18, 15, 18, 58), 'result': '0.0682697432617583', 'result_long': None, 'result_double': None}] Qualite : 0.0682697432617583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28661468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661468_18-11-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28661468 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661468_18-11-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28661528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661534, 'pht': 3726}}" where mtr_portfolio_id = 28661468 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28661468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453453, 0.0682697432617583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661468_18-11-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28661528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661534, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28662141 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067037, 'mtr_portfolio_id': 28662141, 'created_at': datetime.datetime(2025, 11, 18, 15, 33, 1), 'result': '0.04628317814261616', 'result_long': None, 'result_double': None}] Qualite : 0.04628317814261616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28662141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662141_18-11-2025_15_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28662141 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662141_18-11-2025_15_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28662241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662243, 'pht': 3726}}" where mtr_portfolio_id = 28662141 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28662141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453454, 0.04628317814261616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662141_18-11-2025_15_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28662241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662243, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28662798 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067107, 'mtr_portfolio_id': 28662798, 'created_at': datetime.datetime(2025, 11, 18, 15, 48, 57), 'result': '0.02943211051158177', 'result_long': None, 'result_double': None}] Qualite : 0.02943211051158177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28662798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662798_18-11-2025_15_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28662798 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662798_18-11-2025_15_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28662816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662828, 'pht': 3726}}" where mtr_portfolio_id = 28662798 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28662798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453455, 0.02943211051158177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662798_18-11-2025_15_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28662816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662828, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28663472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067232, 'mtr_portfolio_id': 28663472, 'created_at': datetime.datetime(2025, 11, 18, 16, 3, 28), 'result': '0.0578455404633655', 'result_long': None, 'result_double': None}] Qualite : 0.0578455404633655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28663472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663472_18-11-2025_16_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28663472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663472_18-11-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28663474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28663475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28663476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28663477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28663478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28663481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28663483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28663484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28663485, 'pht': 3726}}" where mtr_portfolio_id = 28663472 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28663472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453456, 0.0578455404633655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663472_18-11-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28663474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28663475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28663476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28663477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28663478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28663481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28663483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28663484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28663485, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28663984 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067363, 'mtr_portfolio_id': 28663984, 'created_at': datetime.datetime(2025, 11, 18, 16, 16, 59), 'result': '0.07637229519675319', 'result_long': None, 'result_double': None}] Qualite : 0.07637229519675319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28663984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663984_18-11-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28663984 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663984_18-11-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664008, 'pht': 3726}}" where mtr_portfolio_id = 28663984 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28663984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453457, 0.07637229519675319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663984_18-11-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28664534 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067504, 'mtr_portfolio_id': 28664534, 'created_at': datetime.datetime(2025, 11, 18, 16, 33), 'result': '0.03388125312643098', 'result_long': None, 'result_double': None}] Qualite : 0.03388125312643098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28664534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28664534_18-11-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28664534 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28664534_18-11-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28664586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28664593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28664594, 'pht': 3726}}" where mtr_portfolio_id = 28664534 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28664534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453458, 0.03388125312643098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28664534_18-11-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28664586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28664593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28664594, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28665161 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067602, 'mtr_portfolio_id': 28665161, 'created_at': datetime.datetime(2025, 11, 18, 16, 49, 28), 'result': '0.07497494447951597', 'result_long': None, 'result_double': None}] Qualite : 0.07497494447951597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28665161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665161_18-11-2025_16_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28665161 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665161_18-11-2025_16_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665203, 'pht': 3726}}" where mtr_portfolio_id = 28665161 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28665161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453459, 0.07497494447951597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665161_18-11-2025_16_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665203, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28665818 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067804, 'mtr_portfolio_id': 28665818, 'created_at': datetime.datetime(2025, 11, 18, 17, 4, 58), 'result': '0.03291653309004118', 'result_long': None, 'result_double': None}] Qualite : 0.03291653309004118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28665818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665818_18-11-2025_17_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28665818 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665818_18-11-2025_17_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665860, 'pht': 3726}}" where mtr_portfolio_id = 28665818 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28665818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453460, 0.03291653309004118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665818_18-11-2025_17_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28666502 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4067987, 'mtr_portfolio_id': 28666502, 'created_at': datetime.datetime(2025, 11, 18, 17, 19, 1), 'result': '0.034618631330752186', 'result_long': None, 'result_double': None}] Qualite : 0.034618631330752186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28666502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28666502 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_19_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28666524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28666525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28666526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28666527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28666528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28666529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28666530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28666531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28666532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28666533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28666534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28666535, 'pht': 3726}}" where mtr_portfolio_id = 28666502 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28666502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453461, 0.034618631330752186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_19_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28666524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28666525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28666526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28666527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28666528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28666529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28666530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28666531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28666532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28666533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28666534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28666535, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28667333 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4068192, 'mtr_portfolio_id': 28667333, 'created_at': datetime.datetime(2025, 11, 18, 17, 58, 58), 'result': '0.04290642280849667', 'result_long': None, 'result_double': None}] Qualite : 0.04290642280849667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28667333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28667333_18-11-2025_17_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28667333 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28667333_18-11-2025_17_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28667365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28667366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28667367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28667368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28667369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28667370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28667371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28667372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28667373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28667374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28667375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28667376, 'pht': 3726}}" where mtr_portfolio_id = 28667333 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28667333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453462, 0.04290642280849667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28667333_18-11-2025_17_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28667365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28667366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28667367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28667368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28667369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28667370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28667371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28667372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28667373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28667374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28667375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28667376, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28669039 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4068571, 'mtr_portfolio_id': 28669039, 'created_at': datetime.datetime(2025, 11, 18, 18, 18, 56), 'result': '0.07797961949253553', 'result_long': None, 'result_double': None}] Qualite : 0.07797961949253553 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28669039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669039_18-11-2025_18_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28669039 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669039_18-11-2025_18_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28669045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28669049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28669053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669056, 'pht': 3726}}" where mtr_portfolio_id = 28669039 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28669039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453463, 0.07797961949253553, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669039_18-11-2025_18_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28669045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28669049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28669053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669056, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28669636 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4068659, 'mtr_portfolio_id': 28669636, 'created_at': datetime.datetime(2025, 11, 18, 18, 32, 59), 'result': '0.032115400709954306', 'result_long': None, 'result_double': None}] Qualite : 0.032115400709954306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28669636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669636_18-11-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28669636 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669636_18-11-2025_18_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28669653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28669655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28669656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669663, 'pht': 3726}}" where mtr_portfolio_id = 28669636 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28669636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453464, 0.032115400709954306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669636_18-11-2025_18_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28669653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28669655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28669656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669663, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28669946 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4068759, 'mtr_portfolio_id': 28669946, 'created_at': datetime.datetime(2025, 11, 18, 18, 48, 57), 'result': '0.037250125678374595', 'result_long': None, 'result_double': None}] Qualite : 0.037250125678374595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28669946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669946_18-11-2025_18_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28669946 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669946_18-11-2025_18_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28669991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28670000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28670001, 'pht': 3726}}" where mtr_portfolio_id = 28669946 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28669946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453465, 0.037250125678374595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28669946_18-11-2025_18_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28669990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28669991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28669992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28669993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28669994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28669995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28669996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28669997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28669998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28669999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28670000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28670001, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28670527 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4068863, 'mtr_portfolio_id': 28670527, 'created_at': datetime.datetime(2025, 11, 18, 19, 2, 58), 'result': '0.044185940712529875', 'result_long': None, 'result_double': None}] Qualite : 0.044185940712529875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28670527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28670527_18-11-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28670527 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28670527_18-11-2025_19_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28670528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28670529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28670530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28670531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28670532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28670533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28670534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28670535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28670536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28670537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28670538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28670539, 'pht': 3726}}" where mtr_portfolio_id = 28670527 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28670527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453466, 0.044185940712529875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28670527_18-11-2025_19_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28670528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28670529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28670530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28670531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28670532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28670533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28670534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28670535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28670536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28670537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28670538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28670539, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28671006 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4068968, 'mtr_portfolio_id': 28671006, 'created_at': datetime.datetime(2025, 11, 18, 19, 18, 59), 'result': '0.02626863269700539', 'result_long': None, 'result_double': None}] Qualite : 0.02626863269700539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28671006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671006_18-11-2025_19_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28671006 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671006_18-11-2025_19_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28671026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28671027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28671028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28671029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28671030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28671031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28671032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28671033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28671034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28671035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28671036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28671037, 'pht': 3726}}" where mtr_portfolio_id = 28671006 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28671006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453467, 0.02626863269700539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671006_18-11-2025_19_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28671026, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28671027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28671028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28671029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28671030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28671031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28671032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28671033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28671034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28671035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28671036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28671037, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28671566 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4069065, 'mtr_portfolio_id': 28671566, 'created_at': datetime.datetime(2025, 11, 18, 19, 32, 58), 'result': '0.04745355345385372', 'result_long': None, 'result_double': None}] Qualite : 0.04745355345385372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28671566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671566_18-11-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28671566 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671566_18-11-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28671600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28671601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28671602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28671603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28671604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28671605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28671606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28671607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28671609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28671610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28671611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28671612, 'pht': 3726}}" where mtr_portfolio_id = 28671566 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28671566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453468, 0.04745355345385372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28671566_18-11-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28671600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28671601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28671602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28671603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28671604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28671605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28671606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28671607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28671609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28671610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28671611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28671612, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28672057 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4069201, 'mtr_portfolio_id': 28672057, 'created_at': datetime.datetime(2025, 11, 18, 19, 48, 58), 'result': '0.047440991053148494', 'result_long': None, 'result_double': None}] Qualite : 0.047440991053148494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28672057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672057_18-11-2025_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28672057 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672057_18-11-2025_19_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28672069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28672070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28672071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28672072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28672073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28672074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28672075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28672076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28672077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28672078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28672079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28672080, 'pht': 3726}}" where mtr_portfolio_id = 28672057 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28672057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453469, 0.047440991053148494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672057_18-11-2025_19_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28672069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28672070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28672071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28672072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28672073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28672074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28672075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28672076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28672077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28672078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28672079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28672080, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28672738 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4069312, 'mtr_portfolio_id': 28672738, 'created_at': datetime.datetime(2025, 11, 18, 20, 4, 58), 'result': '0.05208003258336188', 'result_long': None, 'result_double': None}] Qualite : 0.05208003258336188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28672738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672738_18-11-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28672738 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672738_18-11-2025_20_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28672755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28672756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28672757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28672758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28672759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28672760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28672761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28672762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28672763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28672764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28672765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28672766, 'pht': 3726}}" where mtr_portfolio_id = 28672738 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28672738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453470, 0.05208003258336188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28672738_18-11-2025_20_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28672755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28672756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28672757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28672758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28672759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28672760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28672761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28672762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28672763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28672764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28672765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28672766, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28673555 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4069443, 'mtr_portfolio_id': 28673555, 'created_at': datetime.datetime(2025, 11, 18, 20, 18, 58), 'result': '0.015219938022026138', 'result_long': None, 'result_double': None}] Qualite : 0.015219938022026138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28673555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28673555_18-11-2025_20_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28673555 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28673555_18-11-2025_20_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28673574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28673575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28673576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28673577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28673578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28673579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28673580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28673581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28673582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28673583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28673584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28673585, 'pht': 3726}}" where mtr_portfolio_id = 28673555 and dashboard_run_id = 2612693 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28673555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453471, 0.015219938022026138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28673555_18-11-2025_20_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28673574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28673575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28673576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28673577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28673578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28673579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28673580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28673581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28673582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28673583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28673584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28673585, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28674277 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4069616, 'mtr_portfolio_id': 28674277, 'created_at': datetime.datetime(2025, 11, 18, 20, 32, 57), 'result': '0.03974845986507371', 'result_long': None, 'result_double': None}] Qualite : 0.03974845986507371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28674277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28674277_18-11-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28674277 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28674277_18-11-2025_20_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28674296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28674297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28674298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28674299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28674300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28674301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28674302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28674303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28674304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28674305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28674306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28674307, 'pht': 3726}}" where mtr_portfolio_id = 28674277 and dashboard_run_id = 2612695 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28674277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453472, 0.03974845986507371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28674277_18-11-2025_20_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28674296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28674297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28674298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28674299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28674300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28674301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28674302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28674303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28674304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28674305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28674306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28674307, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28675030 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4069739, 'mtr_portfolio_id': 28675030, 'created_at': datetime.datetime(2025, 11, 18, 21, 6, 59), 'result': '0.0469397959370763', 'result_long': None, 'result_double': None}] Qualite : 0.0469397959370763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28675030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28675030_18-11-2025_21_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28675030 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28675030_18-11-2025_21_06_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28675055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28675056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28675057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28675058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28675059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28675060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28675061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28675062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28675063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28675064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28675065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28675066, 'pht': 3726}}" where mtr_portfolio_id = 28675030 and dashboard_run_id = 2612695 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28675030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453473, 0.0469397959370763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28675030_18-11-2025_21_06_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28675055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28675056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28675057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28675058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28675059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28675060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28675061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28675062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28675063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28675064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28675065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28675066, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28676246 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 = 28676246 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 = 28676246 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28676246 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 = 28676246 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 = 28676246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676246_18-11-2025_20_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28676246 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676246_18-11-2025_20_57_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28676304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28676305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28676306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28676307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28676308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28676309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28676310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28676311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28676312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28676313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28676314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28676315, 'pht': 3726}}" where mtr_portfolio_id = 28676246 and dashboard_run_id = 2612695 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28676760 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4070044, 'mtr_portfolio_id': 28676760, 'created_at': datetime.datetime(2025, 11, 18, 21, 14, 58), 'result': '0.11654191142040156', 'result_long': None, 'result_double': None}] Qualite : 0.11654191142040156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28676760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676760_18-11-2025_21_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28676760 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676760_18-11-2025_21_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28676810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28676811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28676812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28676813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28676814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28676815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28676816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28676817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28676818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28676819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28676820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28676821, 'pht': 3726}}" where mtr_portfolio_id = 28676760 and dashboard_run_id = 2612695 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28676760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17453475, 0.11654191142040156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28676760_18-11-2025_21_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28676810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28676811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28676812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28676813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28676814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28676815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28676816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28676817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28676818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28676819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28676820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28676821, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28631138,28631823,28632284,28632886,28634373,28635010,28635491,28636035,28636740,28637017,28637392,28638080,28638689,28639147,28639591,28641020,28641206,28641579,28641934,28642364,28642968,28643374,28643779,28644283,28645127,28645778,28646472,28647027,28647656,28648493,28649305,28650959,28651460,28651808,28652248,28652749,28653464,28653849,28654500,28655193,28655671,28656138,28658711,28659160,28659722,28660259,28661085,28661468,28662141,28662798,28663472,28663984,28664534,28665161,28665818,28666502,28667333,28669039,28669636,28669946,28670527,28671006,28671566,28672057,28672738,28673555,28674277,28675030,28676246,28676760) result : ((1394942829,), (1394942839,), (1394942854,), (1394942987,), (1394943023,), (1394943063,), (1394943097,), (1394943498,), (1394943530,), (1394943559,), (1394943590,), (1394943624,), (1394943662,), (1394943743,), (1394943745,), (1394943747,), (1394943763,), (1394943798,), (1394944144,), (1394944180,), (1394944221,), (1394944235,), (1394944353,), (1394944356,), (1394944361,), (1394944367,), (1394944520,), (1394944521,), (1394944522,), (1394944524,), (1394944558,), (1394944561,), (1394944566,), (1394944570,), (1394944660,), (1394944662,), (1394944664,), (1394944697,), (1394944732,), (1394944749,), (1394944768,), (1394944790,), (1394944816,), (1394944948,), (1394944984,), (1394945016,), (1394945047,), (1394945081,), (1394945204,), (1394945206,), (1394945232,), (1394945230,), (1394945264,), (1394945275,), (1394945292,), (1394945294,), (1394945296,), (1394945300,), (1394945303,), (1394945305,), (1394945638,), (1394945676,), (1394945706,), (1394945739,), (1394945744,), (1394945748,), (1394945896,), (1394945915,), (1394945920,), (1394945993,), (1394945995,), (1394945999,), (1394946019,), (1394946020,), (1394946027,), (1394946030,), (1394946056,), (1394946143,), (1394946145,), (1394946173,), (1394946233,), (1394946234,), (1394946235,), (1394946262,), (1394946263,), (1394946264,), (1394946281,), (1394946283,), (1394946288,), (1394946292,), (1394946305,), (1394946307,), (1394946313,), (1394946321,), (1394946330,), (1394946353,), (1394946355,), (1394946357,), (1394946360,), (1394946379,), (1394946383,), (1394946389,), (1394946394,), (1394946399,), (1394946413,), (1394946414,), (1394946838,), (1394946827,), (1394946833,), (1394946835,), (1394947037,), (1394947061,), (1394947090,), (1394947099,), (1394947124,), (1394947126,), (1394947128,), (1394947150,), (1394947152,), (1394947155,), (1394947158,), (1394947162,), (1394947466,), (1394947500,), (1394947531,), (1394947562,), (1394947985,), (1394948017,), (1394948052,), (1394948537,), (1394948549,), (1394948550,), (1394948576,), (1394948768,), (1394948769,), (1394948771,), (1394948780,), (1394948921,), (1394948953,), (1394948986,), (1394949023,), (1394949059,), (1394949193,), (1394949207,), (1394949242,), (1394949276,), (1394949310,), (1394949343,), (1394949442,), (1394949444,), (1394949446,), (1394949482,), (1394949483,), (1394949484,), (1394949487,), (1394949510,), (1394949512,), (1394949538,), (1394949540,), (1394949543,), (1394949577,), (1394949573,), (1394949574,), (1394949575,), (1394949595,), (1394949596,), (1394949619,), (1394949620,), (1394949651,), (1394949655,), (1394949656,), (1394949681,), (1394949683,), (1394949685,), (1394949689,), (1394949708,), (1394949709,), (1394949710,), (1394949713,), (1394949744,), (1394949746,), (1394949748,), (1394949771,), (1394949772,), (1394949773,), (1394949776,), (1394949870,), (1394949902,), (1394949932,), (1394949965,), (1394950203,), (1394950243,), (1394950275,), (1394950331,), (1394950332,), (1394950355,), (1394950357,), (1394950359,), (1394950699,), (1394950729,), (1394950763,), (1394950795,), (1394951147,), (1394951182,), (1394951216,), (1394951615,), (1394963649,), (1394963683,), (1394963715,), (1394964148,), (1394964211,), (1394964268,), (1394964527,), (1394964530,), (1394964533,), (1394965229,), (1394965632,), (1394965634,), (1394965636,), (1394965639,), (1394965975,), (1394966022,), (1394966266,), (1394966268,), (1394966375,), (1394966377,), (1394966379,), (1394966381,), (1394966385,), (1394966389,), (1394966406,), (1394966407,), (1394966408,), (1394966726,), (1394966817,), (1394966906,), (1394967003,), (1394967113,), (1394967210,), (1394967516,), (1394967518,), (1394967528,), (1394967619,), (1394967804,), (1394967805,), (1394967806,), (1394967809,), (1394967814,), (1394967816,), (1394967832,), (1394967834,), (1394967859,), (1394967922,), (1394968030,), (1394968151,), (1394968277,), (1394969140,), (1394968941,), (1394968971,), (1394969001,), (1394969034,), (1394969676,), (1394969703,), (1394969704,), (1394969887,), (1394969910,), (1394969912,), (1394969942,), (1394969966,), (1394969969,), (1394969971,), (1394969974,), (1394969978,), (1394970005,), (1394970007,), (1394970009,), (1394970013,), (1394970033,), (1394970034,), (1394970035,), (1394970038,), (1394970043,), (1394970782,), (1394970901,), (1394971026,), (1394971150,), (1394971854,), (1394971896,), (1394971958,), (1394972000,), (1394972185,), (1394972187,), (1394972191,), (1394972196,), (1394972200,), (1394972204,), (1394972932,), (1394972933,), (1394972934,), (1394972935,), (1394973217,), (1394973243,), (1394973245,), (1394973327,), (1394973328,), (1394973329,), (1394973331,), (1394973380,), (1394973381,), (1394973382,), (1394973406,), (1394973409,), (1394973411,), (1394973414,), (1394973422,), (1394973423,), (1394973425,), (1394973426,), (1394973428,), (1394973429,), (1394973448,), (1394973447,), (1394973467,), (1394973468,), (1394973469,), (1394973471,), (1394973475,), (1394973518,), (1394973553,), (1394973574,), (1394973644,), (1394973645,), (1394973646,), (1394973648,), (1394973652,), (1394973952,), (1394973985,), (1394974026,), (1394974060,), (1394974415,), (1394974429,), (1394974430,), (1394974432,), (1394974593,), (1394974625,), (1394974655,), (1394974688,), (1394975008,), (1394975040,), (1394975071,), (1394975104,), (1394975463,), (1394975584,), (1394975588,), (1394975591,), (1394975595,), (1394975598,), (1394975675,), (1394975706,), (1394975921,), (1394975922,), (1394975923,), (1394975926,), (1394975965,), (1394975967,), (1394975969,), (1394975973,), (1394975978,), (1394975981,), (1394976006,), (1394976008,), (1394976011,), (1394976017,), (1394976041,), (1394976043,), (1394976045,), (1394976068,), (1394976069,), (1394976070,), (1394976073,), (1394976076,), (1394976080,), (1394976099,), (1394976095,), (1394976097,), (1394976117,), (1394976118,), (1394976121,), (1394976127,), (1394976132,), (1394976155,), (1394976157,), (1394976159,), (1394976181,), (1394976182,), (1394976183,), (1394976186,), (1394976190,), (1394976195,), (1394976220,), (1394976230,), (1394976234,), (1394976237,), (1394976242,), (1394976246,), (1394976323,), (1394976330,), (1394976331,), (1394976350,), (1394976361,), (1394976386,), (1394976387,), (1394976388,), (1394976391,), (1394976412,), (1394976413,), (1394976415,), (1394976419,), (1394976423,), (1394976449,), (1394976451,), (1394976453,), (1394976456,), (1394976460,), (1394976465,), (1394976482,), (1394976483,), (1394976484,), (1394976487,), (1394976518,), (1394976520,), (1394976521,), (1394976525,), (1394976545,), (1394976546,), (1394976547,), (1394976586,), (1394976608,), (1394976609,), (1394976610,), (1394976612,), (1394976619,), (1394976623,), (1394976637,), (1394976671,), (1394976670,), (1394976798,), (1394976800,), (1394976805,), (1394976812,), (1394976832,), (1394976881,), (1394976915,), (1394976916,), (1394976917,), (1394976920,), (1394976941,), (1394976943,), (1394976945,), (1394976949,), (1394976967,), (1394976968,), (1394976969,), (1394976971,), (1394976993,), (1394976994,), (1394977028,), (1394977085,), (1394977086,), (1394977124,), (1394977121,), (1394977122,), (1394977148,), (1394977154,), (1394977164,), (1394977175,), (1394977193,), (1394977195,), (1394977197,), (1394977218,), (1394977219,), (1394977220,), (1394977221,), (1394977241,), (1394977245,), (1394977247,), (1394977250,), (1394977273,), (1394977276,), (1394977277,), (1394977280,), (1394977284,), (1394977287,), (1394977303,), (1394977305,), (1394977306,), (1394977327,), (1394977328,), (1394977329,), (1394977331,), (1394977334,), (1394977338,), (1394977354,), (1394977355,), (1394977357,), (1394977360,), (1394977387,), (1394977388,), (1394977389,), (1394977391,), (1394977394,), (1394977418,), (1394977420,), (1394977424,), (1394977428,), (1394977431,), (1394977433,), (1394977439,), (1394977440,), (1394977445,), (1394977446,), (1394977447,), (1394977448,), (1394977452,), (1394977520,), (1394977521,), (1394977523,), (1394977645,), (1394977679,), (1394977717,), (1394977859,), (1394977900,), (1394977933,), (1394977967,), (1394978272,), (1394978209,), (1394978239,), (1394979060,), (1394979134,), (1394979631,), (1394979642,), (1394979644,), (1394979993,), (1394980024,), (1394980059,), (1394980093,), (1394980487,), (1394980490,), (1394980494,), (1394980499,), (1394980504,), (1394980508,), (1394980699,), (1394980719,), (1394980731,), (1394980735,), (1394980769,), (1394980771,), (1394980816,), (1394980817,), (1394980818,), (1394980824,), (1394980844,), (1394980847,), (1394980852,), (1394980855,), (1394980858,), (1394980879,), (1394980880,), (1394980886,), (1394980889,), (1394980892,), (1394980904,), (1394980936,), (1394980969,), (1394981007,), (1394981041,), (1394981077,), (1394981375,), (1394981405,), (1394981652,), (1394981655,), (1394981668,), (1394981700,), (1394981737,), (1394981771,), (1394981910,), (1394981950,), (1394981958,), (1394981965,), (1394981968,), (1394982167,), (1394982198,), (1394982230,), (1394982265,), (1394982301,), (1394982673,), (1394982710,), (1394982744,), (1394983012,), (1394982981,), (1394982991,), (1394983009,), (1394983029,), (1394983030,), (1394983031,), (1394983033,), (1394983066,), (1394983068,), (1394983070,), (1394983094,), (1394983095,), (1394983096,), (1394983114,), (1394983116,), (1394983118,), (1394983154,), (1394983156,), (1394983307,), (1394983337,), (1394983372,), (1394983408,), (1394983819,), (1394983836,), (1394983838,), (1394983841,), (1394983845,), (1394984020,), (1394984021,), (1394984027,), (1394984053,), (1394984054,), (1394984057,), (1394984062,), (1394984087,), (1394984089,), (1394984091,), (1394984095,), (1394984113,), (1394984114,), (1394984117,), (1394984122,), (1394984127,), (1394984130,), (1394984138,), (1394984139,), (1394984141,), (1394984145,), (1394984147,), (1394984151,), (1394984156,), (1394984175,), (1394984177,), (1394984180,), (1394984186,), (1394984201,), (1394984203,), (1394984235,), (1394984231,), (1394984232,), (1394984233,), (1394984258,), (1394984259,), (1394984260,), (1394984264,), (1394984269,), (1394984298,), (1394984300,), (1394984301,), (1394984303,), (1394984332,), (1394984333,), (1394984334,), (1394984337,), (1394984341,), (1394984354,), (1394984356,), (1394984358,), (1394984702,), (1394985930,), (1394985947,), (1394985949,), (1394985953,), (1394985958,), (1394985977,), (1394985980,), (1394985982,), (1394985985,), (1394986005,), (1394986006,), (1394986007,), (1394986010,), (1394986030,), (1394986032,), (1394986034,), (1394986038,), (1394986041,), (1394986054,), (1394986055,), (1394986056,), (1394986058,), (1394986063,), (1394986068,), (1394986111,), (1394986100,), (1394986102,), (1394986104,), (1394986107,), (1394986137,), (1394986138,), (1394986139,), (1394986162,), (1394986164,), (1394986166,), (1394986169,), (1394986174,), (1394986348,), (1394986377,), (1394986408,), (1394986440,), (1394986861,), (1394986893,), (1394986897,), (1394986900,), (1394987109,), (1394987112,), (1394987140,), (1394987190,), (1394987192,), (1394987194,), (1394987197,), (1394987254,), (1394987255,), (1394987256,), (1394987258,), (1394987280,), (1394987284,), (1394987288,), (1394987291,), (1394987294,), (1394987310,), (1394987312,), (1394987344,), (1394987345,), (1394987346,), (1394987370,), (1394987371,), (1394987372,), (1394987374,), (1394987379,), (1394987394,), (1394987396,), (1394987398,), (1394988093,), (1394988165,), (1394988997,), (1394988924,), (1394988958,), (1394988990,), (1394989244,), (1394989277,), (1394989286,), (1394989400,), (1394989402,), (1394989404,), (1394989407,), (1394989411,), (1394989414,), (1394989450,), (1394989453,), (1394989454,), (1394989479,), (1394989481,), (1394989483,), (1394989487,), (1394989491,), (1394989518,), (1394989519,), (1394989520,), (1394989523,), (1394989552,), (1394989591,), (1394989596,), (1394989600,), (1394989605,), (1394989608,), (1394989632,), (1394989633,), (1394989634,), (1394989662,), (1394989664,), (1394989667,), (1394989672,), (1394989678,), (1394989700,), (1394989701,), (1394989702,), (1394989704,), (1394989709,), (1394989712,), (1394989729,), (1394989731,), (1394993476,), (1394993339,), (1394993474,), (1394993475,), (1394993516,), (1394993518,), (1394993520,), (1394993539,), (1394993560,), (1394993586,), (1394993588,), (1394993591,), (1394993596,), (1394993609,), (1394993615,), (1394993618,), (1394993621,), (1394993638,), (1394993639,), (1394993640,), (1394993642,), (1394993646,), (1394993668,), (1394993669,), (1394993671,), (1394993675,), (1394993698,), (1394993700,), (1394993701,), (1394993704,), (1394993709,), (1394993754,), (1394993762,), (1394993763,), (1394993764,), (1394993767,), (1394993769,), (1394993735,), (1394993736,), (1394993743,), (1394993747,), (1394993751,), (1394993773,), (1394993776,), (1394993779,), (1394993782,), (1394993784,), (1394993795,), (1394993797,), (1394993798,), (1394993818,), (1394993820,), (1394993822,), (1394993826,), (1394993863,), (1394993898,), (1394994235,), (1394994269,), (1394994298,), (1394994327,), (1394994581,), (1394994583,), (1394994584,), (1394994587,), (1394994591,), (1394994838,), (1394994856,), (1394994881,), (1394994933,), (1394994936,), (1394994940,), (1394994945,), (1394995009,), (1394995011,), (1394995020,), (1394995029,), (1394995037,), (1394995062,), (1394995063,), (1394995064,), (1394995067,), (1394995071,), (1394995096,), (1394995098,), (1394995107,), (1394995111,), (1394995115,), (1394995117,), (1394995130,), (1394995135,), (1394995137,), (1394995141,), (1394995142,), (1394995144,), (1394995148,), (1394995151,), (1394995155,), (1394995180,), (1394995183,), (1394995186,), (1394995190,), (1394995194,), (1394995213,), (1394995233,), (1394995253,), (1394995257,), (1394995261,), (1394995336,), (1394995340,), (1394995346,), (1394995349,), (1394995311,), (1394995314,), (1394995318,), (1394995327,), (1394995355,), (1394995356,), (1394995359,), (1394995374,), (1394995376,), (1394995378,), (1394995412,), (1394995414,), (1394995415,), (1394995417,), (1394995436,), (1394995438,), (1394995440,), (1394995443,), (1394995470,), (1394995471,), (1394995472,), (1394995474,), (1394995478,), (1394995493,), (1394995495,), (1394995497,), (1394995500,), (1394995504,), (1394995507,), (1394995521,), (1394995522,), (1394995523,), (1394995524,), (1394995526,), (1394995545,), (1394995548,), (1394995552,), (1394995557,), (1394995586,), (1394995587,), (1394995588,), (1394995590,), (1394995594,), (1394995597,), (1394995608,), (1394995609,), (1394995611,), (1394995613,), (1394995642,), (1394995646,), (1394995647,), (1394995668,), (1394995670,), (1394995674,), (1394995678,), (1394995680,), (1394995684,), (1394995700,), (1394995702,), (1394995704,), (1394995708,), (1394995739,), (1394995741,), (1394995742,), (1394995778,), (1394995766,), (1394995768,), (1394995772,), (1394995799,), (1394995800,), (1394995801,), (1394995829,), (1394995831,), (1394995832,), (1394995836,), (1394995841,), (1394995844,), (1394995858,), (1394995859,), (1394995860,), (1394995862,), (1394995892,), (1394995894,), (1394995896,), (1394995920,), (1394995921,), (1394995922,), (1394995924,), (1394995926,), (1394995929,), (1394995966,), (1394995967,), (1394995969,), (1394995973,), (1394995978,), (1394995992,), (1394995993,), (1394995994,), (1394995997,), (1394996028,), (1394996037,), (1394996042,), (1394996045,), (1394996049,), (1394996054,), (1394996069,), (1394996070,), (1394996071,), (1394996105,), (1394996107,), (1394996110,), (1394996115,), (1394996120,), (1394996124,), (1394996139,), (1394996142,), (1394996147,), (1394996152,), (1394996157,), (1394996160,), (1394996167,), (1394996168,), (1394996174,), (1394996180,), (1394996182,), (1394996223,), (1394996258,), (1394996292,), (1394996325,), (1394996479,), (1394996483,), (1394996486,), (1394996490,), (1394996495,), (1394996500,), (1394996543,), (1394996538,), (1394996541,), (1394996749,), (1394996783,), (1394996813,), (1394996861,), (1394996896,), (1394997263,), (1394997295,), (1394997320,), (1394997323,), (1394998509,), (1394998564,), (1394998565,), (1394998566,), (1394998568,), (1394998601,), (1394998605,), (1394998607,), (1394998637,), (1394998638,), (1394998639,), (1394998658,), (1394998660,), (1394998662,), (1394998669,), (1394998703,), (1394998704,), (1394998705,), (1394998707,), (1394998711,), (1394998737,), (1394998739,), (1394998741,), (1394998773,), (1394998774,), (1394998776,), (1394998778,), (1394998782,), (1394998784,), (1394998809,), (1394998796,), (1394998798,), (1394998800,), (1394998803,), (1394998806,), (1394998831,), (1394998832,), (1394998833,), (1394998834,), (1394998862,), (1394998864,), (1394998866,), (1394998869,), (1394998878,), (1394998905,), (1394998908,), (1394998911,), (1394998915,), (1394998945,), (1394998947,), (1394998948,), (1394998950,), (1394998983,), (1394998986,), (1394998988,), (1394998991,), (1394998994,), (1394998999,), (1394999027,), (1394999029,), (1394999030,), (1394999033,), (1394999037,), (1394999042,), (1394999071,), (1394999072,), (1394999073,), (1394999107,), (1394999113,), (1394999115,), (1394999119,), (1394999124,), (1394999127,), (1394999145,), (1394999146,), (1394999147,), (1394999149,), (1394999151,), (1394999154,), (1394999186,), (1394999187,), (1394999188,), (1394999191,), (1394999212,), (1394999214,), (1394999215,), (1394999218,), (1394999221,), (1394999236,), (1394999239,), (1394999241,), (1394999278,), (1394999279,), (1394999280,), (1394999282,), (1394999286,), (1394999289,), (1394999316,), (1394999318,), (1394999320,), (1394999324,), (1394999359,), (1394999367,), (1394999369,), (1394999371,), (1394999373,), (1394999347,), (1394999348,), (1394999350,), (1394999353,), (1394999356,), (1394999376,), (1394999378,), (1394999414,), (1394999416,), (1394999491,), (1394999494,), (1394999497,), (1394999501,), (1394999505,), (1394999624,), (1394999625,), (1394999626,), (1394999628,), (1394999655,), (1394999657,), (1394999696,), (1394999698,), (1394999700,), (1394999703,), (1394999709,), (1394999742,), (1394999743,), (1394999744,), (1394999746,), (1394999747,), (1394999790,), (1394999792,), (1394999794,), (1394999798,), (1394999820,), (1394999821,), (1394999822,), (1394999824,), (1394999828,), (1394999832,), (1394999945,), (1394999946,), (1394999948,), (1394999950,), (1394999954,), (1394999978,), (1394999979,), (1394999980,), (1394999983,), (1395000004,), (1395000005,), (1395000009,), (1395000017,), (1395000022,), (1395000027,), (1395000052,), (1395000054,), (1395000056,), (1395000059,), (1395000092,), (1395000080,), (1395000082,), (1395000084,), (1395000087,), (1395000115,), (1395000116,), (1395000117,), (1395000120,), (1395000124,), (1395000129,), (1395000145,), (1395000147,), (1395000149,), (1395000175,), (1395000179,), (1395000187,), (1395000193,), (1395000215,), (1395000217,), (1395000218,), (1395000221,), (1395000225,), (1395000249,), (1395000250,), (1395000251,), (1395000252,), (1395000284,), (1395000286,), (1395000288,), (1395000292,), (1395000301,), (1395000325,), (1395000326,), (1395000327,), (1395000329,), (1395000333,), (1395000336,), (1395000374,), (1395000376,), (1395000379,), (1395000382,), (1395000422,), (1395000444,), (1395000451,), (1395000484,), (1395000486,), (1395000490,), (1395000496,), (1395000501,), (1395000534,), (1395000536,), (1395000538,), (1395000542,), (1395000547,), (1395000563,), (1395000569,), (1395000573,), (1395000621,), (1395000613,), (1395000614,), (1395000615,), (1395000617,), (1395000633,), (1395000635,), (1395000637,), (1395000640,), (1395000643,), (1395001140,), (1395001183,), (1395001218,), (1395001257,), (1395001290,), (1395001607,), (1395001609,), (1395001610,), (1395001613,), (1395001842,), (1395001863,), (1395001865,), (1395001874,), (1395002153,), (1395002182,), (1395002215,), (1395002430,), (1395002443,), (1395002456,), (1395002466,), (1395002472,), (1395002521,), (1395002522,), (1395002523,), (1395002528,), (1395002539,), (1395002569,), (1395002583,), (1395002625,), (1395002662,), (1395002696,), (1395002746,), (1395003118,), (1395003120,), (1395003130,), (1395003164,), (1395003305,), (1395003306,), (1395003307,), (1395003342,), (1395003344,), (1395003347,), (1395003350,), (1395003353,), (1395003435,), (1395003442,), (1395003446,), (1395003452,), (1395003529,), (1395003559,), (1395003591,), (1395003621,), (1395004088,), (1395004129,), (1395004167,), (1395004197,), (1395004430,), (1395004403,), (1395004405,), (1395004407,), (1395004421,), (1395004426,), (1395004674,), (1395004702,), (1395004732,), (1395004736,), (1395004877,), (1395004878,), (1395004884,), (1395004903,), (1395004952,), (1395004953,), (1395004955,), (1395004960,), (1395004964,), (1395005015,), (1395005018,), (1395005020,), (1395005024,), (1395005435,), (1395005444,), (1395005445,), (1395005467,), (1395005470,), (1395005472,), (1395005475,), (1395005492,), (1395005494,), (1395005496,), (1395005498,), (1395005501,), (1395005505,), (1395005529,), (1395005530,), (1395005531,), (1395005533,), (1395005536,), (1395005574,), (1395005585,), (1395005597,), (1395005602,), (1395005641,), (1395005663,), (1395005695,), (1395005731,), (1395005769,), (1395005805,), (1395005989,), (1395005997,), (1395006002,), (1395006106,), (1395006111,), (1395006112,), (1395006115,), (1395006126,), (1395006132,), (1395006192,), (1395006193,), (1395006248,), (1395006303,), (1395006337,), (1395006433,), (1395006439,), (1395006447,), (1395006449,), (1395006526,), (1395006544,), (1395006554,), (1395006558,), (1395006561,), (1395006511,), (1395006514,), (1395006517,), (1395006521,), (1395006524,), (1395006528,), (1395006532,), (1395006534,), (1395006537,), (1395006540,), (1395006575,), (1395006576,), (1395006577,), (1395006579,), (1395006583,), (1395006604,), (1395006856,), (1395006889,), (1395006918,), (1395007350,), (1395007383,), (1395007412,), (1395007447,), (1395007460,), (1395007559,), (1395007589,), (1395007621,), (1395007652,), (1395007774,), (1395007776,), (1395007799,), (1395007838,), (1395007916,), (1395007917,), (1395007918,), (1395008038,), (1395008040,), (1395008077,), (1395008082,), (1395008083,), (1395008086,), (1395008091,), (1395008109,), (1395008110,), (1395008112,), (1395008179,), (1395008180,), (1395008183,), (1395008195,), (1395008199,), (1395008204,), (1395008239,), (1395008241,), (1395008243,), (1395008247,), (1395008251,), (1395008282,), (1395008283,), (1395008285,), (1395008287,), (1395008292,), (1395008332,), (1395008316,), (1395008318,), (1395008320,), (1395008323,), (1395008328,), (1395008409,), (1395008436,), (1395008460,), (1395008479,), (1395008529,), (1395008530,), (1395008531,), (1395008534,), (1395008539,), (1395008543,), (1395008557,), (1395008558,), (1395008560,), (1395008564,), (1395008577,), (1395008607,), (1395008609,), (1395008611,), (1395008637,), (1395008638,), (1395008639,), (1395008640,), (1395008670,), (1395008735,), (1395008765,), (1395008932,), (1395008961,), (1395008994,), (1395009020,), (1395009032,), (1395009080,), (1395009081,), (1395009091,), (1395009092,), (1395009130,), (1395009132,), (1395009136,), (1395009140,), (1395009159,), (1395009172,), (1395009175,), (1395009180,), (1395009184,), (1395009197,), (1395009199,), (1395009201,), (1395009205,), (1395009210,), (1395009213,), (1395009312,), (1395009349,), (1395009385,), (1395009391,), (1395009393,), (1395009395,), (1395009924,), (1395009955,), (1395009987,), (1395010023,), (1395010113,), (1395010118,), (1395010120,), (1395009856,), (1395009894,), (1395010128,), (1395010131,), (1395010136,), (1395010158,), (1395010375,), (1395010379,), (1395010392,), (1395010422,), (1395010811,), (1395010842,), (1395010871,), (1395011051,), (1395011079,), (1395011114,), (1395011149,), (1395011183,), (1395011328,), (1395011342,), (1395011343,), (1395011352,), (1395011357,), (1395011393,), (1395011395,), (1395011402,), (1395011405,), (1395011410,), (1395011415,), (1395011458,), (1395011459,), (1395011460,), (1395011463,), (1395011485,), (1395011486,), (1395011488,), (1395011926,), (1395011955,), (1395011986,), (1395012018,), (1395012056,), (1395012462,), (1395012496,), (1395012526,), (1395012560,), (1395012598,), (1395012924,), (1395012951,), (1395013403,), (1395013423,), (1395013450,), (1395013461,), (1395013474,), (1395013479,), (1395013508,), (1395013510,), (1395013512,), (1395013516,), (1395013544,), (1395013545,), (1395013547,), (1395013551,), (1395013612,), (1395013601,), (1395013606,), (1395013608,), (1395013684,), (1395013691,), (1395013705,), (1395013855,), (1395013857,), (1395013859,), (1395013864,), (1395013870,), (1395014073,), (1395014102,), (1395014136,), (1395014173,), (1395014180,), (1395014183,), (1395014217,), (1395014219,), (1395014222,), (1395014252,), (1395014253,), (1395014254,), (1395014257,), (1395014287,), (1395014289,), (1395014291,), (1395014294,), (1395014298,), (1395014317,), (1395014318,), (1395014319,), (1395014321,), (1395014324,), (1395014346,), (1395014347,), (1395014348,), (1395014350,), (1395014372,), (1395014374,), (1395014406,), (1395014407,), (1395014408,), (1395014535,), (1395014537,), (1395014540,), (1395014544,), (1395014608,), (1395014609,), (1395014659,), (1395014679,), (1395014723,), (1395014725,), (1395014766,), (1395014760,), (1395014762,), (1395014811,), (1395014851,), (1395014883,), (1395014919,), (1395014920,), (1395014921,), (1395014948,), (1395014951,), (1395014953,), (1395014984,), (1395014985,), (1395015515,), (1395015518,), (1395015544,), (1395015545,), (1395015549,), (1395015556,), (1395015560,), (1395015593,), (1395015599,), (1395015601,), (1395015604,), (1395015607,), (1395015645,), (1395015664,), (1395015665,), (1395015667,), (1395015668,), (1395015735,), (1395015719,), (1395015721,), (1395015723,), (1395015727,), (1395015730,), (1395015762,), (1395015763,), (1395015767,), (1395015770,), (1395016164,), (1395016171,), (1395016185,), (1395016320,), (1395016321,), (1395016322,), (1395016399,), (1395016401,), (1395016404,), (1395016409,), (1395016414,), (1395016433,), (1395016434,), (1395016435,), (1395016459,), (1395016464,), (1395016467,), (1395016472,), (1395016476,), (1395016511,), (1395016513,), (1395016516,), (1395016595,), (1395016623,), (1395016624,), (1395016687,), (1395016715,), (1395016716,), (1395016719,), (1395016826,), (1395016828,), (1395016849,), (1395016869,), (1395016879,), (1395016888,), (1395017051,), (1395017083,), (1395017115,), (1395017153,), (1395017328,), (1395017390,), (1395017452,), (1395017521,), (1395018064,), (1395018077,), (1395018109,), (1395018119,), (1395020706,), (1395020702,), (1395020704,), (1395020737,), (1395020738,), (1395020739,), (1395020741,), (1395020762,), (1395020763,), (1395020764,), (1395020766,), (1395020797,), (1395020808,), (1395020816,), (1395020820,), (1395020825,), (1395020882,), (1395020883,), (1395020884,), (1395020912,), (1395020921,), (1395020923,), (1395020928,), (1395020938,), (1395020942,), (1395020959,), (1395020961,), (1395020964,), (1395020970,), (1395020976,), (1395020979,), (1395020998,), (1395021001,), (1395021004,), (1395021033,), (1395021034,), (1395021035,), (1395021037,), (1395021040,), (1395021044,), (1395021070,), (1395021072,), (1395021073,), (1395021077,), (1395021101,), (1395021110,), (1395021117,), (1395021169,), (1395021191,), (1395021222,), (1395021256,), (1395021421,), (1395021422,), (1395021538,), (1395021526,), (1395021528,), (1395021530,), (1395021534,), (1395021562,), (1395021564,), (1395021565,), (1395021569,), (1395021574,), (1395021575,), (1395021603,), (1395021624,), (1395021626,), (1395021630,), (1395021653,), (1395021661,), (1395021678,), (1395021680,), (1395021681,), (1395021683,), (1395021687,), (1395021690,), (1395021694,), (1395021698,), (1395021718,), (1395021720,), (1395021722,), (1395021908,), (1395021965,), (1395022014,), (1395022211,), (1395022268,), (1395022671,), (1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,), (1395023947,), (1395023977,), (1395024015,), (1395024079,), (1395024076,), (1395024077,), (1395024156,), (1395024159,), (1395024164,), (1395024197,), (1395024198,), (1395024200,), (1395024203,), (1395024434,), (1395024474,), (1395024524,), (1395024558,), (1395024592,), (1395024625,), (1395024817,), (1395024819,), (1395024821,), (1395025059,), (1395025072,), (1395025205,), (1395025206,), (1395025208,), (1395025212,), (1395025216,), (1395025234,), (1395025235,), (1395025236,), (1395025239,), (1395025243,), (1395025246,), (1395025269,), (1395025270,), (1395025272,), (1395025275,), (1395025311,), (1395025313,), (1395025320,), (1395025326,), (1395025331,), (1395025348,), (1395025352,), (1395025357,), (1395025359,), (1395025380,), (1395025381,), (1395025383,), (1395025386,), (1395025411,), (1395025412,), (1395025414,), (1395025418,), (1395025427,), (1395025448,), (1395025449,), (1395025450,), (1395025452,), (1395025456,), (1395025495,), (1395025503,), (1395025508,), (1395025511,), (1395025569,), (1395025573,), (1395025575,), (1395025592,), (1395025593,), (1395025538,), (1395025540,), (1395025552,), (1395025611,), (1395025613,), (1395025615,), (1395025618,), (1395025640,), (1395025642,), (1395025644,), (1395025648,), (1395025675,), (1395025676,), (1395025678,), (1395025681,), (1395025701,), (1395025702,), (1395025703,), (1395025706,), (1395025710,), (1395025757,), (1395025759,), (1395025761,), (1395025765,), (1395025770,), (1395025774,), (1395025789,), (1395025790,), (1395025795,), (1395025832,), (1395025835,), (1395025838,), (1395025842,), (1395025848,), (1395025851,), (1395025867,), (1395025868,), (1395025869,), (1395026007,), (1395026009,), (1395026011,), (1395026041,), (1395026042,), (1395026043,), (1395026046,), (1395026114,), (1395026115,), (1395026116,), (1395026119,), (1395026124,), (1395026128,), (1395026147,), (1395026149,), (1395026151,), (1395026155,), (1395026189,), (1395026285,), (1395026287,), (1395026288,), (1395026295,), (1395026299,), (1395026365,), (1395026370,), (1395026372,), (1395026582,), (1395026527,), (1395026557,), (1395026562,), (1395026567,), (1395026578,), (1395026597,), (1395026605,), (1395026610,), (1395026614,), (1395026619,), (1395026622,), (1395026644,), (1395026645,), (1395026646,), (1395026668,), (1395026670,), (1395026672,), (1395026677,), (1395026681,), (1395026809,), (1395026827,), (1395026920,), (1395027503,), (1395027549,), (1395027560,), (1395027592,), (1395027644,), (1395027821,), (1395027822,), (1395027838,), (1395027841,), (1395027862,), (1395027864,), (1395027865,), (1395028352,), (1395028359,), (1395028393,), (1395028467,), (1395028983,), (1395028907,), (1395028941,), (1395029623,), (1395029723,), (1395029815,), (1395029903,), (1395029972,), (1395030063,), (1395030566,), (1395030568,), (1395030570,), (1395030839,), (1395030844,), (1395030878,), (1395030882,), (1395030886,), (1395030890,), (1395030912,), (1395030913,), (1395030915,), (1395030918,), (1395030923,), (1395031109,), (1395031111,), (1395031112,), (1395031115,), (1395031165,), (1395031167,), (1395031172,), (1395031181,), (1395031200,), (1395031204,), (1395031252,), (1395031254,), (1395031257,), (1395031262,), (1395031307,), (1395031372,), (1395031376,), (1395031795,), (1395031811,), (1395031816,), (1395031848,), (1395031850,), (1395031851,), (1395031853,), (1395031960,), (1395032096,), (1395032099,), (1395032102,), (1395032105,), (1395032139,), (1395032126,), (1395032132,), (1395032246,), (1395032277,), (1395032658,), (1395032670,), (1395032698,), (1395032699,), (1395032786,), (1395032792,), (1395032798,), (1395032805,), (1395032808,), (1395032809,), (1395032819,), (1395032822,), (1395032826,), (1395032829,), (1395032835,), (1395032837,), (1395032854,), (1395032859,), (1395032881,), (1395032884,), (1395032886,), (1395032890,), (1395032894,), (1395032947,), (1395032949,), (1395032954,), (1395032961,), (1395032967,), (1395033009,), (1395033014,), (1395033018,), (1395033021,), (1395033044,), (1395033053,), (1395033058,), (1395033071,), (1395033087,), (1395033105,), (1395033130,), (1395033170,), (1395033214,), (1395033237,), (1395033238,), (1395033265,), (1395033298,), (1395033356,), (1395033360,), (1395033486,), (1395033489,), (1395033490,), (1395033501,), (1395033506,), (1395033525,), (1395033554,), (1395033556,), (1395033616,), (1395033615,), (1395033756,), (1395033758,), (1395033760,), (1395033762,), (1395033786,), (1395033790,), (1395033799,), (1395033803,), (1395033846,), (1395033854,), (1395033862,), (1395033871,), (1395033884,), (1395033934,), (1395033938,), (1395034036,), (1395034039,), (1395034062,), (1395034063,), (1395034064,), (1395034115,), (1395034191,), (1395034547,), (1395034542,), (1395034544,), (1395034590,), (1395034614,), (1395035064,), (1395035089,), (1395035092,), (1395035095,), (1395035099,), (1395035132,), (1395035135,), (1395037113,), (1395037058,), (1395037074,), (1395037250,), (1395037253,), (1395037256,), (1395037370,), (1395037393,), (1395037414,), (1395037416,), (1395037419,), (1395037429,), (1395037432,), (1395037435,), (1395037447,), (1395037451,), (1395037454,), (1395037457,), (1395037462,), (1395037467,), (1395037483,), (1395037499,), (1395037505,), (1395037510,), (1395037514,), (1395037581,), (1395037584,), (1395037585,), (1395037590,), (1395037659,), (1395037663,), (1395037665,), (1395037669,), (1395037866,), (1395037913,), (1395038215,), (1395038218,), (1395038242,), (1395038340,), (1395038448,), (1395047953,), (1395048309,), (1395048310,), (1395048350,), (1395048351,), (1395048352,), (1395048354,), (1395048357,), (1395048366,), (1395048437,), (1395048439,), (1395048441,), (1395048452,), (1395048477,), (1395048508,), (1395048509,), (1395048510,), (1395048556,), (1395048558,), (1395048561,), (1395048566,), (1395048589,), (1395048593,), (1395048595,), (1395048601,), (1395048610,), (1395048673,), (1395048676,), (1395048679,), (1395048728,), (1395048753,), (1395049603,), (1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,), (1395052030,), (1395052033,), (1395052035,), (1395052074,), (1395052069,), (1395052071,), (1395052154,), (1395052182,), (1395052184,), (1395052186,), (1395052191,), (1395052194,), (1395052331,), (1395052360,), (1395052419,), (1395052453,), (1395052644,), (1395052647,), (1395052651,), (1395052656,), (1395052661,), (1395052665,), (1395052676,), (1395052677,), (1395052679,), (1395052682,), (1395052684,), (1395052688,), (1395052705,), (1395052706,), (1395052707,), (1395052746,), (1395052748,), (1395052749,), (1395052753,), (1395052773,), (1395052774,), (1395052775,), (1395052777,), (1395052782,), (1395052787,), (1395052804,), (1395052805,), (1395052807,), (1395052811,), (1395052815,), (1395053125,), (1395053153,), (1395053154,), (1395053161,), (1395053175,), (1395053249,), (1395053250,), (1395053251,), (1395053253,), (1395053257,), (1395053439,), (1395053441,), (1395053459,), (1395053466,), (1395053605,), (1395053641,), (1395053650,), (1395053652,), (1395053671,), (1395053673,), (1395053674,), (1395053676,), (1395053678,), (1395053720,), (1395053721,), (1395053723,), (1395053725,), (1395053778,), (1395053782,), (1395053859,), (1395053871,), (1395053872,), (1395053752,), (1395053755,), (1395053759,), (1395053774,), (1395053878,), (1395053881,), (1395053884,), (1395053888,), (1395053900,), (1395053904,), (1395053916,), (1395053918,), (1395053919,), (1395053935,), (1395053936,), (1395053937,), (1395053939,), (1395053942,), (1395053945,), (1395054150,), (1395054186,), (1395054220,), (1395054259,), (1395054295,), (1395054665,), (1395054696,), (1395054740,), (1395054793,), (1395054832,), (1395054866,), (1395055016,), (1395055039,), (1395055042,), (1395055062,), (1395055093,), (1395055178,), (1395055181,), (1395055183,), (1395055188,), (1395055297,), (1395055299,), (1395055327,), (1395055335,), (1395055352,), (1395055354,), (1395055356,), (1395055360,), (1395055365,), (1395055397,), (1395055398,), (1395055399,), (1395055401,), (1395055422,), (1395055423,), (1395055424,), (1395055499,), (1395055868,), (1395055867,), (1395055889,), (1395055911,), (1395055980,), (1395055981,), (1395055982,), (1395055984,), (1395055986,), (1395056005,), (1395056007,), (1395056009,), (1395056012,), (1395056016,), (1395056142,), (1395056144,), (1395056145,), (1395056165,), (1395056167,), (1395056169,), (1395056171,), (1395056198,), (1395056201,), (1395056204,), (1395056208,), (1395056227,), (1395056264,), (1395056441,), (1395056446,), (1395056458,), (1395056586,), (1395056621,), (1395056666,), (1395056699,), (1395056732,), (1395057051,), (1395057090,), (1395057131,), (1395057164,), (1395057199,), (1395057485,), (1395057432,), (1395057440,), (1395057460,), (1395057477,), (1395057535,), (1395057570,), (1395057600,), (1395057634,), (1395057739,), (1395057741,), (1395057758,), (1395057764,), (1395057900,), (1395057901,), (1395057903,), (1395057967,), (1395057968,), (1395057969,), (1395058016,), (1395058023,), (1395058024,), (1395058027,), (1395058076,), (1395058078,), (1395058080,), (1395058088,), (1395058147,), (1395058148,), (1395058149,), (1395058176,), (1395058178,), (1395058180,), (1395058184,), (1395058207,), (1395058208,), (1395058209,), (1395058211,), (1395058239,), (1395058241,), (1395058245,), (1395058249,), (1395058272,), (1395058273,), (1395058278,), (1395058295,), (1395058300,), (1395058326,), (1395058327,), (1395058366,), (1395058401,), (1395058403,), (1395058404,), (1395058407,), (1395058412,), (1395058460,), (1395058434,), (1395058436,), (1395058438,), (1395058445,), (1395058456,), (1395058475,), (1395058476,), (1395058481,), (1395058541,), (1395058542,), (1395058544,), (1395058553,), (1395058559,), (1395058612,), (1395058615,), (1395058622,), (1395058628,), (1395058634,), (1395058638,), (1395058741,), (1395058758,), (1395058760,), (1395058764,), (1395058784,), (1395058785,), (1395058786,), (1395058788,), (1395058792,), (1395058826,), (1395058828,), (1395058830,), (1395058833,), (1395058839,), (1395058881,), (1395058882,), (1395058883,), (1395058885,), (1395058931,), (1395058935,), (1395058946,), (1395058951,), (1395059026,), (1395059027,), (1395059029,), (1395059060,), (1395059063,), (1395059089,), (1395059091,), (1395059093,), (1395059097,), (1395059102,), (1395059120,), (1395059121,), (1395059122,), (1395059123,), (1395059125,), (1395059148,), (1395059149,), (1395059150,), (1395059152,), (1395059246,), (1395059253,), (1395059263,), (1395059267,), (1395059272,), (1395059277,), (1395059415,), (1395059424,), (1395059425,), (1395059426,), (1395059432,), (1395059469,), (1395059481,), (1395059356,), (1395059385,), (1395059387,), (1395059407,), (1395059411,), (1395059536,), (1395059553,), (1395059557,), (1395059599,), (1395059600,), (1395059601,), (1395059603,), (1395059607,), (1395059609,), (1395059624,), (1395059626,), (1395059628,), (1395059631,), (1395059634,), (1395059657,), (1395059658,), (1395059671,), (1395059714,), (1395059717,), (1395059720,), (1395059766,), (1395059768,), (1395059770,), (1395059840,), (1395059843,), (1395059845,), (1395059868,), (1395059874,), (1395059927,), (1395059929,), (1395059933,), (1395060172,), (1395060194,), (1395060231,), (1395060235,), (1395060250,), (1395060270,), (1395060341,), (1395060343,), (1395060344,), (1395060347,), (1395060352,), (1395060369,), (1395060373,), (1395060375,), (1395060387,), (1395060457,), (1395060458,), (1395060459,), (1395060465,), (1395060474,), (1395060479,), (1395060633,), (1395060674,), (1395060704,), (1395060739,), (1395060769,), (1395060779,), (1395060832,), (1395060863,), (1395060898,), (1395060901,), (1395060903,), (1395060906,), (1395060909,), (1395060915,), (1395060919,), (1395060979,), (1395060963,), (1395060965,), (1395060967,), (1395060971,), (1395060976,), (1395061001,), (1395061002,), (1395061003,), (1395061012,), (1395061148,), (1395061150,), (1395061152,), (1395061155,), (1395061180,), (1395061200,), (1395061202,), (1395061203,), (1395061208,), (1395061353,), (1395061355,), (1395061357,), (1395061361,), (1395061366,), (1395061525,), (1395061526,), (1395061534,), (1395061565,), (1395061599,), (1395062036,), (1395062073,), (1395062109,), (1395062132,), (1395062159,), (1395062160,), (1395062161,), (1395062194,), (1395062196,), (1395062199,), (1395062204,), (1395062208,), (1395062210,), (1395062227,), (1395062233,), (1395062235,), (1395062237,), (1395062243,), (1395062288,), (1395062289,), (1395062291,), (1395062484,), (1395062489,), (1395062491,), (1395062494,), (1395062498,), (1395062503,), (1395062537,), (1395062538,), (1395062539,), (1395062541,), (1395062545,), (1395062550,), (1395062747,), (1395062750,), (1395062753,), (1395062808,), (1395062807,), (1395062867,), (1395062869,), (1395062871,), (1395062875,), (1395062880,), (1395063371,), (1395063404,), (1395063437,), (1395063471,), (1395063734,), (1395063735,), (1395063736,), (1395063767,), (1395063799,), (1395063843,), (1395063850,), (1395063852,), (1395063910,), (1395063911,), (1395063912,), (1395063914,), (1395063918,), (1395063935,), (1395063937,), (1395063939,), (1395063943,), (1395063947,), (1395063950,), (1395063960,), (1395063963,), (1395063967,), (1395064001,), (1395064102,), (1395064147,), (1395064148,), (1395064179,), (1395064195,), (1395064198,), (1395064213,), (1395064287,), (1395064285,), (1395064286,), (1395064495,), (1395064496,), (1395064511,), (1395064542,), (1395064551,), (1395064554,), (1395064557,), (1395064607,), (1395064641,), (1395064677,), (1395064712,), (1395064737,), (1395064743,), (1395064771,), (1395064775,), (1395064779,), (1395064783,), (1395064795,), (1395064831,), (1395064833,), (1395064835,), (1395064922,), (1395064923,), (1395064930,), (1395064941,), (1395064946,), (1395064949,), (1395064966,), (1395064967,), (1395064969,), (1395064973,), (1395064978,), (1395064981,), (1395065005,), (1395065006,), (1395065008,), (1395065013,), (1395065017,), (1395065022,), (1395065032,), (1395065033,), (1395065035,), (1395065044,), (1395065047,), (1395065051,), (1395065057,), (1395065062,), (1395065066,), (1395065091,), (1395065092,), (1395065093,), (1395065096,), (1395065101,), (1395065105,), (1395065121,), (1395065219,), (1395065221,), (1395065234,), (1395065239,), (1395065243,), (1395065249,), (1395065323,), (1395065326,), (1395065333,), (1395065334,), (1395065336,), (1395065338,), (1395065341,), (1395065310,), (1395065312,), (1395065316,), (1395065319,), (1395065347,), (1395065351,), (1395065354,), (1395065364,), (1395065380,), (1395065382,), (1395065384,), (1395065387,), (1395065392,), (1395065397,), (1395065441,), (1395065459,), (1395065463,), (1395065467,), (1395065472,), (1395065474,), (1395065480,), (1395065482,), (1395065484,), (1395065514,), (1395065523,), (1395065526,), (1395065531,), (1395065535,), (1395065703,), (1395065737,), (1395065982,), (1395065983,), (1395066010,), (1395066054,), (1395066084,), (1395066097,), (1395066171,), (1395066176,), (1395066178,), (1395066181,), (1395066185,), (1395066196,), (1395066197,), (1395066198,), (1395066200,), (1395066204,), (1395066240,), (1395066241,), (1395066242,), (1395066243,), (1395066249,), (1395066253,), (1395066268,), (1395066270,), (1395066272,), (1395066316,), (1395066318,), (1395066325,), (1395066329,), (1395066334,), (1395066376,), (1395066393,), (1395066394,), (1395066402,), (1395066412,), (1395066520,), (1395066523,), (1395066527,), (1395066532,), (1395066536,), (1395066539,), (1395066543,), (1395066545,), (1395066548,), (1395066552,), (1395066557,), (1395066575,), (1395066578,), (1395066580,), (1395066589,), (1395066613,), (1395066598,), (1395066602,), (1395066606,), (1395066609,), (1395066618,), (1395066620,), (1395066623,), (1395066628,), (1395066632,), (1395066637,), (1395066656,), (1395066658,), (1395066664,), (1395066670,), (1395066679,), (1395066684,), (1395066694,), (1395066697,), (1395066701,), (1395066712,), (1395066716,), (1395066718,), (1395066720,), (1395066722,), (1395066726,), (1395066727,), (1395066730,), (1395066732,), (1395066735,), (1395066737,), (1395066742,), (1395066744,), (1395066757,), (1395066761,), (1395066763,), (1395066766,), (1395066788,), (1395066790,), (1395066791,), (1395066971,), (1395066972,), (1395066974,), (1395066978,), (1395066983,), (1395066987,), (1395067018,), (1395067019,), (1395067020,), (1395067022,), (1395067070,), (1395067071,), (1395067074,), (1395067078,), (1395067082,), (1395067084,), (1395067094,), (1395067097,), (1395067100,), (1395067104,), (1395067113,), (1395067115,), (1395067118,), (1395067123,), (1395067127,), (1395067131,), (1395067149,), (1395067157,), (1395067185,), (1395067186,), (1395067188,), (1395067190,), (1395067230,), (1395067235,), (1395067237,), (1395067243,), (1395067251,), (1395067900,), (1395067903,), (1395067907,), (1395067910,), (1395067926,), (1395067928,), (1395067930,), (1395067932,), (1395067975,), (1395067978,), (1395068003,), (1395068007,), (1395068010,), (1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,), (1395070626,), (1395070632,), (1395070640,), (1395070644,), (1395070648,), (1395070651,), (1395070659,), (1395070661,), (1395070662,), (1395070664,), (1395070669,), (1395070674,), (1395070677,), (1395070693,), (1395071161,), (1395071007,), (1395071042,), (1395071075,), (1395071111,), (1395071146,), (1395071272,), (1395071307,), (1395071338,), (1395071911,), (1395071958,), (1395071997,), (1395072023,), (1395072046,), (1395072071,), (1395072156,), (1395072157,), (1395072158,), (1395072161,), (1395072165,), (1395072170,), (1395072188,), (1395072190,), (1395072192,), (1395072195,), (1395072272,), (1395072273,), (1395072274,), (1395072276,), (1395072280,), (1395072283,), (1395072301,), (1395072302,), (1395072304,), (1395072307,), (1395072334,), (1395072336,), (1395072337,), (1395072359,), (1395072446,), (1395072448,), (1395072451,), (1395072455,), (1395072459,), (1395072462,), (1395072470,), (1395072475,), (1395072477,), (1395072482,), (1395072488,), (1395072497,), (1395072503,), (1395072511,), (1395072516,), (1395072529,), (1395072531,), (1395072533,), (1395072558,), (1395072559,), (1395072560,), (1395072563,), (1395072567,), (1395072600,), (1395072601,), (1395072605,), (1395072608,), (1395072612,), (1395072616,), (1395072659,), (1395072661,), (1395072663,), (1395072694,), (1395072696,), (1395072697,), (1395072699,), (1395072703,), (1395072706,), (1395072732,), (1395072734,), (1395072737,), (1395072741,), (1395072744,), (1395072747,), (1395074363,), (1395074529,), (1395074536,), (1395074563,), (1395074564,), (1395074565,), (1395074567,), (1395074633,), (1395074646,), (1395074669,), (1395074671,), (1395074675,), (1395074677,), (1395074693,), (1395074698,), (1395074700,), (1395074702,), (1395074705,), (1395074762,), (1395074763,), (1395074764,), (1395074799,), (1395074801,), (1395074803,), (1395074807,), (1395074811,), (1395074830,), (1395074831,), (1395074832,), (1395074834,), (1395074837,), (1395074860,), (1395074862,), (1395074864,), (1395074897,), (1395074898,), (1395074899,), (1395074941,), (1395074943,), (1395074984,), (1395074988,), (1395074989,), (1395074992,), (1395074995,), (1395074998,), (1395075046,), (1395075049,), (1395075051,), (1395075054,), (1395075058,), (1395075078,), (1395075080,), (1395075082,), (1395075086,), (1395075090,), (1395075096,), (1395075106,), (1395075109,), (1395075130,), (1395075113,), (1395075116,), (1395075118,), (1395075122,), (1395075126,), (1395075163,), (1395075165,), (1395075167,), (1395075317,), (1395075320,), (1395075342,), (1395075347,), (1395075348,), (1395075367,), (1395075369,), (1395075371,), (1395075375,), (1395075378,), (1395075381,), (1395075407,), (1395075411,), (1395075418,), (1395075422,), (1395075460,), (1395075463,), (1395075488,), (1395075489,), (1395075490,), (1395075517,), (1395075521,), (1395075523,), (1395075526,), (1395075530,), (1395075557,), (1395075561,), (1395075564,), (1395075579,), (1395075583,), (1395075588,), (1395075603,), (1395075604,), (1395075605,), (1395075606,), (1395075610,), (1395075647,), (1395075651,), (1395075657,), (1395075661,), (1395075664,), (1395075678,), (1395075679,), (1395075680,), (1395075683,), (1395075705,), (1395075707,), (1395075708,), (1395075712,), (1395075717,), (1395075721,), (1395075737,), (1395075738,), (1395075739,), (1395075741,), (1395075817,), (1395075825,), (1395075828,), (1395075833,), (1395075837,), (1395075840,), (1395075874,), (1395075885,), (1395075889,), (1395075893,), (1395075894,), (1395075896,), (1395075861,), (1395075865,), (1395075869,), (1395075902,), (1395075906,), (1395075909,), (1395075912,), (1395075935,), (1395075936,), (1395075937,), (1395075940,), (1395075945,), (1395075950,), (1395075978,), (1395075980,), (1395075982,), (1395075985,), (1395075989,), (1395075993,), (1395076014,), (1395076015,), (1395076017,), (1395076022,), (1395076027,), (1395076029,), (1395076041,), (1395076044,), (1395076073,), (1395076076,), (1395076078,), (1395076082,), (1395076087,), (1395076091,), (1395076107,), (1395076108,), (1395076110,), (1395076125,), (1395076130,), (1395076156,), (1395076157,), (1395076159,), (1395076163,), (1395076168,), (1395076186,), (1395076200,), (1395076203,), (1395076208,), (1395076212,), (1395076216,), (1395076241,), (1395076251,), (1395076253,), (1395076257,), (1395076260,), (1395076264,), (1395076276,), (1395076309,), (1395076311,), (1395076334,), (1395076338,), (1395076341,), (1395076348,), (1395076354,), (1395076356,), (1395076362,), (1395076369,), (1395076376,), (1395076537,), (1395076567,), (1395076578,), (1395076611,), (1395076773,), (1395076774,), (1395076800,), (1395076838,), (1395076873,), (1395076955,), (1395076974,), (1395077010,), (1395077046,), (1395077092,), (1395077249,), (1395077204,), (1395077227,), (1395077240,), (1395077244,), (1395077330,), (1395077332,), (1395077334,), (1395077336,), (1395077395,), (1395077511,), (1395077544,), (1395077759,), (1395077761,), (1395077763,), (1395077767,), (1395077897,), (1395077898,), (1395077899,), (1395077924,), (1395077925,), (1395077926,), (1395077929,), (1395077951,), (1395077953,), (1395077964,), (1395078041,), (1395078076,), (1395078108,), (1395078140,), (1395078277,), (1395078291,), (1395078293,), (1395078319,), (1395078323,), (1395078402,), (1395078403,), (1395078407,), (1395078412,), (1395078416,), (1395078419,), (1395078428,), (1395078431,), (1395078434,), (1395078436,), (1395078439,), (1395078443,), (1395078448,), (1395078452,), (1395078456,), (1395078475,), (1395078480,), (1395078509,), (1395078540,), (1395078551,), (1395078560,), (1395078621,), (1395078622,), (1395078623,), (1395078626,), (1395078646,), (1395078651,), (1395078655,), (1395078660,), (1395078663,), (1395078712,), (1395078690,), (1395078700,), (1395078705,), (1395078708,), (1395078729,), (1395078748,), (1395078756,), (1395078761,), (1395078764,), (1395078780,), (1395078782,), (1395078784,), (1395078788,), (1395078793,), (1395078838,), (1395078839,), (1395078840,), (1395078842,), (1395078845,), (1395078850,), (1395078870,), (1395078873,), (1395078876,), (1395078881,), (1395078885,), (1395078888,), (1395078895,), (1395078897,), (1395078902,), (1395078908,), (1395078916,), (1395078921,), (1395078926,), (1395078946,), (1395078947,), (1395078948,), (1395078977,), (1395079014,), (1395079022,), (1395079099,), (1395079100,), (1395079101,), (1395079103,), (1395079107,), (1395079140,), (1395079141,), (1395079142,), (1395079172,), (1395079175,), (1395079177,), (1395079180,), (1395079185,), (1395079188,), (1395079199,), (1395079201,), (1395079203,), (1395079206,), (1395079211,), (1395079284,), (1395079285,), (1395079286,), (1395079289,), (1395079388,), (1395079389,), (1395079391,), (1395079393,), (1395079398,), (1395079402,), (1395079431,), (1395079440,), (1395079442,), (1395079449,), (1395079454,), (1395079457,), (1395079509,), (1395079510,), (1395079514,), (1395079519,), (1395079523,), (1395079527,), (1395079539,), (1395079540,), (1395079541,), (1395079542,), (1395079544,), (1395079584,), (1395079565,), (1395079569,), (1395079575,), (1395079581,), (1395079598,), (1395079600,), (1395079603,), (1395079607,), (1395079611,), (1395079657,), (1395079965,), (1395079968,), (1395080002,), (1395080128,), (1395080129,), (1395080130,), (1395080151,), (1395080152,), (1395080153,), (1395080155,), (1395080158,), (1395080179,), (1395080180,), (1395080181,), (1395080183,), (1395080185,), (1395080243,), (1395080244,), (1395080245,), (1395080248,), (1395080250,), (1395080254,), (1395080270,), (1395080273,), (1395080277,), (1395080301,), (1395080302,), (1395080309,), (1395080326,), (1395080330,), (1395080333,), (1395080343,), (1395080344,), (1395080362,), (1395080363,), (1395080365,), (1395080369,), (1395080374,), (1395080378,), (1395080402,), (1395080403,), (1395080404,), (1395080407,), (1395080409,), (1395080428,), (1395080430,), (1395080432,), (1395080472,), (1395080473,), (1395080474,), (1395080476,), (1395080509,), (1395080541,), (1395080582,), (1395080585,), (1395080615,), (1395080609,), (1395080611,), (1395080657,), (1395080664,), (1395080666,), (1395080668,), (1395080690,), (1395080692,), (1395080694,), (1395080698,), (1395080703,), (1395080706,), (1395080750,), (1395080756,), (1395080757,), (1395080768,), (1395080784,), (1395080787,), (1395080864,), (1395080866,), (1395080870,), (1395080875,), (1395080879,), (1395080882,), (1395080890,), (1395080892,), (1395080897,), (1395080898,), (1395080899,), (1395080903,), (1395080962,), (1395080966,), (1395081203,), (1395081235,), (1395081270,), (1395081410,), (1395081411,), (1395081412,), (1395081439,), (1395081443,), (1395081456,), (1395081470,), (1395081475,), (1395081510,), (1395081511,), (1395081513,), (1395081538,), (1395081540,), (1395081544,), (1395081549,), (1395081554,), (1395081567,), (1395081581,), (1395081583,), (1395081585,), (1395081792,), (1395081627,), (1395081667,), (1395081713,), (1395081752,), (1395081924,), (1395081926,), (1395081928,), (1395081988,), (1395081989,), (1395081990,), (1395081995,), (1395082004,), (1395082009,), (1395082030,), (1395082032,), (1395082034,), (1395082038,), (1395082097,), (1395082098,), (1395082100,), (1395082103,), (1395082239,), (1395082241,), (1395082243,), (1395082288,), (1395082289,), (1395082294,), (1395082304,), (1395082311,), (1395082315,), (1395082326,), (1395082327,), (1395082331,), (1395082333,), (1395082334,), (1395082341,), (1395082354,), (1395082423,), (1395082424,), (1395082425,), (1395082427,), (1395082431,), (1395082667,), (1395082681,), (1395082692,), (1395082728,), (1395082737,), (1395082740,), (1395082808,), (1395082811,), (1395082828,), (1395082859,), (1395082891,), (1395082897,), (1395082924,), (1395083130,), (1395083139,), (1395083148,), (1395083163,), (1395083198,), (1395083255,), (1395083418,), (1395083419,), (1395083420,), (1395083423,), (1395083480,), (1395083488,), (1395083492,), (1395083495,), (1395083498,), (1395083501,), (1395083687,), (1395083759,), (1395083827,), (1395083896,), (1395083965,), (1395084691,), (1395084759,), (1395084803,), (1395084839,), (1395084878,), (1395085139,), (1395084624,), (1395084907,), (1395084911,), (1395084915,), (1395084929,), (1395084951,), (1395084991,), (1395085210,), (1395085222,), (1395085226,), (1395085262,), (1395085272,), (1395085275,), (1395085526,), (1395085561,), (1395085591,), (1395085625,), (1395085914,), (1395085944,), (1395085964,), (1395085969,), (1395085984,), (1395086017,), (1395086102,), (1395086145,), (1395086186,), (1395086352,), (1395086393,), (1395086402,), (1395086432,), (1395086446,), (1395086529,), (1395086530,), (1395086531,), (1395086534,), (1395086539,), (1395086556,), (1395086558,), (1395086774,), (1395086775,), (1395086776,), (1395086797,), (1395086799,), (1395086801,), (1395086844,), (1395086845,), (1395086846,), (1395086848,), (1395086869,), (1395086871,), (1395087115,), (1395087145,), (1395087193,), (1395087240,), (1395087613,), (1395087615,), (1395087618,), (1395087621,), (1395087625,), (1395087797,), (1395087798,), (1395087801,), (1395087808,), (1395087852,), (1395087955,), (1395088229,), (1395088289,), (1395088331,), (1395088366,), (1395088419,), (1395088612,), (1395088542,), (1395088575,), (1395088774,), (1395088776,), (1395088778,), (1395088791,), (1395088828,), (1395088862,), (1395089053,), (1395089077,), (1395089089,), (1395089091,), (1395089097,), (1395089354,), (1395089384,), (1395089425,), (1395089459,), (1395089492,), (1395089527,), (1395089691,), (1395089693,), (1395089714,), (1395089717,), (1395089758,), (1395089832,), (1395090189,), (1395090200,), (1395090219,), (1395090258,), (1395090259,), (1395090260,), (1395090262,), (1395090267,), (1395090316,), (1395090319,), (1395090322,), (1395090338,), (1395090347,), (1395090510,), (1395090543,), (1395090574,), (1395090829,), (1395090836,), (1395090839,), (1395090844,), (1395090849,), (1395090852,), (1395090860,), (1395090862,), (1395090879,), (1395090880,), (1395090881,), (1395091137,), (1395091157,), (1395091165,), (1395091214,), (1395091230,), (1395091320,), (1395091322,), (1395091323,), (1395091326,), (1395091346,), (1395091348,), (1395091350,), (1395091353,), (1395091376,), (1395091377,), (1395091379,), (1395091382,), (1395091387,), (1395091455,), (1395091462,), (1395091463,), (1395091465,), (1395091467,), (1395091469,), (1395091414,), (1395091437,), (1395091440,), (1395091444,), (1395091449,), (1395091483,), (1395091487,), (1395091491,), (1395091495,), (1395091499,), (1395091507,), (1395091508,), (1395091510,), (1395091513,), (1395091518,), (1395091522,), (1395091620,), (1395091623,), (1395091672,), (1395091673,), (1395091676,), (1395091708,), (1395091712,), (1395091734,), (1395091764,), (1395091779,), (1395091791,), (1395091792,), (1395091795,), (1395091818,), (1395092003,), (1395092010,), (1395092027,), (1395092036,), (1395092137,), (1395092162,), (1395092167,), (1395092171,), (1395092182,), (1395092200,), (1395092202,), (1395092204,), (1395092208,), (1395092213,), (1395092267,), (1395092268,), (1395092269,), (1395092271,), (1395092390,), (1395092425,), (1395097302,), (1395097347,), (1395093053,), (1395095423,), (1395097301,), (1395097325,), (1395097552,), (1395098317,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18112025': {'nb_upload': 4, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28676760]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395098317] map_info['map_portfolio_photo'] : {28676760: [1395098317, 1395097552, 1395097325, 1395097301]} final : True mtd_id 4302 list_pids : [1395098317] Looping around the photos to save general results len do output : 1 /28676760Didn'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, '4070044') ('4302', '28676760', '1395098317', None, None, None, None, None, '4070044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '28676760', 'None', None, None, None, None, '4070044'), ('4302', '28676760', '1395098317', None, None, None, None, None, '4070044')] time used for this insertion : 0.013248682022094727 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.348971843719482 time spend to save output : 0.013380765914916992 total time spend for step 5 : 4.362352609634399 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 (4070044) 1.90user 2.49system 0:11.34elapsed 38%CPU (0avgtext+0avgdata 155396maxresident)k 768inputs+3936outputs (20major+62239minor)pagefaults 0swaps