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 : 1789822 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 (3672509) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3672509) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596990 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3672509'] with mtr_portfolio_ids : ['26596990'] and first list_photo_ids : [] new path : /proc/1789822/ Name: python3 Umask: 0002 State: R (running) Tgid: 1789822 Ngid: 0 Pid: 1789822 PPid: 1789821 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1789822 NSpid: 1789822 NSpgid: 1788058 NSsid: 1788058 VmPeak: 1107512 kB VmSize: 1107512 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98276 kB VmRSS: 98276 kB RssAnon: 60396 kB RssFile: 37880 kB RssShmem: 0 kB VmData: 866264 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 51 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1789822', 'Ngid': '0', 'Pid': '1789822', 'PPid': '1789821', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1789822', 'NSpid': '1789822', 'NSpgid': '1788058', 'NSsid': '1788058', 'VmPeak': '1107512 kB', 'VmSize': '1107512 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98276 kB', 'VmRSS': '98276 kB', 'RssAnon': '60396 kB', 'RssFile': '37880 kB', 'RssShmem': '0 kB', 'VmData': '866264 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '51', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '1789822', '1107512', '0', '1107512', '866264', '98276', b'', 'marlene', '3672509') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26596990) 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 (3672509 ) ) 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 (26596990) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381896241, 'portfolio_id': 26596990}, {'photo_id': 1381896238, 'portfolio_id': 26596990}, {'photo_id': 1381894424, 'portfolio_id': 26596990}, {'photo_id': 1381892910, 'portfolio_id': 26596990}, {'photo_id': 1381892908, 'portfolio_id': 26596990}, {'photo_id': 1381892501, 'portfolio_id': 26596990}, {'photo_id': 1381892211, 'portfolio_id': 26596990}, {'photo_id': 1381892153, 'portfolio_id': 26596990}, {'photo_id': 1381892151, 'portfolio_id': 26596990}, {'photo_id': 1381890943, 'portfolio_id': 26596990}] map_portfolio_id_photo_id: {26596990: [1381896241, 1381896238, 1381894424, 1381892910, 1381892908, 1381892501, 1381892211, 1381892153, 1381892151, 1381890943]} ##### 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.014372110366821289 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Sep 5 23: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 (26596990) 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 : 26596990 get user id for portfolio 26596990 get sub ptf for main ptf 26596990, type 3726 and hashtags ['Carton_brun', 'papier', 'Carton_gris', 'kraft', 'plastique', 'Teint_Dans_La_Masse', 'metal', 'cartonnette', 'mal_croppe', 'flou', 'environnement', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26596990 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','kraft','plastique','Teint_Dans_La_Masse','metal','cartonnette','mal_croppe','flou','environnement','autre_refus')) 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`=26596990 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','kraft','plastique','Teint_Dans_La_Masse','metal','cartonnette','mal_croppe','flou','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26596990, 'sub_port_id': 26596991, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919609, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'environnement': {'main_port_id': 26596990, 'sub_port_id': 26596992, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919610, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'mal_croppe': {'main_port_id': 26596990, 'sub_port_id': 26596993, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919611, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'cartonnette': {'main_port_id': 26596990, 'sub_port_id': 26596994, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919612, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'plastique': {'main_port_id': 26596990, 'sub_port_id': 26596995, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919613, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'kraft': {'main_port_id': 26596990, 'sub_port_id': 26596996, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919614, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'papier': {'main_port_id': 26596990, 'sub_port_id': 26596997, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919615, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'autre_refus': {'main_port_id': 26596990, 'sub_port_id': 26596998, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919616, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'metal': {'main_port_id': 26596990, 'sub_port_id': 26596999, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919617, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'flou': {'main_port_id': 26596990, 'sub_port_id': 26597000, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919618, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'Carton_brun': {'main_port_id': 26596990, 'sub_port_id': 26597001, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919619, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 26596990, 'sub_port_id': 26597002, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919620, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 5, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26596991 , 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=26596990 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 (26596991) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596992 , 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=26596990 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 (26596992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596993 , 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=26596990 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 (26596993) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596994 , 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=26596990 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 (26596994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596995 , 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=26596990 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 (26596995) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596996 , 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=26596990 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 (26596996) result : ((1381895749,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596997 , 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=26596990 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 (26596997) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596998 , 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=26596990 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 (26596998) result : ((1381895742,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26596999 , 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=26596990 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 (26596999) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26597000 , 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=26596990 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 (26597000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26597001 , 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=26596990 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 (26597001) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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 26597002 , 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=26596990 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 (26597002) result : ((1381895731,), (1381895733,), (1381895735,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26596990) result : ((1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) 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`=26596990 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','kraft','plastique','Teint_Dans_La_Masse','metal','cartonnette','mal_croppe','flou','environnement','autre_refus')) 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`=26596990 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','kraft','plastique','Teint_Dans_La_Masse','metal','cartonnette','mal_croppe','flou','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26596990, 'sub_port_id': 26597003, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919621, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'environnement': {'main_port_id': 26596990, 'sub_port_id': 26597004, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919622, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'mal_croppe': {'main_port_id': 26596990, 'sub_port_id': 26597005, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919623, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'cartonnette': {'main_port_id': 26596990, 'sub_port_id': 26597006, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919624, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'plastique': {'main_port_id': 26596990, 'sub_port_id': 26597007, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919625, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'kraft': {'main_port_id': 26596990, 'sub_port_id': 26597008, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919626, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'papier': {'main_port_id': 26596990, 'sub_port_id': 26597009, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919627, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'autre_refus': {'main_port_id': 26596990, 'sub_port_id': 26597010, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919628, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'metal': {'main_port_id': 26596990, 'sub_port_id': 26597011, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919629, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'flou': {'main_port_id': 26596990, 'sub_port_id': 26597012, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919630, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'Carton_brun': {'main_port_id': 26596990, 'sub_port_id': 26597013, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919631, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 26596990, 'sub_port_id': 26597014, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17919632, 'last_updated_at': datetime.datetime(2025, 9, 5, 23, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 23, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 23, 6)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26596999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26597000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26597001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26597014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26597002 lien utilise dans velours : https://marlene.fotonower.com/velours/26597003,26597004,26597005,26597006,26597007,26597008,26597009,26597010,26597011,26597012,26597013,26597014?tags=Carton_gris,environnement,mal_croppe,cartonnette,plastique,kraft,papier,autre_refus,metal,flou,Carton_brun,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26596990]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381896241, 1381896238] map_info['map_portfolio_photo'] : {26596990: [1381896241, 1381896238, 1381894424, 1381892910, 1381892908, 1381892501, 1381892211, 1381892153, 1381892151, 1381890943]} final : False mtd_id 4302 list_pids : [1381896241, 1381896238] Looping around the photos to save general results len do output : 1 /26596990. 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, '3672509') ('4302', '26596990', '1381896241', None, None, None, None, None, '3672509') ('4302', None, None, None, None, None, None, None, '3672509') ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509') 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', None, '26596990', "{'Carton_gris': 26596991, 'environnement': 26596992, 'mal_croppe': 26596993, 'cartonnette': 26596994, 'plastique': 26596995, 'kraft': 26596996, 'papier': 26596997, 'autre_refus': 26596998, 'metal': 26596999, 'flou': 26597000, 'Carton_brun': 26597001, 'Teint_Dans_La_Masse': 26597002}", None, None, None, None, '3672509'), ('4302', '26596990', '1381896241', None, None, None, None, None, '3672509'), ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509')] time used for this insertion : 0.012758493423461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.450913667678833 time spend to save output : 0.012954473495483398 total time spend for step 1 : 1.4638681411743164 step2:final Fri Sep 5 23: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 (26596990) 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 26596990 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381890943,1381892153,1381892151,1381892211,1381892910,1381892501,1381892908,1381894424,1381896241,1381896238); 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([26596990]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381896241: ('0.019708187856722997',), 1381896238: ('0.019708187856722997',)} new output for save of step final : {1381896241: ('0.019708187856722997',), 1381896238: ('0.019708187856722997',)} [1381896241, 1381896238] map_info['map_portfolio_photo'] : {26596990: [1381896241, 1381896238, 1381894424, 1381892910, 1381892908, 1381892501, 1381892211, 1381892153, 1381892151, 1381890943]} final : False mtd_id 4302 list_pids : [1381896241, 1381896238] Looping around the photos to save general results len do output : 2 /1381896241.Didn't retrieve data . /1381896238.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, '3672509') ('4302', '26596990', '1381896241', None, None, None, None, None, '3672509') ('4302', None, None, None, None, None, None, None, '3672509') ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '26596990', '1381896241', '0.019708187856722997', None, None, None, None, '3672509'), ('4302', '26596990', '1381896238', '0.019708187856722997', None, None, None, None, '3672509')] time used for this insertion : 0.014132022857666016 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06409716606140137 time spend to save output : 0.014343023300170898 total time spend for step 2 : 0.07844018936157227 step3:velours_tree Fri Sep 5 23: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 : {26596990: [{'Carton_gris': 26596991, 'environnement': 26596992, 'mal_croppe': 26596993, 'cartonnette': 26596994, 'plastique': 26596995, 'kraft': 26596996, 'papier': 26596997, 'autre_refus': 26596998, 'metal': 26596999, 'flou': 26597000, 'Carton_brun': 26597001, 'Teint_Dans_La_Masse': 26597002}]} input_args_next_step : {26596990: ()} output_args : {26596990: [{'Carton_gris': 26596991, 'environnement': 26596992, 'mal_croppe': 26596993, 'cartonnette': 26596994, 'plastique': 26596995, 'kraft': 26596996, 'papier': 26596997, 'autre_refus': 26596998, 'metal': 26596999, 'flou': 26597000, 'Carton_brun': 26597001, 'Teint_Dans_La_Masse': 26597002}]} args : 26596990 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': 26596991, 'environnement': 26596992, 'mal_croppe': 26596993, 'cartonnette': 26596994, 'plastique': 26596995, 'kraft': 26596996, 'papier': 26596997, 'autre_refus': 26596998, 'metal': 26596999, 'flou': 26597000, 'Carton_brun': 26597001, 'Teint_Dans_La_Masse': 26597002},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26596990) 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([26596990]) 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.2964167594909668 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.2964644432067871 step4:send_mail_cod Fri Sep 5 23: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 : {1381896241: ('0.019708187856722997',), 1381896238: ('0.019708187856722997',)} input_args_next_step : {1381896241: ()} output_args : {1381896241: ('0.019708187856722997',), 1381896238: ('0.019708187856722997',)} args : 1381896241 depend.output_id : 0 input_args_next_step : {1381896241: ('0.019708187856722997',), 1381896238: ()} output_args : {1381896241: ('0.019708187856722997',), 1381896238: ('0.019708187856722997',)} args : 1381896238 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {26596990: [{'Carton_gris': 26596991, 'environnement': 26596992, 'mal_croppe': 26596993, 'cartonnette': 26596994, 'plastique': 26596995, 'kraft': 26596996, 'papier': 26596997, 'autre_refus': 26596998, 'metal': 26596999, 'flou': 26597000, 'Carton_brun': 26597001, 'Teint_Dans_La_Masse': 26597002}]} input_args_next_step : {1381896241: ('0.019708187856722997',), 1381896238: ('0.019708187856722997',), 26596990: ()} output_args : {26596990: [{'Carton_gris': 26596991, 'environnement': 26596992, 'mal_croppe': 26596993, 'cartonnette': 26596994, 'plastique': 26596995, 'kraft': 26596996, 'papier': 26596997, 'autre_refus': 26596998, 'metal': 26596999, 'flou': 26597000, 'Carton_brun': 26597001, 'Teint_Dans_La_Masse': 26597002}]} args : 26596990 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 :3, first value : ('0.019708187856722997',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26596990) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1381896241,1381896238) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381896238 begin to download photo : 1381896241 download finish for photo 1381896241 download finish for photo 1381896238 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265969931757106899/ imagette265969941757106899/ imagette265969951757106899/ length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P26596990_05-09-2025_23_14_59.pdf 26596993 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265969931757106899 26596994 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265969941757106899 26596995 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265969951757106899 26596996 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381895749: '1757106787_82314_1381894424_3decad6c4f7053f5b3313284283bfe95_99830120_rle_crop_3947106731_0.png'} change filename to text .imagette265969961757106899/ imagette265969961757106899/1757106787_82314_1381894424_3decad6c4f7053f5b3313284283bfe95_99830120_rle_crop_3947106731_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/17d359dda7ea20d7f5b07d9931a8976d_80968876.png imagette265969961757106899 26596998 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381895742: '1757106787_82314_1381894424_3decad6c4f7053f5b3313284283bfe95_99830120_rle_crop_3947106729_0.png'} change filename to text .imagette265969981757106899/ imagette265969981757106899/1757106787_82314_1381894424_3decad6c4f7053f5b3313284283bfe95_99830120_rle_crop_3947106729_0.png.png imagette265969991757106899/ imagette265970001757106899/ imagette265969911757106899/ imagette265970011757106899/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/936bd479d94e8de4fab612b7d9aa6687_89934748.png imagette265969981757106899 26596999 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265969991757106899 26597000 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26597000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265970001757106899 26596991 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265969911757106899 26597001 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26597001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265970011757106899 26597002 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26597002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381895731: '1757106787_82314_1381894424_3decad6c4f7053f5b3313284283bfe95_99830120_rle_crop_3947106727_0.png', 1381895733: '1757106787_82314_1381892908_d661b85296768efc8173efb3a73f0328_11241651_rle_crop_3947106751_0.png', 1381895735: '1757106787_82314_1381892908_d661b85296768efc8173efb3a73f0328_11241651_rle_crop_3947106748_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8217e56c9a3256730e0ae43a7a214b5c_20657148.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/df418ba64a2c2b9d76b39ab295ffe1e2_77776797.png change filename to text .imagette265970021757106899/ imagette265970021757106899/1757106787_82314_1381894424_3decad6c4f7053f5b3313284283bfe95_99830120_rle_crop_3947106727_0.png.png imagette265970021757106899/1757106787_82314_1381892908_d661b85296768efc8173efb3a73f0328_11241651_rle_crop_3947106748_0.png.png imagette265970021757106899/1757106787_82314_1381892908_d661b85296768efc8173efb3a73f0328_11241651_rle_crop_3947106751_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b52b839ac15097d2ccc7635d7c35911a_44584434.png imagette265970021757106899 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26596990 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26597003,26597004,26597005,26597006,26597007,26597008,26597009,26597010,26597011,26597012,26597013,26597014?tags=Carton_gris,environnement,mal_croppe,cartonnette,plastique,kraft,papier,autre_refus,metal,flou,Carton_brun,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1381896241] : ('0.019708187856722997',) no score found for photo 1381896241 We are sending mail with results at report@fotonower.com args[1381896238] : ('0.019708187856722997',) no score found for photo 1381896238 We are sending mail with results at report@fotonower.com refus_total : 0.019708187856722997 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596990 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_P26596990_05-09-2025_23_14_59.pdf results_Auto_P26596990_05-09-2025_23_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596990_05-09-2025_23_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','26596990','results_Auto_P26596990_05-09-2025_23_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596990_05-09-2025_23_14_59.pdf','pdf','','0.05','0.019708187856722997') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26596990]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381896241, 1381896238] map_info['map_portfolio_photo'] : {26596990: [1381896241, 1381896238, 1381894424, 1381892910, 1381892908, 1381892501, 1381892211, 1381892153, 1381892151, 1381890943]} final : False mtd_id 4302 list_pids : [1381896241, 1381896238] 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, '3672509') ('4302', '26596990', '1381896241', None, None, None, None, None, '3672509') ('4302', None, None, None, None, None, None, None, '3672509') ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509') 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', '26596990', '1381896241', None, None, None, None, None, '3672509'), ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509')] time used for this insertion : 0.012454509735107422 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1325528621673584 time spend to save output : 0.012603759765625 total time spend for step 4 : 1.1451566219329834 step5:split_time_score Fri Sep 5 23:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26596990'] 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 : [('26596990',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26596990) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381896241: {'path': 'temp/1757106899_1789822_1381896241_b5c31d50df7c6da3ffdcc6c23110e685_11729863.jpg', 'extension': 'jpg'}, 1381896238: {'path': 'temp/1757106899_1789822_1381896238_e6b46b0bcaab2ec2ee4004fcb349fe95_91886198.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 = 26596990; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26596990 group by h (('23', 10),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26596990 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 (26596990) 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 (26596990) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26596990 Nombre de photos uploadées : 10 / 23040 (0%) 05092025 26596990 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 05092025 26596990 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1381890943, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/28a661f8b7acd5c403266debfd1ab404_28745949.jpg', 'username': None, 'uploaded_at': 1757106191, 'text': 'image_05092025_23_00_05_10144.jpg'}, {'photo_id': 1381892153, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a941952d904106e65eec2047b06f0a63_20045059.jpg', 'username': None, 'uploaded_at': 1757106312, 'text': 'image_05092025_23_02_44_10156.jpg'}, {'photo_id': 1381892151, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2115c6b827a164928a32f1427c24e404_67027234.jpg', 'username': None, 'uploaded_at': 1757106312, 'text': 'image_05092025_23_04_24_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381892211, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/38bb12658e00376690ad0447c7f17057_34374473.jpg', 'username': None, 'uploaded_at': 1757106371, 'text': 'image_05092025_23_04_34_010155m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005033016204833984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26596990, '2025-09-05' ) 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-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2234129,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20459914207458496 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= 2234129 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14835336, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26552950, 'dashboard_result_id': 14835337, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26553483, 'dashboard_result_id': 14835338, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26553954, 'dashboard_result_id': 14835339, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26555558, 'dashboard_result_id': 14835340, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26555560, 'dashboard_result_id': 14835341, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26556761, 'dashboard_result_id': 14835342, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26556619, 'dashboard_result_id': 14835343, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26556621, 'dashboard_result_id': 14835344, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26557110, 'dashboard_result_id': 14835345, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26557601, 'dashboard_result_id': 14835346, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26557985, 'dashboard_result_id': 14835347, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26558350, 'dashboard_result_id': 14835348, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26558751, 'dashboard_result_id': 14835349, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26559193, 'dashboard_result_id': 14835350, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26561250, 'dashboard_result_id': 14835351, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26561102, 'dashboard_result_id': 14835352, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26561104, 'dashboard_result_id': 14835353, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26561105, 'dashboard_result_id': 14835354, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26561584, 'dashboard_result_id': 14835355, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26562090, 'dashboard_result_id': 14835356, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26562602, 'dashboard_result_id': 14835357, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26562998, 'dashboard_result_id': 14835358, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26563505, 'dashboard_result_id': 14835359, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26564166, 'dashboard_result_id': 14835360, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26564166_05-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26564191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26564192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26564193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26564194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26564195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26564196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26564197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26564198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26564199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26564200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26564201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26564202, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26565028, 'dashboard_result_id': 14835361, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565028_05-09-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565049, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26565501, 'dashboard_result_id': 14835362, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565501_05-09-2025_09_03_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565527, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26568769, 'dashboard_result_id': 14835363, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568769_05-09-2025_09_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569053, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26568911, 'dashboard_result_id': 14835364, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568911_05-09-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568929, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26568775, 'dashboard_result_id': 14835365, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568775_05-09-2025_09_01_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568826, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26568779, 'dashboard_result_id': 14835366, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568779_05-09-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568796, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26569896, 'dashboard_result_id': 14835367, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26569896_05-09-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569952, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26570443, 'dashboard_result_id': 14835368, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26570443_05-09-2025_10_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26570497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26570498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26570499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26570500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26570501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26570502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26570503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26570504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26570505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26570506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26570507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26570508, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26571192, 'dashboard_result_id': 14835369, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571192_05-09-2025_10_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571207, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26571940, 'dashboard_result_id': 14835370, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571940_05-09-2025_10_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571984, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26572507, 'dashboard_result_id': 14835371, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26572507_05-09-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26572517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26572518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26572519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26572520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26572521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26572522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26572523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26572524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26572525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26572526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26572527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26572528, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26573166, 'dashboard_result_id': 14835372, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573166_05-09-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573202, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26573687, 'dashboard_result_id': 14835373, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573687_05-09-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573716, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26573993, 'dashboard_result_id': 14835374, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573993_05-09-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26574001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574012, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26574368, 'dashboard_result_id': 14835375, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26574368_05-09-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26574391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574397, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26577767, 'dashboard_result_id': 14835376, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577767_05-09-2025_13_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577779, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26577916, 'dashboard_result_id': 14835377, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577916_05-09-2025_14_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577930, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26578342, 'dashboard_result_id': 14835378, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26578358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26578359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26578362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26578363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26578365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26578366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26578367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26578368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26578369, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26578990, 'dashboard_result_id': 14835379, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578990_05-09-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26579000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26579001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26579002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26579003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26579004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26579005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26579006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26579007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26579008, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26579594, 'dashboard_result_id': 14835380, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26579594_05-09-2025_14_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26579615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26579616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26579617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26579618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26579619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26579620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26579621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26579622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26579623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26579624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26579625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26579626, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26580217, 'dashboard_result_id': 14835381, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580217_05-09-2025_15_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26580226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26580227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26580228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26580229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26580230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26580231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26580232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26580233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26580234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26580235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26580236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26580237, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26580844, 'dashboard_result_id': 14835382, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580844_05-09-2025_15_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26580881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26580882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26580883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26580884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26580885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26580886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26580887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26580888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26580889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26580890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26580891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26580892, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26581510, 'dashboard_result_id': 14835383, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26581510_05-09-2025_15_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26581535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26581536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26581537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26581538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26581539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26581540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26581541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26581542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26581543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26581544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26581545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26581546, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26582007, 'dashboard_result_id': 14835384, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582007_05-09-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26582037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26582039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26582040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26582041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26582042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26582043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26582044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26582045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26582046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26582047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26582048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26582049, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26582740, 'dashboard_result_id': 14835385, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582740_05-09-2025_17_04_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26582751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26582752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26582753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26582754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26582755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26582756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26582757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26582758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26582759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26582760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26582761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26582762, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26586069, 'dashboard_result_id': 14835386, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586069_05-09-2025_17_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26586366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586377, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26586227, 'dashboard_result_id': 14835387, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586227_05-09-2025_17_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586311, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26586077, 'dashboard_result_id': 14835388, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586077_05-09-2025_17_01_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586097, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26586084, 'dashboard_result_id': 14835389, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586084_05-09-2025_17_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586121, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26586230, 'dashboard_result_id': 14835390, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586230_05-09-2025_17_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26586287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586298, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26587010, 'dashboard_result_id': 14835391, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26587010_05-09-2025_17_35_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26587018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26587019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26587020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26587021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26587022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26587023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26587024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26587025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26587026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26587027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26587028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26587029, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26588163, 'dashboard_result_id': 14835392, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588163_05-09-2025_18_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26588169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26588170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26588171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26588172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26588173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26588174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26588175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26588176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26588177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26588178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26588179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26588180, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26588711, 'dashboard_result_id': 14835393, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588711_05-09-2025_18_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26588718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26588719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26588720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26588721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26588722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26588723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26588724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26588725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26588726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26588727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26588728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26588729, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26589185, 'dashboard_result_id': 14835394, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589185_05-09-2025_18_47_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26589206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26589207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26589208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26589209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26589210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26589211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26589212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26589213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26589214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26589215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26589216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26589217, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26589734, 'dashboard_result_id': 14835395, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589734_05-09-2025_19_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26589739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26589740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26589741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26589742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26589743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26589744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26589745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26589746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26589747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26589748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26589749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26589750, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26590298, 'dashboard_result_id': 14835396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590298_05-09-2025_19_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26590318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26590319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26590320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26590321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26590322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26590323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26590324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26590325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26590326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26590327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26590328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26590329, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26590984, 'dashboard_result_id': 14835397, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590984_05-09-2025_19_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26590985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26590986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26590987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26590988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26590989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26590990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26590991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26590992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26590993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26590994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26590995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26590996, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26591510, 'dashboard_result_id': 14835398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26591510_05-09-2025_19_46_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26591549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26591550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26591551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26591552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26591554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26591555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26591557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26591558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26591559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26591560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26591561, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26592039, 'dashboard_result_id': 14835399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592039_05-09-2025_20_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26592050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26592051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26592053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26592054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26592055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26592056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26592057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26592058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26592059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26592060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26592061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26592062, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26592450, 'dashboard_result_id': 14835400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592450_05-09-2025_20_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26592471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26592472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26592473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26592474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26592475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26592476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26592477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26592478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26592479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26592481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26592482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26592483, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26593034, 'dashboard_result_id': 14835401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593034_05-09-2025_20_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26593076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26593077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26593078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26593079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26593080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26593081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26593082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26593083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26593084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26593085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26593086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26593087, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26593573, 'dashboard_result_id': 14835402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593573_05-09-2025_21_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26593611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26593612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26593613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26593614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26593615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26593616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26593617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26593618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26593619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26593620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26593622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26593623, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26594836, 'dashboard_result_id': 14835403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26594836_05-09-2025_21_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26594839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26594840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26594841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26594842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26594843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26594844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26594845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26594846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26594847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26594848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26594849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26594850, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26596029, 'dashboard_result_id': 14835404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596029_05-09-2025_22_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26596030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596041, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26596357, 'dashboard_result_id': 14835405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596357_05-09-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596428, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26596533, 'dashboard_result_id': 14835406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596533_05-09-2025_23_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596545, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2248449, 'mtr_portfolio_id': 26596990, 'dashboard_result_id': 14835407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596990_05-09-2025_23_09_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26597000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26597001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26597002, '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 = 26552286 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667752, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 6, 19, 28), 'result': '0.04964269241984014', 'result_long': None, 'result_double': None}] Qualite : 0.04964269241984014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835336, 0.04964269241984014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26552950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667753, 'mtr_portfolio_id': 26552950, 'created_at': datetime.datetime(2025, 9, 5, 6, 19, 58), 'result': '0.052087121895723426', 'result_long': None, 'result_double': None}] Qualite : 0.052087121895723426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}" where mtr_portfolio_id = 26552950 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26552950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835337, 0.052087121895723426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26553483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667754, 'mtr_portfolio_id': 26553483, 'created_at': datetime.datetime(2025, 9, 5, 6, 20, 30), 'result': '0.04427018202150872', 'result_long': None, 'result_double': None}] Qualite : 0.04427018202150872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}" where mtr_portfolio_id = 26553483 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26553483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835338, 0.04427018202150872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26553954 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667755, 'mtr_portfolio_id': 26553954, 'created_at': datetime.datetime(2025, 9, 5, 6, 20, 38), 'result': '0.038686864708222954', 'result_long': None, 'result_double': None}] Qualite : 0.038686864708222954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553954 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}" where mtr_portfolio_id = 26553954 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26553954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835339, 0.038686864708222954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26555558 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667756, 'mtr_portfolio_id': 26555558, 'created_at': datetime.datetime(2025, 9, 5, 6, 21, 30), 'result': '0.05693800466618908', 'result_long': None, 'result_double': None}] Qualite : 0.05693800466618908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555558 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}" where mtr_portfolio_id = 26555558 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26555558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835340, 0.05693800466618908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26555560 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667757, 'mtr_portfolio_id': 26555560, 'created_at': datetime.datetime(2025, 9, 5, 6, 21, 59), 'result': '0.043526961330972676', 'result_long': None, 'result_double': None}] Qualite : 0.043526961330972676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555560 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}" where mtr_portfolio_id = 26555560 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26555560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835341, 0.043526961330972676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26556761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667758, 'mtr_portfolio_id': 26556761, 'created_at': datetime.datetime(2025, 9, 5, 6, 22, 30), 'result': '0.050995299214166845', 'result_long': None, 'result_double': None}] Qualite : 0.050995299214166845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}" where mtr_portfolio_id = 26556761 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26556761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835342, 0.050995299214166845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26556619 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667759, 'mtr_portfolio_id': 26556619, 'created_at': datetime.datetime(2025, 9, 5, 6, 23, 30), 'result': '0.08033527269443783', 'result_long': None, 'result_double': None}] Qualite : 0.08033527269443783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556619 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}" where mtr_portfolio_id = 26556619 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26556619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835343, 0.08033527269443783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26556621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667760, 'mtr_portfolio_id': 26556621, 'created_at': datetime.datetime(2025, 9, 5, 6, 24), 'result': '0.060162488673695266', 'result_long': None, 'result_double': None}] Qualite : 0.060162488673695266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}" where mtr_portfolio_id = 26556621 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26556621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835344, 0.060162488673695266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26557110 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667761, 'mtr_portfolio_id': 26557110, 'created_at': datetime.datetime(2025, 9, 5, 6, 24, 28), 'result': '0.052274481522901775', 'result_long': None, 'result_double': None}] Qualite : 0.052274481522901775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557110 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}" where mtr_portfolio_id = 26557110 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835345, 0.052274481522901775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26557601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667762, 'mtr_portfolio_id': 26557601, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 29), 'result': '0.07206430920955262', 'result_long': None, 'result_double': None}] Qualite : 0.07206430920955262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}" where mtr_portfolio_id = 26557601 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835346, 0.07206430920955262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26557985 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667763, 'mtr_portfolio_id': 26557985, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 37), 'result': '0.06697049275494514', 'result_long': None, 'result_double': None}] Qualite : 0.06697049275494514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557985 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}" where mtr_portfolio_id = 26557985 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26557985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835347, 0.06697049275494514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26558350 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667764, 'mtr_portfolio_id': 26558350, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 57), 'result': '0.05476973286801831', 'result_long': None, 'result_double': None}] Qualite : 0.05476973286801831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558350 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}" where mtr_portfolio_id = 26558350 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26558350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835348, 0.05476973286801831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26558751 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667765, 'mtr_portfolio_id': 26558751, 'created_at': datetime.datetime(2025, 9, 5, 6, 26, 31), 'result': '0.067377216022561', 'result_long': None, 'result_double': None}] Qualite : 0.067377216022561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558751 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}" where mtr_portfolio_id = 26558751 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26558751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835349, 0.067377216022561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26559193 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667766, 'mtr_portfolio_id': 26559193, 'created_at': datetime.datetime(2025, 9, 5, 6, 27, 30), 'result': '0.03707141247912107', 'result_long': None, 'result_double': None}] Qualite : 0.03707141247912107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26559193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26559193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}" where mtr_portfolio_id = 26559193 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26559193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835350, 0.03707141247912107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561250 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667844, 'mtr_portfolio_id': 26561250, 'created_at': datetime.datetime(2025, 9, 5, 5, 49, 29), 'result': '0.07289219547998828', 'result_long': None, 'result_double': None}] Qualite : 0.07289219547998828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561250 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}" where mtr_portfolio_id = 26561250 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835351, 0.07289219547998828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561102 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667836, 'mtr_portfolio_id': 26561102, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 29), 'result': '0.057297069317970954', 'result_long': None, 'result_double': None}] Qualite : 0.057297069317970954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561102 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}" where mtr_portfolio_id = 26561102 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835352, 0.057297069317970954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561104 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667837, 'mtr_portfolio_id': 26561104, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 59), 'result': '0.06210840669781008', 'result_long': None, 'result_double': None}] Qualite : 0.06210840669781008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561104 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}" where mtr_portfolio_id = 26561104 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835353, 0.06210840669781008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561105 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667838, 'mtr_portfolio_id': 26561105, 'created_at': datetime.datetime(2025, 9, 5, 6, 3, 30), 'result': '0.056753583017804365', 'result_long': None, 'result_double': None}] Qualite : 0.056753583017804365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561105 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}" where mtr_portfolio_id = 26561105 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835354, 0.056753583017804365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26561584 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667902, 'mtr_portfolio_id': 26561584, 'created_at': datetime.datetime(2025, 9, 5, 6, 17, 31), 'result': '0.039514970057971374', 'result_long': None, 'result_double': None}] Qualite : 0.039514970057971374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561584 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}" where mtr_portfolio_id = 26561584 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26561584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835355, 0.039514970057971374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26562090 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3667972, 'mtr_portfolio_id': 26562090, 'created_at': datetime.datetime(2025, 9, 5, 6, 32, 58), 'result': '0.057623620304677416', 'result_long': None, 'result_double': None}] Qualite : 0.057623620304677416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562090 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}" where mtr_portfolio_id = 26562090 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26562090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835356, 0.057623620304677416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26562602 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668061, 'mtr_portfolio_id': 26562602, 'created_at': datetime.datetime(2025, 9, 5, 6, 46, 59), 'result': '0.05466398608855699', 'result_long': None, 'result_double': None}] Qualite : 0.05466398608855699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562602 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}" where mtr_portfolio_id = 26562602 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26562602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835357, 0.05466398608855699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26562998 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668137, 'mtr_portfolio_id': 26562998, 'created_at': datetime.datetime(2025, 9, 5, 7, 3), 'result': '0.029307208754667403', 'result_long': None, 'result_double': None}] Qualite : 0.029307208754667403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562998 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}" where mtr_portfolio_id = 26562998 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26562998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835358, 0.029307208754667403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26563505 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668232, 'mtr_portfolio_id': 26563505, 'created_at': datetime.datetime(2025, 9, 5, 7, 17, 1), 'result': '0.06240638810892612', 'result_long': None, 'result_double': None}] Qualite : 0.06240638810892612 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26563505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26563505 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, 'pht': 3726}}" where mtr_portfolio_id = 26563505 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26563505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835359, 0.06240638810892612, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26564166 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668351, 'mtr_portfolio_id': 26564166, 'created_at': datetime.datetime(2025, 9, 5, 7, 33), 'result': '0.04618207289236178', 'result_long': None, 'result_double': None}] Qualite : 0.04618207289236178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26564166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26564166_05-09-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26564166 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26564166_05-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26564191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26564192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26564193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26564194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26564195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26564196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26564197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26564198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26564199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26564200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26564201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26564202, 'pht': 3726}}" where mtr_portfolio_id = 26564166 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26564166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835360, 0.04618207289236178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26564166_05-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26564191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26564192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26564193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26564194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26564195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26564196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26564197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26564198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26564199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26564200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26564201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26564202, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26565028 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668448, 'mtr_portfolio_id': 26565028, 'created_at': datetime.datetime(2025, 9, 5, 7, 47, 1), 'result': '0.05743677664050799', 'result_long': None, 'result_double': None}] Qualite : 0.05743677664050799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26565028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565028_05-09-2025_07_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26565028 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565028_05-09-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565049, 'pht': 3726}}" where mtr_portfolio_id = 26565028 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26565028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835361, 0.05743677664050799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565028_05-09-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565049, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26565501 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668518, 'mtr_portfolio_id': 26565501, 'created_at': datetime.datetime(2025, 9, 5, 9, 3, 27), 'result': '0.04533627730020251', 'result_long': None, 'result_double': None}] Qualite : 0.04533627730020251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26565501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565501_05-09-2025_09_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26565501 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565501_05-09-2025_09_03_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565527, 'pht': 3726}}" where mtr_portfolio_id = 26565501 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26565501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835362, 0.04533627730020251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565501_05-09-2025_09_03_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565527, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26568769 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668939, 'mtr_portfolio_id': 26568769, 'created_at': datetime.datetime(2025, 9, 5, 9, 3, 59), 'result': '0.08084658930274236', 'result_long': None, 'result_double': None}] Qualite : 0.08084658930274236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568769_05-09-2025_09_04_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568769 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568769_05-09-2025_09_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569053, 'pht': 3726}}" where mtr_portfolio_id = 26568769 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26568769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835363, 0.08084658930274236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568769_05-09-2025_09_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569053, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26568911 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668948, 'mtr_portfolio_id': 26568911, 'created_at': datetime.datetime(2025, 9, 5, 9, 3), 'result': '0.05313406132009744', 'result_long': None, 'result_double': None}] Qualite : 0.05313406132009744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568911_05-09-2025_09_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568911 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568911_05-09-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568929, 'pht': 3726}}" where mtr_portfolio_id = 26568911 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26568911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835364, 0.05313406132009744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568911_05-09-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568929, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26568775 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668942, 'mtr_portfolio_id': 26568775, 'created_at': datetime.datetime(2025, 9, 5, 9, 1, 56), 'result': '0.05438887865763479', 'result_long': None, 'result_double': None}] Qualite : 0.05438887865763479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568775_05-09-2025_09_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568775 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568775_05-09-2025_09_01_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568826, 'pht': 3726}}" where mtr_portfolio_id = 26568775 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26568775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835365, 0.05438887865763479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568775_05-09-2025_09_01_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26568779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3668944, 'mtr_portfolio_id': 26568779, 'created_at': datetime.datetime(2025, 9, 5, 9, 31, 1), 'result': '0.0335856496795856', 'result_long': None, 'result_double': None}] Qualite : 0.0335856496795856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568779_05-09-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568779_05-09-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568796, 'pht': 3726}}" where mtr_portfolio_id = 26568779 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26568779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835366, 0.0335856496795856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568779_05-09-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568796, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26569896 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3669051, 'mtr_portfolio_id': 26569896, 'created_at': datetime.datetime(2025, 9, 5, 10, 2, 59), 'result': '0.05036727296153984', 'result_long': None, 'result_double': None}] Qualite : 0.05036727296153984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26569896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26569896_05-09-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26569896 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26569896_05-09-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569952, 'pht': 3726}}" where mtr_portfolio_id = 26569896 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26569896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835367, 0.05036727296153984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26569896_05-09-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569952, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26570443 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3669121, 'mtr_portfolio_id': 26570443, 'created_at': datetime.datetime(2025, 9, 5, 10, 19, 29), 'result': '0.06794735722814266', 'result_long': None, 'result_double': None}] Qualite : 0.06794735722814266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26570443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26570443_05-09-2025_10_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26570443 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26570443_05-09-2025_10_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26570497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26570498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26570499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26570500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26570501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26570502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26570503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26570504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26570505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26570506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26570507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26570508, 'pht': 3726}}" where mtr_portfolio_id = 26570443 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26570443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835368, 0.06794735722814266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26570443_05-09-2025_10_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26570497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26570498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26570499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26570500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26570501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26570502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26570503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26570504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26570505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26570506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26570507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26570508, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26571192 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3669206, 'mtr_portfolio_id': 26571192, 'created_at': datetime.datetime(2025, 9, 5, 10, 33, 29), 'result': '0.05117919557706017', 'result_long': None, 'result_double': None}] Qualite : 0.05117919557706017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26571192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571192_05-09-2025_10_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26571192 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571192_05-09-2025_10_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571207, 'pht': 3726}}" where mtr_portfolio_id = 26571192 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26571192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835369, 0.05117919557706017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571192_05-09-2025_10_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571207, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26571940 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3669265, 'mtr_portfolio_id': 26571940, 'created_at': datetime.datetime(2025, 9, 5, 10, 47), 'result': '0.06204151959759107', 'result_long': None, 'result_double': None}] Qualite : 0.06204151959759107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26571940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571940_05-09-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26571940 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571940_05-09-2025_10_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571984, 'pht': 3726}}" where mtr_portfolio_id = 26571940 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26571940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835370, 0.06204151959759107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571940_05-09-2025_10_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571984, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26572507 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3669481, 'mtr_portfolio_id': 26572507, 'created_at': datetime.datetime(2025, 9, 5, 11, 3), 'result': '0.04922533676166119', 'result_long': None, 'result_double': None}] Qualite : 0.04922533676166119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26572507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26572507_05-09-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26572507 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26572507_05-09-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26572517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26572518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26572519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26572520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26572521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26572522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26572523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26572524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26572525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26572526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26572527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26572528, 'pht': 3726}}" where mtr_portfolio_id = 26572507 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26572507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835371, 0.04922533676166119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26572507_05-09-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26572517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26572518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26572519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26572520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26572521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26572522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26572523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26572524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26572525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26572526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26572527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26572528, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573166 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 = 26573166 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 = 26573166 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573166 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 = 26573166 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 = 26573166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573166_05-09-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26573166 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573166_05-09-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573202, 'pht': 3726}}" where mtr_portfolio_id = 26573166 and dashboard_run_id = 2248449 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573687 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 = 26573687 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 = 26573687 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573687 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 = 26573687 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 = 26573687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573687_05-09-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26573687 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573687_05-09-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573716, 'pht': 3726}}" where mtr_portfolio_id = 26573687 and dashboard_run_id = 2248449 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573993 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 = 26573993 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 = 26573993 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573993 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 = 26573993 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 = 26573993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573993_05-09-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26573993 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573993_05-09-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26574001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574012, 'pht': 3726}}" where mtr_portfolio_id = 26573993 and dashboard_run_id = 2248449 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26574368 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 = 26574368 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 = 26574368 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26574368 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 = 26574368 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 = 26574368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26574368_05-09-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26574368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26574368_05-09-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26574391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574397, 'pht': 3726}}" where mtr_portfolio_id = 26574368 and dashboard_run_id = 2248449 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26577767 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670048, 'mtr_portfolio_id': 26577767, 'created_at': datetime.datetime(2025, 9, 5, 13, 46, 58), 'result': '0.017310328078041233', 'result_long': None, 'result_double': None}] Qualite : 0.017310328078041233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26577767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577767_05-09-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26577767 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577767_05-09-2025_13_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577779, 'pht': 3726}}" where mtr_portfolio_id = 26577767 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26577767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835376, 0.017310328078041233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577767_05-09-2025_13_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577779, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26577916 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670061, 'mtr_portfolio_id': 26577916, 'created_at': datetime.datetime(2025, 9, 5, 14, 2, 58), 'result': '0.040377773947672085', 'result_long': None, 'result_double': None}] Qualite : 0.040377773947672085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26577916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577916_05-09-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26577916 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577916_05-09-2025_14_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577930, 'pht': 3726}}" where mtr_portfolio_id = 26577916 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26577916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835377, 0.040377773947672085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577916_05-09-2025_14_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577930, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26578342 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670109, 'mtr_portfolio_id': 26578342, 'created_at': datetime.datetime(2025, 9, 5, 14, 16, 59), 'result': '0.05723086307378313', 'result_long': None, 'result_double': None}] Qualite : 0.05723086307378313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26578342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26578342 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26578358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26578359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26578362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26578363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26578365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26578366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26578367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26578368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26578369, 'pht': 3726}}" where mtr_portfolio_id = 26578342 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26578342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835378, 0.05723086307378313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26578358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26578359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26578362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26578363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26578365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26578366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26578367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26578368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26578369, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26578990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670164, 'mtr_portfolio_id': 26578990, 'created_at': datetime.datetime(2025, 9, 5, 14, 33), 'result': '0.06024567363289003', 'result_long': None, 'result_double': None}] Qualite : 0.06024567363289003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26578990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578990_05-09-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26578990 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578990_05-09-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26579000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26579001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26579002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26579003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26579004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26579005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26579006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26579007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26579008, 'pht': 3726}}" where mtr_portfolio_id = 26578990 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26578990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835379, 0.06024567363289003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578990_05-09-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26579000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26579001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26579002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26579003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26579004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26579005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26579006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26579007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26579008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26579594 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670231, 'mtr_portfolio_id': 26579594, 'created_at': datetime.datetime(2025, 9, 5, 14, 46, 59), 'result': '0.06149956155725203', 'result_long': None, 'result_double': None}] Qualite : 0.06149956155725203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26579594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26579594_05-09-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26579594 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26579594_05-09-2025_14_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26579615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26579616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26579617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26579618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26579619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26579620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26579621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26579622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26579623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26579624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26579625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26579626, 'pht': 3726}}" where mtr_portfolio_id = 26579594 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26579594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835380, 0.06149956155725203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26579594_05-09-2025_14_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26579615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26579616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26579617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26579618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26579619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26579620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26579621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26579622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26579623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26579624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26579625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26579626, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26580217 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670308, 'mtr_portfolio_id': 26580217, 'created_at': datetime.datetime(2025, 9, 5, 15, 3), 'result': '0.05827223829705916', 'result_long': None, 'result_double': None}] Qualite : 0.05827223829705916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26580217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580217_05-09-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26580217 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580217_05-09-2025_15_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26580226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26580227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26580228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26580229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26580230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26580231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26580232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26580233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26580234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26580235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26580236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26580237, 'pht': 3726}}" where mtr_portfolio_id = 26580217 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26580217 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835381, 0.05827223829705916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580217_05-09-2025_15_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26580226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26580227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26580228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26580229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26580230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26580231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26580232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26580233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26580234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26580235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26580236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26580237, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26580844 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670405, 'mtr_portfolio_id': 26580844, 'created_at': datetime.datetime(2025, 9, 5, 15, 16, 59), 'result': '0.046671410061909446', 'result_long': None, 'result_double': None}] Qualite : 0.046671410061909446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26580844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580844_05-09-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26580844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580844_05-09-2025_15_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26580881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26580882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26580883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26580884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26580885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26580886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26580887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26580888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26580889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26580890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26580891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26580892, 'pht': 3726}}" where mtr_portfolio_id = 26580844 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26580844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835382, 0.046671410061909446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26580844_05-09-2025_15_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26580881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26580882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26580883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26580884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26580885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26580886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26580887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26580888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26580889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26580890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26580891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26580892, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26581510 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670478, 'mtr_portfolio_id': 26581510, 'created_at': datetime.datetime(2025, 9, 5, 15, 33, 1), 'result': '0.06543735466701829', 'result_long': None, 'result_double': None}] Qualite : 0.06543735466701829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26581510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26581510_05-09-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26581510 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26581510_05-09-2025_15_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26581535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26581536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26581537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26581538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26581539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26581540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26581541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26581542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26581543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26581544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26581545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26581546, 'pht': 3726}}" where mtr_portfolio_id = 26581510 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26581510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835383, 0.06543735466701829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26581510_05-09-2025_15_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26581535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26581536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26581537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26581538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26581539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26581540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26581541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26581542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26581543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26581544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26581545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26581546, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26582007 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670578, 'mtr_portfolio_id': 26582007, 'created_at': datetime.datetime(2025, 9, 5, 15, 47), 'result': '0.03783704809131706', 'result_long': None, 'result_double': None}] Qualite : 0.03783704809131706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26582007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582007_05-09-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26582007 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582007_05-09-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26582037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26582039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26582040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26582041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26582042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26582043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26582044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26582045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26582046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26582047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26582048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26582049, 'pht': 3726}}" where mtr_portfolio_id = 26582007 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26582007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835384, 0.03783704809131706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582007_05-09-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26582037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26582039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26582040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26582041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26582042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26582043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26582044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26582045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26582046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26582047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26582048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26582049, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26582740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3670646, 'mtr_portfolio_id': 26582740, 'created_at': datetime.datetime(2025, 9, 5, 17, 4, 29), 'result': '0.0640364751219203', 'result_long': None, 'result_double': None}] Qualite : 0.0640364751219203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26582740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582740_05-09-2025_17_04_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26582740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582740_05-09-2025_17_04_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26582751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26582752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26582753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26582754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26582755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26582756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26582757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26582758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26582759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26582760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26582761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26582762, 'pht': 3726}}" where mtr_portfolio_id = 26582740 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26582740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835385, 0.0640364751219203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26582740_05-09-2025_17_04_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26582751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26582752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26582753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26582754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26582755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26582756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26582757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26582758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26582759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26582760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26582761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26582762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26586069 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671040, 'mtr_portfolio_id': 26586069, 'created_at': datetime.datetime(2025, 9, 5, 17, 3, 59), 'result': '0.05930229387443142', 'result_long': None, 'result_double': None}] Qualite : 0.05930229387443142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26586069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586069_05-09-2025_17_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26586069 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586069_05-09-2025_17_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26586366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586377, 'pht': 3726}}" where mtr_portfolio_id = 26586069 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26586069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835386, 0.05930229387443142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586069_05-09-2025_17_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26586366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586377, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26586227 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671055, 'mtr_portfolio_id': 26586227, 'created_at': datetime.datetime(2025, 9, 5, 17, 3, 31), 'result': '0.04433977449478937', 'result_long': None, 'result_double': None}] Qualite : 0.04433977449478937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26586227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586227_05-09-2025_17_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26586227 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586227_05-09-2025_17_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586311, 'pht': 3726}}" where mtr_portfolio_id = 26586227 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26586227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835387, 0.04433977449478937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586227_05-09-2025_17_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586307, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586311, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26586077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671043, 'mtr_portfolio_id': 26586077, 'created_at': datetime.datetime(2025, 9, 5, 17, 1, 31), 'result': '0.045687743939558', 'result_long': None, 'result_double': None}] Qualite : 0.045687743939558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26586077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586077_05-09-2025_17_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26586077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586077_05-09-2025_17_01_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586097, 'pht': 3726}}" where mtr_portfolio_id = 26586077 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26586077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835388, 0.045687743939558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586077_05-09-2025_17_01_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586097, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26586084 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671044, 'mtr_portfolio_id': 26586084, 'created_at': datetime.datetime(2025, 9, 5, 17, 2, 58), 'result': '0.04228358424445861', 'result_long': None, 'result_double': None}] Qualite : 0.04228358424445861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26586084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586084_05-09-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26586084 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586084_05-09-2025_17_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586121, 'pht': 3726}}" where mtr_portfolio_id = 26586084 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26586084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835389, 0.04228358424445861, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586084_05-09-2025_17_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26586113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586121, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26586230 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671056, 'mtr_portfolio_id': 26586230, 'created_at': datetime.datetime(2025, 9, 5, 17, 16, 59), 'result': '0.049585716411650244', 'result_long': None, 'result_double': None}] Qualite : 0.049585716411650244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26586230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586230_05-09-2025_17_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26586230 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586230_05-09-2025_17_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26586287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586298, 'pht': 3726}}" where mtr_portfolio_id = 26586230 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26586230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835390, 0.049585716411650244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26586230_05-09-2025_17_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26586287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26586288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26586289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26586290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26586291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26586292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26586293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26586294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26586295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26586296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26586297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26586298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26587010 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671128, 'mtr_portfolio_id': 26587010, 'created_at': datetime.datetime(2025, 9, 5, 17, 35, 1), 'result': '0.04180376275464431', 'result_long': None, 'result_double': None}] Qualite : 0.04180376275464431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26587010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26587010_05-09-2025_17_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26587010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26587010_05-09-2025_17_35_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26587018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26587019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26587020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26587021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26587022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26587023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26587024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26587025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26587026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26587027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26587028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26587029, 'pht': 3726}}" where mtr_portfolio_id = 26587010 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26587010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835391, 0.04180376275464431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26587010_05-09-2025_17_35_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26587018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26587019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26587020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26587021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26587022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26587023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26587024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26587025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26587026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26587027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26587028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26587029, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26588163 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671293, 'mtr_portfolio_id': 26588163, 'created_at': datetime.datetime(2025, 9, 5, 18, 16, 58), 'result': '0.0444486771181973', 'result_long': None, 'result_double': None}] Qualite : 0.0444486771181973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26588163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588163_05-09-2025_18_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26588163 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588163_05-09-2025_18_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26588169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26588170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26588171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26588172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26588173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26588174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26588175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26588176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26588177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26588178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26588179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26588180, 'pht': 3726}}" where mtr_portfolio_id = 26588163 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26588163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835392, 0.0444486771181973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588163_05-09-2025_18_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26588169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26588170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26588171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26588172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26588173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26588174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26588175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26588176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26588177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26588178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26588179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26588180, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26588711 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671341, 'mtr_portfolio_id': 26588711, 'created_at': datetime.datetime(2025, 9, 5, 18, 33), 'result': '0.02387603303263502', 'result_long': None, 'result_double': None}] Qualite : 0.02387603303263502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26588711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588711_05-09-2025_18_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26588711 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588711_05-09-2025_18_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26588718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26588719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26588720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26588721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26588722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26588723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26588724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26588725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26588726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26588727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26588728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26588729, 'pht': 3726}}" where mtr_portfolio_id = 26588711 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26588711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835393, 0.02387603303263502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26588711_05-09-2025_18_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26588718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26588719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26588720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26588721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26588722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26588723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26588724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26588725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26588726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26588727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26588728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26588729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26589185 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671425, 'mtr_portfolio_id': 26589185, 'created_at': datetime.datetime(2025, 9, 5, 18, 47, 27), 'result': '0.06450871198020193', 'result_long': None, 'result_double': None}] Qualite : 0.06450871198020193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26589185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589185_05-09-2025_18_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26589185 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589185_05-09-2025_18_47_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26589206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26589207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26589208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26589209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26589210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26589211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26589212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26589213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26589214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26589215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26589216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26589217, 'pht': 3726}}" where mtr_portfolio_id = 26589185 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26589185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835394, 0.06450871198020193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589185_05-09-2025_18_47_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26589206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26589207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26589208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26589209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26589210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26589211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26589212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26589213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26589214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26589215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26589216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26589217, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26589734 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671499, 'mtr_portfolio_id': 26589734, 'created_at': datetime.datetime(2025, 9, 5, 19, 3), 'result': '0.07931874399293548', 'result_long': None, 'result_double': None}] Qualite : 0.07931874399293548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26589734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589734_05-09-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26589734 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589734_05-09-2025_19_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26589739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26589740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26589741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26589742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26589743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26589744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26589745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26589746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26589747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26589748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26589749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26589750, 'pht': 3726}}" where mtr_portfolio_id = 26589734 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26589734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835395, 0.07931874399293548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26589734_05-09-2025_19_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26589739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26589740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26589741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26589742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26589743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26589744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26589745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26589746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26589747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26589748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26589749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26589750, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26590298 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671605, 'mtr_portfolio_id': 26590298, 'created_at': datetime.datetime(2025, 9, 5, 19, 16, 57), 'result': '0.0666608871082261', 'result_long': None, 'result_double': None}] Qualite : 0.0666608871082261 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26590298 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590298_05-09-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26590298 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590298_05-09-2025_19_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26590318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26590319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26590320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26590321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26590322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26590323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26590324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26590325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26590326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26590327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26590328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26590329, 'pht': 3726}}" where mtr_portfolio_id = 26590298 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26590298 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835396, 0.0666608871082261, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590298_05-09-2025_19_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26590318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26590319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26590320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26590321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26590322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26590323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26590324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26590325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26590326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26590327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26590328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26590329, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26590984 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671694, 'mtr_portfolio_id': 26590984, 'created_at': datetime.datetime(2025, 9, 5, 19, 32, 59), 'result': '0.04665388849920439', 'result_long': None, 'result_double': None}] Qualite : 0.04665388849920439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26590984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590984_05-09-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26590984 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590984_05-09-2025_19_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26590985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26590986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26590987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26590988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26590989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26590990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26590991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26590992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26590993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26590994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26590995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26590996, 'pht': 3726}}" where mtr_portfolio_id = 26590984 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26590984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835397, 0.04665388849920439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26590984_05-09-2025_19_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26590985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26590986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26590987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26590988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26590989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26590990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26590991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26590992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26590993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26590994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26590995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26590996, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26591510 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671778, 'mtr_portfolio_id': 26591510, 'created_at': datetime.datetime(2025, 9, 5, 19, 46, 57), 'result': '0.05053292613130767', 'result_long': None, 'result_double': None}] Qualite : 0.05053292613130767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26591510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26591510_05-09-2025_19_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26591510 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26591510_05-09-2025_19_46_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26591549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26591550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26591551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26591552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26591554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26591555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26591557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26591558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26591559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26591560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26591561, 'pht': 3726}}" where mtr_portfolio_id = 26591510 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26591510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835398, 0.05053292613130767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26591510_05-09-2025_19_46_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26591549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26591550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26591551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26591552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26591553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26591554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26591555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26591557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26591558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26591559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26591560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26591561, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26592039 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671852, 'mtr_portfolio_id': 26592039, 'created_at': datetime.datetime(2025, 9, 5, 20, 2, 58), 'result': '0.035540564967988464', 'result_long': None, 'result_double': None}] Qualite : 0.035540564967988464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26592039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592039_05-09-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26592039 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592039_05-09-2025_20_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26592050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26592051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26592053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26592054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26592055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26592056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26592057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26592058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26592059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26592060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26592061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26592062, 'pht': 3726}}" where mtr_portfolio_id = 26592039 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26592039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835399, 0.035540564967988464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592039_05-09-2025_20_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26592050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26592051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26592053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26592054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26592055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26592056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26592057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26592058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26592059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26592060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26592061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26592062, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26592450 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3671955, 'mtr_portfolio_id': 26592450, 'created_at': datetime.datetime(2025, 9, 5, 20, 16, 59), 'result': '0.053814810495339836', 'result_long': None, 'result_double': None}] Qualite : 0.053814810495339836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26592450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592450_05-09-2025_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26592450 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592450_05-09-2025_20_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26592471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26592472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26592473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26592474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26592475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26592476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26592477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26592478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26592479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26592481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26592482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26592483, 'pht': 3726}}" where mtr_portfolio_id = 26592450 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26592450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835400, 0.053814810495339836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26592450_05-09-2025_20_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26592471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26592472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26592473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26592474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26592475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26592476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26592477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26592478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26592479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26592481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26592482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26592483, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26593034 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3672030, 'mtr_portfolio_id': 26593034, 'created_at': datetime.datetime(2025, 9, 5, 20, 32, 59), 'result': '0.05927840990293558', 'result_long': None, 'result_double': None}] Qualite : 0.05927840990293558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26593034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593034_05-09-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26593034 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593034_05-09-2025_20_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26593076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26593077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26593078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26593079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26593080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26593081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26593082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26593083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26593084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26593085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26593086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26593087, 'pht': 3726}}" where mtr_portfolio_id = 26593034 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26593034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835401, 0.05927840990293558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593034_05-09-2025_20_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26593076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26593077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26593078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26593079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26593080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26593081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26593082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26593083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26593084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26593085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26593086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26593087, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26593573 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3672107, 'mtr_portfolio_id': 26593573, 'created_at': datetime.datetime(2025, 9, 5, 21, 4, 58), 'result': '0.05473604360016434', 'result_long': None, 'result_double': None}] Qualite : 0.05473604360016434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26593573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593573_05-09-2025_21_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26593573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593573_05-09-2025_21_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26593611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26593612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26593613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26593614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26593615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26593616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26593617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26593618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26593619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26593620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26593622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26593623, 'pht': 3726}}" where mtr_portfolio_id = 26593573 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26593573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835402, 0.05473604360016434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26593573_05-09-2025_21_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26593611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26593612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26593613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26593614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26593615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26593616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26593617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26593618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26593619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26593620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26593622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26593623, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26594836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3672247, 'mtr_portfolio_id': 26594836, 'created_at': datetime.datetime(2025, 9, 5, 21, 32, 58), 'result': '0.0596041828266502', 'result_long': None, 'result_double': None}] Qualite : 0.0596041828266502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26594836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26594836_05-09-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26594836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26594836_05-09-2025_21_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26594839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26594840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26594841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26594842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26594843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26594844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26594845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26594846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26594847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26594848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26594849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26594850, 'pht': 3726}}" where mtr_portfolio_id = 26594836 and dashboard_run_id = 2248449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26594836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835403, 0.0596041828266502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26594836_05-09-2025_21_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26594839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26594840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26594841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26594842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26594843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26594844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26594845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26594846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26594847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26594848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26594849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26594850, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26596029 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3672426, 'mtr_portfolio_id': 26596029, 'created_at': datetime.datetime(2025, 9, 5, 22, 35), 'result': '0.023346958786724447', 'result_long': None, 'result_double': None}] Qualite : 0.023346958786724447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26596029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596029_05-09-2025_22_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26596029 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596029_05-09-2025_22_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26596030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596041, 'pht': 3726}}" where mtr_portfolio_id = 26596029 and dashboard_run_id = 2248453 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26596029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835404, 0.023346958786724447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596029_05-09-2025_22_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26596030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596041, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26596357 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 = 26596357 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 = 26596357 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26596357 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 = 26596357 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 = 26596357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596357_05-09-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26596357 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596357_05-09-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596428, 'pht': 3726}}" where mtr_portfolio_id = 26596357 and dashboard_run_id = 2248453 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26596533 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3672472, 'mtr_portfolio_id': 26596533, 'created_at': datetime.datetime(2025, 9, 5, 23, 2, 30), 'result': '0.05457124501713129', 'result_long': None, 'result_double': None}] Qualite : 0.05457124501713129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26596533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596533_05-09-2025_23_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26596533 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596533_05-09-2025_23_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596545, 'pht': 3726}}" where mtr_portfolio_id = 26596533 and dashboard_run_id = 2248453 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26596533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835406, 0.05457124501713129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596533_05-09-2025_23_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26596537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26596538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26596543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26596990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3672509, 'mtr_portfolio_id': 26596990, 'created_at': datetime.datetime(2025, 9, 5, 23, 14, 58), 'result': '0.019708187856722997', 'result_long': None, 'result_double': None}] Qualite : 0.019708187856722997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26596990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596990_05-09-2025_23_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26596990 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596990_05-09-2025_23_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26597000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26597001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26597002, 'pht': 3726}}" where mtr_portfolio_id = 26596990 and dashboard_run_id = 2248453 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26596990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14835407, 0.019708187856722997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26596990_05-09-2025_23_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26596991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26596992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26596993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26596994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26596995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26596996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26596997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26596998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26596999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26597000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26597001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26597002, '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 (26552286,26552950,26553483,26553954,26555558,26555560,26556761,26556619,26556621,26557110,26557601,26557985,26558350,26558751,26559193,26561250,26561102,26561104,26561105,26561584,26562090,26562602,26562998,26563505,26564166,26565028,26565501,26568769,26568911,26568775,26568779,26569896,26570443,26571192,26571940,26572507,26573166,26573687,26573993,26574368,26577767,26577916,26578342,26578990,26579594,26580217,26580844,26581510,26582007,26582740,26586069,26586227,26586077,26586084,26586230,26587010,26588163,26588711,26589185,26589734,26590298,26590984,26591510,26592039,26592450,26593034,26593573,26594836,26596029,26596357,26596533,26596990) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,), (1381588093,), (1381588095,), (1381588097,), (1381588099,), (1381588102,), (1381588104,), (1381588400,), (1381588393,), (1381588395,), (1381588397,), (1381588567,), (1381588569,), (1381588571,), (1381588573,), (1381588575,), (1381588743,), (1381588744,), (1381588745,), (1381588746,), (1381588747,), (1381588749,), (1381588979,), (1381588981,), (1381588984,), (1381588986,), (1381589178,), (1381589180,), (1381589182,), (1381589184,), (1381589187,), (1381589189,), (1381589294,), (1381589295,), (1381589296,), (1381589297,), (1381589298,), (1381589300,), (1381589350,), (1381589351,), (1381589352,), (1381589353,), (1381589392,), (1381589394,), (1381589395,), (1381589397,), (1381589398,), (1381589435,), (1381589443,), (1381589444,), (1381589446,), (1381589447,), (1381589489,), (1381589490,), (1381589491,), (1381589492,), (1381589540,), (1381589541,), (1381589542,), (1381589543,), (1381589545,), (1381589546,), (1381589611,), (1381589613,), (1381589616,), (1381589620,), (1381589623,), (1381589726,), (1381589727,), (1381589728,), (1381589729,), (1381589730,), (1381589765,), (1381589766,), (1381589821,), (1381589822,), (1381589823,), (1381589824,), (1381589865,), (1381589860,), (1381589861,), (1381589862,), (1381589863,), (1381589970,), (1381589971,), (1381589973,), (1381589974,), (1381590017,), (1381590018,), (1381590019,), (1381590020,), (1381590021,), (1381590022,), (1381590076,), (1381590078,), (1381590079,), (1381590080,), (1381590082,), (1381590157,), (1381590159,), (1381590160,), (1381590161,), (1381590196,), (1381590197,), (1381590198,), (1381590199,), (1381590234,), (1381590235,), (1381590236,), (1381590237,), (1381590239,), (1381590316,), (1381590317,), (1381590318,), (1381590319,), (1381590321,), (1381590351,), (1381590352,), (1381590353,), (1381590354,), (1381590355,), (1381590356,), (1381590404,), (1381590405,), (1381590407,), (1381590408,), (1381590409,), (1381590410,), (1381590454,), (1381590456,), (1381590457,), (1381590458,), (1381590504,), (1381590505,), (1381590506,), (1381590507,), (1381590508,), (1381590509,), (1381590543,), (1381590544,), (1381590545,), (1381590546,), (1381590548,), (1381590617,), (1381590618,), (1381590619,), (1381590661,), (1381590663,), (1381590664,), (1381590665,), (1381590666,), (1381590667,), (1381590717,), (1381590712,), (1381590713,), (1381590714,), (1381590715,), (1381590716,), (1381590753,), (1381590754,), (1381590828,), (1381590830,), (1381590832,), (1381590835,), (1381590837,), (1381590877,), (1381590878,), (1381590879,), (1381590880,), (1381590881,), (1381590927,), (1381590928,), (1381590929,), (1381590930,), (1381590964,), (1381590965,), (1381590966,), (1381590967,), (1381591124,), (1381591169,), (1381591170,), (1381591171,), (1381591172,), (1381591173,), (1381591217,), (1381591218,), (1381591220,), (1381591224,), (1381591227,), (1381591229,), (1381591243,), (1381591244,), (1381591245,), (1381591246,), (1381591248,), (1381591413,), (1381591415,), (1381591417,), (1381591419,), (1381591421,), (1381595847,), (1381595882,), (1381595883,), (1381595884,), (1381595886,), (1381595887,), (1381595947,), (1381595948,), (1381595949,), (1381596040,), (1381596041,), (1381596042,), (1381596099,), (1381596100,), (1381596101,), (1381596102,), (1381596147,), (1381596148,), (1381596149,), (1381596150,), (1381596151,), (1381596152,), (1381596199,), (1381596200,), (1381596202,), (1381596203,), (1381596205,), (1381596237,), (1381596238,), (1381596239,), (1381596296,), (1381596297,), (1381596298,), (1381596299,), (1381596300,), (1381596349,), (1381596350,), (1381596352,), (1381596354,), (1381596355,), (1381596389,), (1381596391,), (1381596392,), (1381596393,), (1381596449,), (1381596450,), (1381596488,), (1381596489,), (1381596535,), (1381596536,), (1381596537,), (1381596539,), (1381596541,), (1381596577,), (1381596579,), (1381596580,), (1381596582,), (1381596628,), (1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,), (1381602249,), (1381604849,), (1381604850,), (1381604851,), (1381604852,), (1381604854,), (1381604855,), (1381604894,), (1381604896,), (1381604942,), (1381604943,), (1381604944,), (1381604972,), (1381604973,), (1381605075,), (1381605077,), (1381605080,), (1381605083,), (1381605086,), (1381605087,), (1381605161,), (1381605163,), (1381605165,), (1381605219,), (1381605216,), (1381605217,), (1381605218,), (1381605265,), (1381605266,), (1381605267,), (1381605268,), (1381605269,), (1381605271,), (1381605323,), (1381605324,), (1381605325,), (1381605326,), (1381605327,), (1381605414,), (1381605415,), (1381605416,), (1381605417,), (1381605418,), (1381605419,), (1381605453,), (1381605454,), (1381605455,), (1381605456,), (1381605457,), (1381605508,), (1381605509,), (1381605510,), (1381605511,), (1381605568,), (1381605569,), (1381605570,), (1381605571,), (1381605608,), (1381605609,), (1381605610,), (1381605611,), (1381605613,), (1381605672,), (1381605673,), (1381605674,), (1381605716,), (1381605717,), (1381605718,), (1381605719,), (1381605720,), (1381605766,), (1381605767,), (1381605768,), (1381605769,), (1381605770,), (1381605771,), (1381605810,), (1381605812,), (1381605814,), (1381605815,), (1381605905,), (1381605906,), (1381605907,), (1381605908,), (1381605909,), (1381605910,), (1381605954,), (1381605955,), (1381605957,), (1381605958,), (1381605959,), (1381605961,), (1381605994,), (1381605995,), (1381605996,), (1381605997,), (1381605998,), (1381605999,), (1381606049,), (1381597636,), (1381597638,), (1381597846,), (1381597847,), (1381597848,), (1381597849,), (1381597850,), (1381598044,), (1381598046,), (1381598048,), (1381598050,), (1381598052,), (1381598054,), (1381598238,), (1381598239,), (1381598240,), (1381598241,), (1381598266,), (1381598275,), (1381598276,), (1381598278,), (1381598280,), (1381598281,), (1381598328,), (1381598329,), (1381598330,), (1381598332,), (1381598333,), (1381601466,), (1381601468,), (1381601877,), (1381601880,), (1381601883,), (1381601886,), (1381601889,), (1381602252,), (1381602255,), (1381602258,), (1381602261,), (1381602264,), (1381602337,), (1381606047,), (1381606048,), (1381606093,), (1381606094,), (1381606095,), (1381606096,), (1381606097,), (1381606161,), (1381606162,), (1381606163,), (1381606164,), (1381606165,), (1381606198,), (1381606199,), (1381606200,), (1381606201,), (1381606252,), (1381606253,), (1381606254,), (1381606255,), (1381606256,), (1381606294,), (1381606295,), (1381606297,), (1381606298,), (1381606299,), (1381606300,), (1381606345,), (1381606346,), (1381606347,), (1381606411,), (1381606412,), (1381606414,), (1381606415,), (1381606416,), (1381606417,), (1381606463,), (1381606464,), (1381606465,), (1381606466,), (1381606498,), (1381606499,), (1381606500,), (1381606501,), (1381606594,), (1381606644,), (1381607065,), (1381607067,), (1381609098,), (1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,), (1381610872,), (1381610873,), (1381610874,), (1381610875,), (1381610877,), (1381610919,), (1381610917,), (1381610918,), (1381611027,), (1381611036,), (1381611037,), (1381611039,), (1381611071,), (1381611072,), (1381611073,), (1381611074,), (1381611075,), (1381611076,), (1381611119,), (1381611120,), (1381611121,), (1381611122,), (1381611123,), (1381611169,), (1381611170,), (1381611171,), (1381611173,), (1381611174,), (1381611175,), (1381611225,), (1381611226,), (1381611227,), (1381611228,), (1381611229,), (1381611239,), (1381611240,), (1381611241,), (1381611242,), (1381611243,), (1381611244,), (1381611280,), (1381611281,), (1381611282,), (1381611283,), (1381611313,), (1381611314,), (1381611315,), (1381611316,), (1381611338,), (1381611339,), (1381611340,), (1381611360,), (1381611361,), (1381611363,), (1381611364,), (1381611365,), (1381611366,), (1381611439,), (1381611440,), (1381611441,), (1381611442,), (1381611443,), (1381611444,), (1381611483,), (1381611484,), (1381611485,), (1381611486,), (1381611528,), (1381611529,), (1381611530,), (1381611531,), (1381611532,), (1381611534,), (1381611578,), (1381611574,), (1381611575,), (1381611576,), (1381611577,), (1381611626,), (1381611627,), (1381611628,), (1381611629,), (1381611630,), (1381611631,), (1381611698,), (1381611699,), (1381611701,), (1381611702,), (1381611703,), (1381611757,), (1381611758,), (1381611759,), (1381611760,), (1381611761,), (1381611800,), (1381611801,), (1381611802,), (1381611803,), (1381611804,), (1381611805,), (1381611848,), (1381611849,), (1381611850,), (1381611851,), (1381611887,), (1381611888,), (1381611889,), (1381611890,), (1381611891,), (1381611892,), (1381611964,), (1381611965,), (1381611966,), (1381611967,), (1381612075,), (1381612076,), (1381612077,), (1381612078,), (1381612079,), (1381612080,), (1381612135,), (1381612136,), (1381612137,), (1381612138,), (1381612180,), (1381612181,), (1381612183,), (1381612184,), (1381612185,), (1381612186,), (1381612233,), (1381612234,), (1381612235,), (1381612236,), (1381612292,), (1381612293,), (1381612295,), (1381612296,), (1381612297,), (1381612298,), (1381612347,), (1381612349,), (1381612350,), (1381612351,), (1381612390,), (1381612392,), (1381612393,), (1381612394,), (1381612395,), (1381612396,), (1381612459,), (1381612456,), (1381612457,), (1381612458,), (1381612488,), (1381612489,), (1381612490,), (1381612560,), (1381612561,), (1381612562,), (1381612563,), (1381612564,), (1381612597,), (1381612598,), (1381612600,), (1381612601,), (1381612602,), (1381612603,), (1381612660,), (1381612661,), (1381612662,), (1381612663,), (1381612664,), (1381612708,), (1381612709,), (1381612710,), (1381612711,), (1381612712,), (1381612713,), (1381612760,), (1381612761,), (1381612762,), (1381612763,), (1381612831,), (1381612832,), (1381612833,), (1381612834,), (1381612873,), (1381612874,), (1381612875,), (1381612876,), (1381612877,), (1381612878,), (1381612915,), (1381612916,), (1381612917,), (1381612918,), (1381612952,), (1381612953,), (1381612954,), (1381612955,), (1381612993,), (1381612995,), (1381612998,), (1381612999,), (1381613045,), (1381613046,), (1381613047,), (1381613049,), (1381613050,), (1381613431,), (1381613433,), (1381613435,), (1381613437,), (1381613502,), (1381613504,), (1381613506,), (1381613508,), (1381613854,), (1381613846,), (1381613848,), (1381613850,), (1381613852,), (1381614041,), (1381614042,), (1381614377,), (1381614379,), (1381614382,), (1381614385,), (1381614890,), (1381614892,), (1381614894,), (1381614895,), (1381614897,), (1381615278,), (1381615281,), (1381615283,), (1381615285,), (1381615287,), (1381615548,), (1381615549,), (1381615550,), (1381615551,), (1381615552,), (1381615772,), (1381615773,), (1381615774,), (1381615775,), (1381615776,), (1381615777,), (1381616157,), (1381616159,), (1381617539,), (1381622250,), (1381624479,), (1381624480,), (1381624481,), (1381624482,), (1381624525,), (1381624526,), (1381624527,), (1381624528,), (1381624576,), (1381624577,), (1381624578,), (1381624579,), (1381624580,), (1381624624,), (1381624625,), (1381624627,), (1381624628,), (1381624690,), (1381624691,), (1381624692,), (1381624693,), (1381624694,), (1381624768,), (1381624769,), (1381624770,), (1381624771,), (1381624851,), (1381624852,), (1381624853,), (1381624854,), (1381624855,), (1381624900,), (1381624901,), (1381624902,), (1381624903,), (1381624953,), (1381624954,), (1381624955,), (1381624956,), (1381624957,), (1381624958,), (1381625033,), (1381625034,), (1381625035,), (1381625037,), (1381625038,), (1381625113,), (1381625114,), (1381625115,), (1381625116,), (1381625117,), (1381625118,), (1381625154,), (1381625155,), (1381625156,), (1381625157,), (1381625212,), (1381625213,), (1381625214,), (1381625215,), (1381625216,), (1381625271,), (1381625266,), (1381625267,), (1381625268,), (1381625269,), (1381625270,), (1381625322,), (1381625323,), (1381625324,), (1381625325,), (1381625405,), (1381625406,), (1381625407,), (1381625408,), (1381625409,), (1381625410,), (1381625450,), (1381625451,), (1381625452,), (1381625454,), (1381625487,), (1381625499,), (1381625500,), (1381625502,), (1381625503,), (1381625504,), (1381625553,), (1381625555,), (1381625556,), (1381625557,), (1381625603,), (1381625604,), (1381625605,), (1381625606,), (1381625685,), (1381625686,), (1381625687,), (1381625688,), (1381625689,), (1381625690,), (1381625725,), (1381625726,), (1381625727,), (1381625728,), (1381625795,), (1381625796,), (1381625797,), (1381625835,), (1381625836,), (1381625838,), (1381625840,), (1381625841,), (1381625904,), (1381625906,), (1381625907,), (1381625947,), (1381625948,), (1381625949,), (1381625950,), (1381625951,), (1381625985,), (1381625997,), (1381625998,), (1381625999,), (1381626039,), (1381626040,), (1381626041,), (1381626042,), (1381626043,), (1381626044,), (1381626100,), (1381626095,), (1381626096,), (1381626097,), (1381626098,), (1381626099,), (1381626136,), (1381626137,), (1381626138,), (1381626139,), (1381626228,), (1381626229,), (1381626230,), (1381626231,), (1381626232,), (1381626233,), (1381626275,), (1381626276,), (1381626277,), (1381626278,), (1381626279,), (1381626333,), (1381626335,), (1381626336,), (1381626337,), (1381626338,), (1381626339,), (1381626375,), (1381626376,), (1381626377,), (1381626378,), (1381626433,), (1381626435,), (1381626436,), (1381626437,), (1381626438,), (1381626439,), (1381626510,), (1381626512,), (1381626514,), (1381626515,), (1381626516,), (1381626569,), (1381626570,), (1381626571,), (1381626572,), (1381626573,), (1381626575,), (1381626612,), (1381626614,), (1381626615,), (1381626646,), (1381626647,), (1381626648,), (1381626649,), (1381626686,), (1381626687,), (1381626688,), (1381626689,), (1381626690,), (1381626691,), (1381626775,), (1381626776,), (1381626777,), (1381626778,), (1381626836,), (1381626837,), (1381626838,), (1381626840,), (1381626855,), (1381626856,), (1381626857,), (1381626859,), (1381626906,), (1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,), (1381626903,), (1381626904,), (1381626905,), (1381627263,), (1381627265,), (1381627267,), (1381627269,), (1381627271,), (1381627273,), (1381628004,), (1381628007,), (1381628011,), (1381628015,), (1381628793,), (1381628796,), (1381628799,), (1381628802,), (1381628806,), (1381629063,), (1381629065,), (1381629067,), (1381629686,), (1381629689,), (1381629692,), (1381629695,), (1381630124,), (1381630126,), (1381630128,), (1381630130,), (1381630133,), (1381630527,), (1381630529,), (1381630531,), (1381630533,), (1381630535,), (1381630537,), (1381630635,), (1381630636,), (1381630637,), (1381630638,), (1381630639,), (1381630640,), (1381630917,), (1381630919,), (1381630921,), (1381630923,), (1381630925,), (1381630927,), (1381630979,), (1381630981,), (1381630983,), (1381630985,), (1381631153,), (1381631155,), (1381631157,), (1381631159,), (1381631161,), (1381631233,), (1381631234,), (1381631236,), (1381631237,), (1381631238,), (1381631276,), (1381631277,), (1381631278,), (1381631279,), (1381631280,), (1381631281,), (1381631321,), (1381631323,), (1381631325,), (1381631327,), (1381631375,), (1381631376,), (1381631377,), (1381631378,), (1381631379,), (1381631380,), (1381631429,), (1381631425,), (1381631426,), (1381631427,), (1381631428,), (1381631468,), (1381631469,), (1381631470,), (1381631471,), (1381631518,), (1381631519,), (1381631520,), (1381631521,), (1381631558,), (1381631559,), (1381631561,), (1381631563,), (1381631564,), (1381631615,), (1381631616,), (1381631617,), (1381631619,), (1381631651,), (1381631652,), (1381631653,), (1381631654,), (1381631655,), (1381631656,), (1381631699,), (1381631700,), (1381631701,), (1381631738,), (1381631740,), (1381631741,), (1381631783,), (1381631784,), (1381631785,), (1381631786,), (1381631787,), (1381631822,), (1381631823,), (1381631824,), (1381631825,), (1381631826,), (1381631877,), (1381631878,), (1381631879,), (1381631881,), (1381631882,), (1381631916,), (1381631917,), (1381631918,), (1381631919,), (1381631920,), (1381631960,), (1381631961,), (1381631963,), (1381631964,), (1381631965,), (1381632004,), (1381632005,), (1381632006,), (1381632007,), (1381632008,), (1381632009,), (1381632049,), (1381632050,), (1381632051,), (1381632052,), (1381632053,), (1381632096,), (1381632091,), (1381632092,), (1381632093,), (1381632094,), (1381632095,), (1381632151,), (1381632152,), (1381632153,), (1381632154,), (1381632155,), (1381632156,), (1381632229,), (1381632230,), (1381632231,), (1381632232,), (1381632233,), (1381632290,), (1381632291,), (1381632292,), (1381632293,), (1381632294,), (1381632295,), (1381632333,), (1381632334,), (1381632335,), (1381632336,), (1381632391,), (1381632392,), (1381632394,), (1381632396,), (1381632398,), (1381632400,), (1381632451,), (1381632452,), (1381632453,), (1381632454,), (1381632455,), (1381632456,), (1381632565,), (1381632566,), (1381632567,), (1381632568,), (1381632614,), (1381632615,), (1381632616,), (1381632617,), (1381632618,), (1381632666,), (1381632667,), (1381632668,), (1381632669,), (1381632670,), (1381632702,), (1381632703,), (1381632704,), (1381632705,), (1381632752,), (1381632753,), (1381632754,), (1381632755,), (1381632756,), (1381632818,), (1381632819,), (1381632820,), (1381632821,), (1381632822,), (1381632824,), (1381632872,), (1381632873,), (1381632874,), (1381632875,), (1381632876,), (1381632910,), (1381632911,), (1381632912,), (1381632972,), (1381632968,), (1381632969,), (1381632970,), (1381633008,), (1381633009,), (1381633010,), (1381633011,), (1381633012,), (1381633085,), (1381633095,), (1381633096,), (1381633097,), (1381633128,), (1381633129,), (1381633130,), (1381633131,), (1381633177,), (1381633215,), (1381633217,), (1381633265,), (1381633266,), (1381633267,), (1381633268,), (1381633306,), (1381633307,), (1381633308,), (1381633309,), (1381633350,), (1381633351,), (1381633352,), (1381633353,), (1381633354,), (1381633387,), (1381633388,), (1381633389,), (1381633390,), (1381633427,), (1381633428,), (1381633429,), (1381633430,), (1381633464,), (1381633471,), (1381633472,), (1381633473,), (1381633474,), (1381633552,), (1381633553,), (1381633554,), (1381633555,), (1381634077,), (1381634081,), (1381634084,), (1381634087,), (1381634090,), (1381634840,), (1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,), (1381638535,), (1381638536,), (1381638537,), (1381638538,), (1381638539,), (1381638598,), (1381638596,), (1381638597,), (1381638842,), (1381638845,), (1381638848,), (1381638851,), (1381638854,), (1381638857,), (1381639224,), (1381639225,), (1381639226,), (1381639227,), (1381639502,), (1381639504,), (1381639505,), (1381639506,), (1381639507,), (1381639571,), (1381639572,), (1381639573,), (1381639574,), (1381639575,), (1381639576,), (1381639808,), (1381639810,), (1381639812,), (1381639814,), (1381639816,), (1381640103,), (1381640104,), (1381640105,), (1381640106,), (1381640107,), (1381640108,), (1381640208,), (1381640209,), (1381640210,), (1381640259,), (1381640263,), (1381640265,), (1381640267,), (1381641167,), (1381641209,), (1381641210,), (1381641211,), (1381641212,), (1381641257,), (1381641270,), (1381641271,), (1381641272,), (1381641307,), (1381641308,), (1381641356,), (1381641357,), (1381641358,), (1381641359,), (1381641360,), (1381641400,), (1381641401,), (1381641402,), (1381641403,), (1381641450,), (1381641451,), (1381641452,), (1381641453,), (1381641493,), (1381641494,), (1381641495,), (1381641496,), (1381641497,), (1381641498,), (1381641645,), (1381641646,), (1381641647,), (1381641648,), (1381641649,), (1381641683,), (1381641684,), (1381641685,), (1381641733,), (1381641734,), (1381641735,), (1381641736,), (1381641737,), (1381641777,), (1381641778,), (1381641779,), (1381641780,), (1381641781,), (1381641782,), (1381641824,), (1381641825,), (1381641826,), (1381641827,), (1381641828,), (1381641871,), (1381641872,), (1381641873,), (1381641923,), (1381641919,), (1381641920,), (1381641921,), (1381641922,), (1381641961,), (1381641962,), (1381641963,), (1381641964,), (1381641965,), (1381641998,), (1381641999,), (1381642000,), (1381642040,), (1381642041,), (1381642042,), (1381642043,), (1381642095,), (1381642096,), (1381642097,), (1381642098,), (1381642267,), (1381642268,), (1381642269,), (1381642270,), (1381642271,), (1381642392,), (1381642393,), (1381642395,), (1381642397,), (1381642399,), (1381642401,), (1381642407,), (1381642408,), (1381642410,), (1381642440,), (1381642442,), (1381642487,), (1381642488,), (1381642489,), (1381642490,), (1381642491,), (1381642613,), (1381642615,), (1381642616,), (1381642617,), (1381642618,), (1381642665,), (1381642666,), (1381642667,), (1381642704,), (1381642705,), (1381642706,), (1381642707,), (1381642708,), (1381642744,), (1381642745,), (1381642746,), (1381642747,), (1381642748,), (1381642749,), (1381643030,), (1381643032,), (1381643034,), (1381643036,), (1381643038,), (1381643680,), (1381643668,), (1381643671,), (1381643674,), (1381643677,), (1381644349,), (1381644501,), (1381644504,), (1381644507,), (1381645106,), (1381645109,), (1381645112,), (1381645115,), (1381645118,), (1381645121,), (1381645833,), (1381645835,), (1381645837,), (1381645839,), (1381645841,), (1381645843,), (1381646507,), (1381646511,), (1381647197,), (1381647574,), (1381647716,), (1381647717,), (1381647718,), (1381647719,), (1381647801,), (1381647802,), (1381647803,), (1381647804,), (1381647805,), (1381647806,), (1381647847,), (1381647848,), (1381647849,), (1381647850,), (1381647851,), (1381647852,), (1381647977,), (1381647978,), (1381647979,), (1381647980,), (1381648043,), (1381648044,), (1381648045,), (1381648046,), (1381648146,), (1381648147,), (1381648148,), (1381648149,), (1381648150,), (1381648151,), (1381648204,), (1381648205,), (1381648206,), (1381648207,), (1381648376,), (1381650546,), (1381650547,), (1381650548,), (1381650549,), (1381650550,), (1381650594,), (1381650595,), (1381650596,), (1381650597,), (1381650598,), (1381650851,), (1381650852,), (1381650853,), (1381650854,), (1381650855,), (1381650856,), (1381651059,), (1381651060,), (1381651061,), (1381651062,), (1381651211,), (1381651214,), (1381651216,), (1381651218,), (1381651220,), (1381651684,), (1381651686,), (1381651688,), (1381651690,), (1381651692,), (1381651694,), (1381651925,), (1381651926,), (1381651927,), (1381651928,), (1381652119,), (1381652120,), (1381652121,), (1381652122,), (1381652123,), (1381652124,), (1381652388,), (1381652392,), (1381652396,), (1381652400,), (1381652404,), (1381652466,), (1381652467,), (1381652468,), (1381652469,), (1381652470,), (1381652471,), (1381652786,), (1381652789,), (1381652790,), (1381653283,), (1381653288,), (1381653293,), (1381653297,), (1381653299,), (1381653301,), (1381653689,), (1381653692,), (1381653695,), (1381653698,), (1381653700,), (1381654245,), (1381654246,), (1381654247,), (1381654248,), (1381654250,), (1381654432,), (1381654435,), (1381654438,), (1381654441,), (1381654444,), (1381654447,), (1381654841,), (1381654838,), (1381654839,), (1381654840,), (1381655026,), (1381655033,), (1381655034,), (1381655035,), (1381655036,), (1381655173,), (1381656296,), (1381656297,), (1381656501,), (1381656502,), (1381656503,), (1381656504,), (1381656505,), (1381656543,), (1381656544,), (1381656545,), (1381664392,), (1381648372,), (1381648373,), (1381648374,), (1381648375,), (1381648714,), (1381648716,), (1381648952,), (1381648953,), (1381648954,), (1381648987,), (1381648988,), (1381648989,), (1381648990,), (1381648991,), (1381649202,), (1381649288,), (1381649295,), (1381649301,), (1381649306,), (1381649506,), (1381649507,), (1381649508,), (1381649509,), (1381649554,), (1381649555,), (1381649556,), (1381649557,), (1381649619,), (1381649620,), (1381649621,), (1381649682,), (1381649683,), (1381649755,), (1381649756,), (1381649757,), (1381649758,), (1381649885,), (1381649886,), (1381649968,), (1381649969,), (1381649970,), (1381649971,), (1381649972,), (1381650236,), (1381650238,), (1381650240,), (1381650242,), (1381650244,), (1381650246,), (1381650395,), (1381650454,), (1381650455,), (1381650456,), (1381650492,), (1381650493,), (1381650494,), (1381650495,), (1381650496,), (1381650551,), (1381666765,), (1381666766,), (1381666767,), (1381666768,), (1381666805,), (1381666806,), (1381666807,), (1381666893,), (1381666895,), (1381667092,), (1381667093,), (1381667094,), (1381667095,), (1381667096,), (1381667151,), (1381667152,), (1381667196,), (1381667206,), (1381667207,), (1381667208,), (1381667271,), (1381667272,), (1381667273,), (1381667274,), (1381667275,), (1381667326,), (1381667327,), (1381667328,), (1381667329,), (1381667331,), (1381667332,), (1381667337,), (1381667338,), (1381667370,), (1381667371,), (1381667372,), (1381667373,), (1381667374,), (1381667375,), (1381667412,), (1381667413,), (1381667414,), (1381667415,), (1381667416,), (1381667417,), (1381667482,), (1381667483,), (1381667484,), (1381667485,), (1381667486,), (1381667695,), (1381667698,), (1381667700,), (1381667702,), (1381667704,), (1381667706,), (1381668105,), (1381668107,), (1381668109,), (1381668111,), (1381669152,), (1381669154,), (1381669156,), (1381669158,), (1381669160,), (1381669162,), (1381669879,), (1381669867,), (1381669870,), (1381669873,), (1381669876,), (1381670639,), (1381670642,), (1381670645,), (1381670648,), (1381670651,), (1381671222,), (1381671223,), (1381671224,), (1381671225,), (1381671226,), (1381671227,), (1381671259,), (1381671261,), (1381671263,), (1381671266,), (1381671823,), (1381671826,), (1381671829,), (1381671832,), (1381671835,), (1381671838,), (1381672620,), (1381672624,), (1381673631,), (1381674064,), (1381674065,), (1381674066,), (1381674067,), (1381674333,), (1381674335,), (1381674336,), (1381674338,), (1381674340,), (1381674342,), (1381674424,), (1381674425,), (1381674426,), (1381674599,), (1381674670,), (1381674671,), (1381674673,), (1381674675,), (1381674947,), (1381674948,), (1381674949,), (1381675685,), (1381675687,), (1381675689,), (1381675692,), (1381676401,), (1381676404,), (1381676407,), (1381676711,), (1381676714,), (1381676717,), (1381676720,), (1381676723,), (1381676726,), (1381677161,), (1381677603,), (1381677600,), (1381677601,), (1381677602,), (1381677866,), (1381677868,), (1381677870,), (1381677872,), (1381677874,), (1381677876,), (1381678330,), (1381678332,), (1381678334,), (1381678336,), (1381678338,), (1381678340,), (1381678725,), (1381678728,), (1381678731,), (1381678734,), (1381679081,), (1381679083,), (1381679085,), (1381679087,), (1381679089,), (1381679091,), (1381679798,), (1381679799,), (1381679800,), (1381679801,), (1381679802,), (1381679803,), (1381679997,), (1381679999,), (1381680001,), (1381680003,), (1381680175,), (1381680176,), (1381680177,), (1381680179,), (1381680181,), (1381680183,), (1381680217,), (1381680218,), (1381680219,), (1381680220,), (1381680221,), (1381680277,), (1381680278,), (1381680279,), (1381680280,), (1381680324,), (1381680325,), (1381680326,), (1381680327,), (1381680328,), (1381680411,), (1381680448,), (1381680449,), (1381680450,), (1381680452,), (1381680453,), (1381680618,), (1381680619,), (1381680620,), (1381680732,), (1381680733,), (1381680734,), (1381680735,), (1381680830,), (1381680826,), (1381680827,), (1381680828,), (1381680829,), (1381680948,), (1381680949,), (1381680950,), (1381680951,), (1381680952,), (1381680953,), (1381681286,), (1381681287,), (1381681288,), (1381681465,), (1381681466,), (1381681467,), (1381681468,), (1381681469,), (1381681470,), (1381681569,), (1381681571,), (1381681573,), (1381681575,), (1381681619,), (1381681679,), (1381681680,), (1381682031,), (1381682032,), (1381682033,), (1381682034,), (1381682035,), (1381682305,), (1381682307,), (1381682309,), (1381682311,), (1381682313,), (1381682861,), (1381682864,), (1381682867,), (1381682870,), (1381683522,), (1381683524,), (1381683526,), (1381683527,), (1381683529,), (1381683881,), (1381683882,), (1381683883,), (1381684170,), (1381684172,), (1381684174,), (1381684176,), (1381684178,), (1381684181,), (1381685167,), (1381685170,), (1381685173,), (1381685176,), (1381685925,), (1381685851,), (1381685921,), (1381685923,), (1381686253,), (1381686255,), (1381686257,), (1381686259,), (1381686261,), (1381686263,), (1381687155,), (1381687159,), (1381687163,), (1381687168,), (1381687611,), (1381687613,), (1381688047,), (1381688048,), (1381688049,), (1381688050,), (1381688100,), (1381688101,), (1381688103,), (1381688104,), (1381688105,), (1381688106,), (1381688195,), (1381688196,), (1381688197,), (1381688198,), (1381688519,), (1381688523,), (1381688526,), (1381688529,), (1381689398,), (1381689400,), (1381689735,), (1381689737,), (1381689739,), (1381690535,), (1381690537,), (1381690539,), (1381690541,), (1381690611,), (1381690613,), (1381690615,), (1381691098,), (1381691094,), (1381691096,), (1381691940,), (1381691944,), (1381691949,), (1381691953,), (1381693206,), (1381693209,), (1381693212,), (1381693215,), (1381693218,), (1381693221,), (1381694024,), (1381694026,), (1381694028,), (1381694489,), (1381694931,), (1381694934,), (1381694937,), (1381695484,), (1381695486,), (1381695488,), (1381695490,), (1381695859,), (1381695861,), (1381696170,), (1381696171,), (1381696172,), (1381696173,), (1381696174,), (1381696255,), (1381696257,), (1381696258,), (1381696468,), (1381696470,), (1381696472,), (1381696475,), (1381696477,), (1381696479,), (1381696989,), (1381696990,), (1381696991,), (1381696992,), (1381697277,), (1381697279,), (1381697281,), (1381697283,), (1381698077,), (1381698079,), (1381698081,), (1381698727,), (1381698729,), (1381698731,), (1381698733,), (1381698734,), (1381698735,), (1381698957,), (1381698951,), (1381698953,), (1381698955,), (1381699426,), (1381699427,), (1381699428,), (1381699669,), (1381699672,), (1381699675,), (1381699994,), (1381699999,), (1381700004,), (1381700754,), (1381700757,), (1381700761,), (1381700764,), (1381700767,), (1381701861,), (1381701940,), (1381701942,), (1381702812,), (1381702813,), (1381702814,), (1381702815,), (1381702921,), (1381702922,), (1381702926,), (1381703000,), (1381703100,), (1381703203,), (1381703199,), (1381703200,), (1381703201,), (1381703202,), (1381703401,), (1381703402,), (1381703403,), (1381703404,), (1381703405,), (1381703406,), (1381703782,), (1381703784,), (1381703786,), (1381703788,), (1381704069,), (1381704071,), (1381704073,), (1381704075,), (1381704077,), (1381704079,), (1381704595,), (1381704597,), (1381704599,), (1381704601,), (1381704851,), (1381704852,), (1381704853,), (1381704855,), (1381704856,), (1381704857,), (1381704926,), (1381704927,), (1381704928,), (1381704929,), (1381704971,), (1381704972,), (1381704973,), (1381704974,), (1381705033,), (1381705034,), (1381705035,), (1381705036,), (1381705037,), (1381705038,), (1381705074,), (1381705075,), (1381705076,), (1381705208,), (1381705211,), (1381705214,), (1381705217,), (1381705220,), (1381705223,), (1381705465,), (1381705466,), (1381705467,), (1381705468,), (1381705469,), (1381705470,), (1381705537,), (1381705538,), (1381705539,), (1381705540,), (1381705609,), (1381705610,), (1381705612,), (1381705614,), (1381705616,), (1381705864,), (1381705866,), (1381705868,), (1381705869,), (1381706135,), (1381706131,), (1381706132,), (1381706133,), (1381706134,), (1381706300,), (1381706302,), (1381706304,), (1381706491,), (1381706493,), (1381706495,), (1381706497,), (1381706499,), (1381706830,), (1381706832,), (1381706833,), (1381706834,), (1381707111,), (1381707183,), (1381707185,), (1381707187,), (1381707363,), (1381707364,), (1381707365,), (1381707366,), (1381707436,), (1381707437,), (1381707438,), (1381707439,), (1381707440,), (1381707441,), (1381707787,), (1381707789,), (1381707792,), (1381707794,), (1381707960,), (1381707961,), (1381707962,), (1381707963,), (1381708018,), (1381708019,), (1381708020,), (1381708021,), (1381708022,), (1381708076,), (1381708077,), (1381708078,), (1381708345,), (1381708347,), (1381708349,), (1381708351,), (1381708353,), (1381708504,), (1381708505,), (1381708506,), (1381708508,), (1381708509,), (1381708510,), (1381709750,), (1381709753,), (1381709756,), (1381709759,), (1381709763,), (1381709875,), (1381709879,), (1381709883,), (1381709887,), (1381710871,), (1381741764,), (1381741815,), (1381741816,), (1381741907,), (1381741909,), (1381741911,), (1381741913,), (1381741915,), (1381742222,), (1381742300,), (1381742301,), (1381742302,), (1381742303,), (1381742304,), (1381742346,), (1381742428,), (1381742429,), (1381742430,), (1381742431,), (1381742432,), (1381742611,), (1381742615,), (1381742619,), (1381742622,), (1381742841,), (1381742842,), (1381742843,), (1381742844,), (1381742845,), (1381742893,), (1381742894,), (1381742895,), (1381742896,), (1381742948,), (1381742949,), (1381742950,), (1381742953,), (1381743061,), (1381743062,), (1381743063,), (1381743064,), (1381743186,), (1381743187,), (1381743188,), (1381743189,), (1381743249,), (1381743250,), (1381743251,), (1381743252,), (1381743308,), (1381743309,), (1381743421,), (1381743457,), (1381743458,), (1381743459,), (1381743460,), (1381743533,), (1381743534,), (1381743535,), (1381743536,), (1381743537,), (1381743538,), (1381744115,), (1381744118,), (1381744122,), (1381744125,), (1381744128,), (1381744238,), (1381744241,), (1381744244,), (1381744982,), (1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,), (1381748014,), (1381748156,), (1381748159,), (1381748162,), (1381748736,), (1381748738,), (1381748740,), (1381748742,), (1381748744,), (1381748746,), (1381749102,), (1381749105,), (1381749108,), (1381749111,), (1381749113,), (1381749584,), (1381749586,), (1381749588,), (1381749590,), (1381750167,), (1381750169,), (1381750171,), (1381750173,), (1381750175,), (1381750567,), (1381750569,), (1381750571,), (1381750573,), (1381750575,), (1381751008,), (1381751011,), (1381751014,), (1381751166,), (1381751167,), (1381751168,), (1381751169,), (1381751170,), (1381751249,), (1381751250,), (1381751251,), (1381751252,), (1381751253,), (1381751365,), (1381751362,), (1381751363,), (1381751364,), (1381751603,), (1381751605,), (1381751607,), (1381751609,), (1381751611,), (1381751613,), (1381751808,), (1381751809,), (1381751810,), (1381751811,), (1381752286,), (1381752288,), (1381752290,), (1381752292,), (1381752294,), (1381752469,), (1381752470,), (1381752471,), (1381752472,), (1381752567,), (1381752568,), (1381752569,), (1381752570,), (1381752624,), (1381752625,), (1381752626,), (1381752627,), (1381752628,), (1381752630,), (1381752705,), (1381752706,), (1381752707,), (1381752708,), (1381752709,), (1381752870,), (1381752872,), (1381752874,), (1381752876,), (1381752878,), (1381753277,), (1381753279,), (1381753281,), (1381753283,), (1381753285,), (1381753684,), (1381753686,), (1381753688,), (1381753690,), (1381753692,), (1381753694,), (1381753966,), (1381753967,), (1381753968,), (1381753969,), (1381754028,), (1381754029,), (1381754030,), (1381754031,), (1381754032,), (1381754033,), (1381754404,), (1381754406,), (1381754408,), (1381754410,), (1381754667,), (1381754668,), (1381754669,), (1381754670,), (1381754671,), (1381754880,), (1381754875,), (1381754876,), (1381754877,), (1381754878,), (1381754879,), (1381755077,), (1381755078,), (1381755079,), (1381755080,), (1381755433,), (1381755435,), (1381755436,), (1381755438,), (1381755440,), (1381755442,), (1381755782,), (1381755784,), (1381755786,), (1381755788,), (1381755790,), (1381755912,), (1381755913,), (1381755914,), (1381755915,), (1381755992,), (1381755993,), (1381755994,), (1381755995,), (1381755996,), (1381755997,), (1381756080,), (1381756081,), (1381756082,), (1381756083,), (1381756084,), (1381756383,), (1381756386,), (1381756389,), (1381756392,), (1381757019,), (1381757021,), (1381757023,), (1381757025,), (1381757027,), (1381757029,), (1381757618,), (1381757620,), (1381757623,), (1381757627,), (1381758532,), (1381758536,), (1381758540,), (1381758544,), (1381758548,), (1381758552,), (1381759074,), (1381759076,), (1381759078,), (1381759080,), (1381759082,), (1381759397,), (1381759399,), (1381759401,), (1381759403,), (1381759405,), (1381759407,), (1381759895,), (1381759898,), (1381759901,), (1381760222,), (1381760224,), (1381760226,), (1381760230,), (1381760589,), (1381760571,), (1381760574,), (1381760577,), (1381760581,), (1381760585,), (1381761044,), (1381761045,), (1381761046,), (1381761047,), (1381761048,), (1381761141,), (1381761142,), (1381761143,), (1381761144,), (1381761145,), (1381761183,), (1381761184,), (1381761185,), (1381761186,), (1381761187,), (1381761188,), (1381761534,), (1381761535,), (1381761536,), (1381761537,), (1381761538,), (1381761899,), (1381761900,), (1381761901,), (1381761902,), (1381761903,), (1381761904,), (1381761997,), (1381761998,), (1381761999,), (1381762000,), (1381762001,), (1381762313,), (1381762314,), (1381762316,), (1381762317,), (1381762318,), (1381762319,), (1381762540,), (1381762542,), (1381762544,), (1381762546,), (1381762548,), (1381762636,), (1381762637,), (1381762638,), (1381762639,), (1381762640,), (1381762826,), (1381762827,), (1381762828,), (1381762829,), (1381762830,), (1381762831,), (1381762917,), (1381762918,), (1381762919,), (1381762920,), (1381762921,), (1381763081,), (1381763083,), (1381763085,), (1381763087,), (1381763089,), (1381763091,), (1381763831,), (1381763833,), (1381763835,), (1381763837,), (1381763885,), (1381763887,), (1381763890,), (1381763892,), (1381764479,), (1381764463,), (1381764466,), (1381764470,), (1381764473,), (1381764476,), (1381764990,), (1381764992,), (1381764995,), (1381764997,), (1381764999,), (1381766014,), (1381766017,), (1381766021,), (1381766928,), (1381766930,), (1381766932,), (1381767303,), (1381767304,), (1381767305,), (1381767306,), (1381767308,), (1381767697,), (1381767972,), (1381767974,), (1381767976,), (1381767978,), (1381767980,), (1381768377,), (1381768379,), (1381768381,), (1381768849,), (1381768851,), (1381768853,), (1381768855,), (1381769041,), (1381769042,), (1381769043,), (1381769044,), (1381769340,), (1381769342,), (1381769344,), (1381769346,), (1381769518,), (1381769520,), (1381769523,), (1381769781,), (1381769782,), (1381769783,), (1381770053,), (1381770055,), (1381770057,), (1381770207,), (1381770208,), (1381770209,), (1381770210,), (1381770211,), (1381770270,), (1381770266,), (1381770267,), (1381770268,), (1381770269,), (1381770322,), (1381770362,), (1381770363,), (1381770364,), (1381770365,), (1381770367,), (1381770369,), (1381770408,), (1381770409,), (1381770410,), (1381770411,), (1381770413,), (1381770449,), (1381770462,), (1381770463,), (1381770464,), (1381770524,), (1381770525,), (1381770526,), (1381770527,), (1381770528,), (1381770590,), (1381770592,), (1381770594,), (1381770595,), (1381770629,), (1381770630,), (1381770631,), (1381770632,), (1381770674,), (1381770675,), (1381770676,), (1381770677,), (1381770714,), (1381770715,), (1381770716,), (1381770767,), (1381770768,), (1381770769,), (1381770770,), (1381770771,), (1381770856,), (1381770857,), (1381770858,), (1381770859,), (1381770860,), (1381770861,), (1381770994,), (1381770999,), (1381771003,), (1381771007,), (1381771097,), (1381771108,), (1381771109,), (1381771110,), (1381771162,), (1381771163,), (1381771164,), (1381771165,), (1381771253,), (1381771250,), (1381771251,), (1381771252,), (1381771285,), (1381771286,), (1381771287,), (1381771288,), (1381771289,), (1381771422,), (1381771424,), (1381771426,), (1381771428,), (1381771591,), (1381771592,), (1381771593,), (1381771594,), (1381771595,), (1381771812,), (1381771815,), (1381771818,), (1381771821,), (1381771824,), (1381772442,), (1381772444,), (1381772446,), (1381772448,), (1381772581,), (1381772583,), (1381772585,), (1381772587,), (1381772873,), (1381772928,), (1381772929,), (1381772930,), (1381772931,), (1381773341,), (1381773342,), (1381773461,), (1381773462,), (1381773463,), (1381773464,), (1381773466,), (1381773468,), (1381773521,), (1381773522,), (1381773826,), (1381773828,), (1381773830,), (1381773832,), (1381773834,), (1381774132,), (1381774134,), (1381774136,), (1381774138,), (1381774140,), (1381774142,), (1381774360,), (1381774361,), (1381774362,), (1381774363,), (1381774364,), (1381774365,), (1381774621,), (1381774623,), (1381774816,), (1381774813,), (1381774814,), (1381774815,), (1381775145,), (1381775147,), (1381775149,), (1381775151,), (1381775731,), (1381775733,), (1381775735,), (1381775737,), (1381775739,), (1381776067,), (1381776069,), (1381776071,), (1381776073,), (1381776341,), (1381776343,), (1381776345,), (1381776347,), (1381776349,), (1381776631,), (1381776632,), (1381776633,), (1381776634,), (1381776635,), (1381776636,), (1381776751,), (1381776754,), (1381776755,), (1381776756,), (1381777085,), (1381777089,), (1381777094,), (1381777098,), (1381777823,), (1381777825,), (1381777827,), (1381777829,), (1381777831,), (1381778099,), (1381778100,), (1381778101,), (1381778241,), (1381778312,), (1381778314,), (1381778316,), (1381778318,), (1381778540,), (1381778542,), (1381778544,), (1381778546,), (1381778548,), (1381778701,), (1381778703,), (1381778705,), (1381778707,), (1381778709,), (1381779419,), (1381779421,), (1381779423,), (1381779495,), (1381779497,), (1381779499,), (1381779501,), (1381779695,), (1381779690,), (1381779691,), (1381779693,), (1381779694,), (1381779941,), (1381779943,), (1381779944,), (1381779945,), (1381779946,), (1381779996,), (1381779997,), (1381779998,), (1381779999,), (1381780000,), (1381780745,), (1381780749,), (1381780753,), (1381781735,), (1381781737,), (1381781739,), (1381781741,), (1381782556,), (1381782559,), (1381782562,), (1381782565,), (1381782568,), (1381782818,), (1381782819,), (1381782820,), (1381782821,), (1381783474,), (1381783477,), (1381783479,), (1381783482,), (1381783995,), (1381784097,), (1381784098,), (1381784099,), (1381784101,), (1381784103,), (1381784513,), (1381784514,), (1381784515,), (1381784517,), (1381784519,), (1381784867,), (1381784868,), (1381784869,), (1381784870,), (1381784871,), (1381784872,), (1381785210,), (1381785212,), (1381785214,), (1381785216,), (1381785218,), (1381785392,), (1381785393,), (1381785394,), (1381785536,), (1381785537,), (1381785538,), (1381785539,), (1381785729,), (1381794014,), (1381794017,), (1381794020,), (1381794616,), (1381794676,), (1381794677,), (1381794678,), (1381794679,), (1381794844,), (1381794846,), (1381794848,), (1381794850,), (1381794852,), (1381794854,), (1381795054,), (1381795056,), (1381795058,), (1381795060,), (1381795455,), (1381795456,), (1381795457,), (1381795458,), (1381795460,), (1381795548,), (1381795549,), (1381795550,), (1381795601,), (1381795602,), (1381795603,), (1381795604,), (1381795605,), (1381795906,), (1381795907,), (1381795908,), (1381795909,), (1381795910,), (1381796281,), (1381796283,), (1381796285,), (1381796287,), (1381796443,), (1381796444,), (1381796445,), (1381796446,), (1381796448,), (1381797036,), (1381797037,), (1381797038,), (1381797373,), (1381797374,), (1381797375,), (1381797376,), (1381797377,), (1381797560,), (1381797562,), (1381797564,), (1381797749,), (1381797750,), (1381797751,), (1381797752,), (1381797753,), (1381797754,), (1381797803,), (1381797799,), (1381797800,), (1381797801,), (1381797802,), (1381797840,), (1381797841,), (1381797842,), (1381797843,), (1381797844,), (1381798045,), (1381798046,), (1381798047,), (1381798248,), (1381798249,), (1381798250,), (1381798331,), (1381798332,), (1381798334,), (1381798335,), (1381798336,), (1381798337,), (1381798635,), (1381798637,), (1381798639,), (1381798848,), (1381798849,), (1381798850,), (1381799090,), (1381799537,), (1381799635,), (1381799636,), (1381799637,), (1381799984,), (1381799985,), (1381799986,), (1381799987,), (1381799988,), (1381799989,), (1381800947,), (1381800949,), (1381801022,), (1381801024,), (1381801027,), (1381801030,), (1381801033,), (1381801694,), (1381785724,), (1381785725,), (1381785726,), (1381785727,), (1381785728,), (1381785867,), (1381785868,), (1381786303,), (1381786305,), (1381786307,), (1381786309,), (1381786311,), (1381786313,), (1381786778,), (1381786781,), (1381786784,), (1381786787,), (1381787722,), (1381787726,), (1381787730,), (1381787734,), (1381789087,), (1381789092,), (1381789097,), (1381789103,), (1381789999,), (1381790002,), (1381790005,), (1381790008,), (1381790011,), (1381790014,), (1381790724,), (1381790727,), (1381790730,), (1381791805,), (1381791807,), (1381792358,), (1381793324,), (1381793326,), (1381793328,), (1381794023,), (1381801686,), (1381801688,), (1381801690,), (1381801692,), (1381802418,), (1381802422,), (1381802426,), (1381803143,), (1381803145,), (1381806126,), (1381806129,), (1381806598,), (1381806601,), (1381806604,), (1381807351,), (1381807353,), (1381807706,), (1381807709,), (1381807713,), (1381807716,), (1381808701,), (1381808704,), (1381808707,), (1381809256,), (1381809259,), (1381809262,), (1381809265,), (1381809268,), (1381809485,), (1381809486,), (1381809487,), (1381809856,), (1381809848,), (1381809850,), (1381809852,), (1381809854,), (1381809938,), (1381809939,), (1381809940,), (1381809941,), (1381810055,), (1381810057,), (1381810059,), (1381810061,), (1381810063,), (1381810065,), (1381810255,), (1381810256,), (1381810257,), (1381810258,), (1381810725,), (1381810727,), (1381810729,), (1381810731,), (1381810733,), (1381810735,), (1381811067,), (1381811069,), (1381811071,), (1381811073,), (1381811846,), (1381811849,), (1381811852,), (1381811854,), (1381811856,), (1381811858,), (1381812311,), (1381812312,), (1381812313,), (1381812314,), (1381812315,), (1381812736,), (1381812738,), (1381812929,), (1381812930,), (1381812931,), (1381812932,), (1381812933,), (1381812977,), (1381812978,), (1381812979,), (1381812980,), (1381813015,), (1381813016,), (1381813066,), (1381813067,), (1381813068,), (1381813069,), (1381813070,), (1381813619,), (1381820906,), (1381820909,), (1381820912,), (1381820915,), (1381821557,), (1381821560,), (1381821563,), (1381822368,), (1381822372,), (1381822376,), (1381823132,), (1381823134,), (1381823136,), (1381823552,), (1381823554,), (1381823556,), (1381823558,), (1381823560,), (1381823721,), (1381823723,), (1381823725,), (1381823727,), (1381823729,), (1381824071,), (1381824072,), (1381824073,), (1381824074,), (1381824075,), (1381824076,), (1381824165,), (1381824166,), (1381824167,), (1381824232,), (1381824233,), (1381824234,), (1381824235,), (1381824284,), (1381824285,), (1381824286,), (1381824287,), (1381824288,), (1381824289,), (1381824383,), (1381824385,), (1381824598,), (1381824599,), (1381824600,), (1381824601,), (1381824602,), (1381824603,), (1381824651,), (1381824652,), (1381824653,), (1381824654,), (1381824655,), (1381824739,), (1381824740,), (1381824741,), (1381824793,), (1381824790,), (1381824791,), (1381824792,), (1381824833,), (1381824834,), (1381824835,), (1381824836,), (1381824922,), (1381824923,), (1381824924,), (1381824925,), (1381824926,), (1381825179,), (1381825180,), (1381825456,), (1381825458,), (1381825460,), (1381825462,), (1381825668,), (1381825669,), (1381825670,), (1381825828,), (1381825829,), (1381825830,), (1381825831,), (1381825866,), (1381825867,), (1381825868,), (1381825907,), (1381825908,), (1381825909,), (1381825910,), (1381825911,), (1381825955,), (1381825956,), (1381825957,), (1381825958,), (1381825959,), (1381826045,), (1381826046,), (1381826047,), (1381826049,), (1381826050,), (1381826051,), (1381826054,), (1381826098,), (1381826099,), (1381826100,), (1381826137,), (1381826138,), (1381826139,), (1381826179,), (1381826180,), (1381826181,), (1381826182,), (1381826260,), (1381826257,), (1381826258,), (1381826259,), (1381826327,), (1381826328,), (1381826329,), (1381826330,), (1381826411,), (1381826412,), (1381826413,), (1381826414,), (1381826415,), (1381826455,), (1381826456,), (1381826457,), (1381826458,), (1381826459,), (1381826508,), (1381826509,), (1381826510,), (1381826859,), (1381826860,), (1381826861,), (1381826862,), (1381826863,), (1381826864,), (1381826949,), (1381826950,), (1381826951,), (1381826952,), (1381826953,), (1381826954,), (1381827032,), (1381827033,), (1381827034,), (1381827281,), (1381827283,), (1381827285,), (1381827287,), (1381827289,), (1381827291,), (1381827485,), (1381827486,), (1381827487,), (1381827488,), (1381827489,), (1381827490,), (1381827541,), (1381827542,), (1381827543,), (1381827544,), (1381827709,), (1381827711,), (1381827713,), (1381827715,), (1381827717,), (1381827719,), (1381827973,), (1381827975,), (1381827977,), (1381827979,), (1381827981,), (1381827983,), (1381828227,), (1381828229,), (1381828231,), (1381828233,), (1381828385,), (1381828386,), (1381828387,), (1381828388,), (1381828389,), (1381828448,), (1381828445,), (1381828446,), (1381828447,), (1381828495,), (1381828496,), (1381828497,), (1381828498,), (1381828499,), (1381828566,), (1381828567,), (1381828568,), (1381828691,), (1381828694,), (1381828696,), (1381828698,), (1381829176,), (1381829178,), (1381829180,), (1381829182,), (1381829491,), (1381829493,), (1381829495,), (1381829497,), (1381829704,), (1381829705,), (1381829707,), (1381829708,), (1381829964,), (1381829965,), (1381829966,), (1381829967,), (1381829969,), (1381830091,), (1381830092,), (1381830093,), (1381830095,), (1381830096,), (1381830097,), (1381830135,), (1381830136,), (1381830137,), (1381830138,), (1381830175,), (1381830176,), (1381830177,), (1381830178,), (1381830212,), (1381830213,), (1381830214,), (1381830215,), (1381830216,), (1381830276,), (1381830277,), (1381830278,), (1381830279,), (1381831197,), (1381831199,), (1381831201,), (1381831203,), (1381831869,), (1381831860,), (1381831862,), (1381831865,), (1381832051,), (1381832053,), (1381832054,), (1381832055,), (1381832056,), (1381832469,), (1381832471,), (1381832474,), (1381832477,), (1381833286,), (1381833289,), (1381833292,), (1381833296,), (1381833300,), (1381833303,), (1381833880,), (1381833883,), (1381833885,), (1381833887,), (1381833889,), (1381833891,), (1381834359,), (1381834362,), (1381834365,), (1381834368,), (1381834371,), (1381834960,), (1381834961,), (1381834962,), (1381834963,), (1381834964,), (1381834965,), (1381835216,), (1381835218,), (1381835220,), (1381835222,), (1381835224,), (1381835530,), (1381835596,), (1381835598,), (1381835600,), (1381835788,), (1381835789,), (1381835790,), (1381835791,), (1381835792,), (1381835957,), (1381835958,), (1381835959,), (1381835960,), (1381835961,), (1381836171,), (1381836172,), (1381836173,), (1381836174,), (1381836441,), (1381836442,), (1381836443,), (1381836444,), (1381836445,), (1381836529,), (1381836530,), (1381836531,), (1381836532,), (1381836533,), (1381836534,), (1381836616,), (1381836617,), (1381836619,), (1381836620,), (1381836621,), (1381836622,), (1381836729,), (1381836726,), (1381836727,), (1381836728,), (1381836819,), (1381836820,), (1381836821,), (1381836822,), (1381836823,), (1381837022,), (1381837067,), (1381837068,), (1381837069,), (1381837070,), (1381837174,), (1381837175,), (1381837176,), (1381837177,), (1381837178,), (1381837297,), (1381837298,), (1381837299,), (1381837300,), (1381837301,), (1381837694,), (1381837695,), (1381837696,), (1381837697,), (1381837698,), (1381837761,), (1381837762,), (1381837763,), (1381837834,), (1381837835,), (1381837836,), (1381837837,), (1381837883,), (1381837884,), (1381837886,), (1381837887,), (1381837888,), (1381837889,), (1381837929,), (1381837930,), (1381837931,), (1381837932,), (1381838078,), (1381838079,), (1381838080,), (1381838081,), (1381838082,), (1381838201,), (1381838202,), (1381838203,), (1381838204,), (1381838205,), (1381838272,), (1381838273,), (1381838274,), (1381838275,), (1381838276,), (1381838277,), (1381838544,), (1381838545,), (1381838546,), (1381838548,), (1381838550,), (1381838552,), (1381838668,), (1381838669,), (1381838671,), (1381838674,), (1381838794,), (1381838790,), (1381838791,), (1381838792,), (1381838793,), (1381838834,), (1381838835,), (1381838836,), (1381838837,), (1381838838,), (1381838880,), (1381838881,), (1381838882,), (1381838917,), (1381838918,), (1381838919,), (1381838920,), (1381838921,), (1381838970,), (1381838971,), (1381838972,), (1381838973,), (1381838974,), (1381839091,), (1381839092,), (1381839093,), (1381839094,), (1381839095,), (1381839096,), (1381839138,), (1381839139,), (1381839140,), (1381839141,), (1381839197,), (1381839198,), (1381839199,), (1381839200,), (1381839201,), (1381839202,), (1381839242,), (1381839243,), (1381839244,), (1381839245,), (1381839315,), (1381839316,), (1381839317,), (1381839318,), (1381839444,), (1381839445,), (1381839446,), (1381839447,), (1381839448,), (1381839449,), (1381839587,), (1381839588,), (1381839589,), (1381839590,), (1381839591,), (1381839630,), (1381839631,), (1381839632,), (1381839633,), (1381839634,), (1381839635,), (1381839684,), (1381839685,), (1381839686,), (1381839687,), (1381839688,), (1381839718,), (1381839728,), (1381839729,), (1381839853,), (1381839849,), (1381839850,), (1381839851,), (1381839852,), (1381839889,), (1381839890,), (1381839891,), (1381839934,), (1381839935,), (1381839936,), (1381839937,), (1381839974,), (1381839975,), (1381839976,), (1381840031,), (1381840032,), (1381840033,), (1381840034,), (1381840035,), (1381840036,), (1381840137,), (1381840138,), (1381840139,), (1381840140,), (1381840182,), (1381840183,), (1381840184,), (1381840185,), (1381840231,), (1381840232,), (1381840233,), (1381840281,), (1381840282,), (1381840283,), (1381840284,), (1381840285,), (1381840319,), (1381840320,), (1381840321,), (1381840322,), (1381840323,), (1381840324,), (1381840364,), (1381840366,), (1381840367,), (1381840447,), (1381840451,), (1381840455,), (1381840459,), (1381840463,), (1381840534,), (1381840535,), (1381840536,), (1381840537,), (1381840538,), (1381840794,), (1381840798,), (1381840801,), (1381840804,), (1381840808,), (1381841710,), (1381841701,), (1381841704,), (1381841707,), (1381842401,), (1381842403,), (1381842405,), (1381842407,), (1381842989,), (1381842991,), (1381842993,), (1381842995,), (1381842997,), (1381843789,), (1381843969,), (1381843972,), (1381844343,), (1381844345,), (1381844347,), (1381844348,), (1381844349,), (1381844611,), (1381844613,), (1381844615,), (1381844617,), (1381844619,), (1381844621,), (1381844780,), (1381844781,), (1381844782,), (1381844841,), (1381844905,), (1381844906,), (1381844907,), (1381844908,), (1381844909,), (1381844910,), (1381845094,), (1381845095,), (1381845096,), (1381845097,), (1381845098,), (1381845150,), (1381845151,), (1381845152,), (1381845153,), (1381845154,), (1381845155,), (1381845198,), (1381845199,), (1381845200,), (1381845201,), (1381845202,), (1381845203,), (1381845209,), (1381845210,), (1381845211,), (1381845212,), (1381845213,), (1381845264,), (1381845265,), (1381845266,), (1381845267,), (1381845268,), (1381845269,), (1381845433,), (1381845434,), (1381845435,), (1381845472,), (1381845473,), (1381845474,), (1381845475,), (1381845476,), (1381845477,), (1381845549,), (1381845546,), (1381845547,), (1381845548,), (1381845825,), (1381845826,), (1381845827,), (1381845828,), (1381845829,), (1381845968,), (1381845969,), (1381845970,), (1381845971,), (1381845972,), (1381845973,), (1381846010,), (1381846012,), (1381846013,), (1381846014,), (1381846015,), (1381846271,), (1381846273,), (1381846275,), (1381846277,), (1381846279,), (1381846284,), (1381846471,), (1381846472,), (1381846473,), (1381846474,), (1381846524,), (1381846525,), (1381846526,), (1381846566,), (1381846567,), (1381846568,), (1381846615,), (1381846616,), (1381846617,), (1381846669,), (1381846670,), (1381846793,), (1381846794,), (1381846795,), (1381846796,), (1381846797,), (1381846798,), (1381846833,), (1381846834,), (1381846835,), (1381846878,), (1381846879,), (1381846880,), (1381846881,), (1381846921,), (1381846922,), (1381846923,), (1381846924,), (1381846925,), (1381846926,), (1381846982,), (1381846983,), (1381846984,), (1381846985,), (1381847103,), (1381847099,), (1381847100,), (1381847101,), (1381847102,), (1381847129,), (1381847148,), (1381847149,), (1381847195,), (1381847196,), (1381847197,), (1381847198,), (1381847199,), (1381847245,), (1381847246,), (1381847247,), (1381847474,), (1381847476,), (1381847478,), (1381847480,), (1381847885,), (1381847887,), (1381847889,), (1381847891,), (1381847893,), (1381848432,), (1381848434,), (1381848436,), (1381848438,), (1381848440,), (1381849968,), (1381855883,), (1381859061,), (1381859239,), (1381859241,), (1381859667,), (1381859695,), (1381859696,), (1381859913,), (1381859914,), (1381859915,), (1381860040,), (1381860132,), (1381860133,), (1381860195,), (1381860229,), (1381860230,), (1381860266,), (1381860267,), (1381860344,), (1381860462,), (1381860589,), (1381872876,), (1381874823,), (1381875630,), (1381876026,), (1381876028,), (1381877253,), (1381878370,), (1381878406,), (1381878999,), (1381879550,), (1381879957,), (1381880122,), (1381881287,), (1381883091,), (1381883089,), (1381883090,), (1381883963,), (1381884056,), (1381884203,), (1381884605,), (1381885423,), (1381885425,), (1381886264,), (1381886266,), (1381886672,), (1381887496,), (1381887500,), (1381888667,), (1381890943,), (1381892151,), (1381892153,), (1381892211,), (1381892501,), (1381892908,), (1381892910,), (1381894424,), (1381896238,), (1381896241,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 10, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26596990]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381896241, 1381896238] map_info['map_portfolio_photo'] : {26596990: [1381896241, 1381896238, 1381894424, 1381892910, 1381892908, 1381892501, 1381892211, 1381892153, 1381892151, 1381890943]} final : True mtd_id 4302 list_pids : [1381896241, 1381896238] Looping around the photos to save general results len do output : 1 /26596990Didn'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, '3672509') ('4302', '26596990', '1381896241', None, None, None, None, None, '3672509') ('4302', None, None, None, None, None, None, None, '3672509') ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509') 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', None, '26596990', 'None', None, None, None, None, '3672509'), ('4302', '26596990', '1381896241', None, None, None, None, None, '3672509'), ('4302', '26596990', '1381896238', None, None, None, None, None, '3672509')] time used for this insertion : 0.012523412704467773 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.20374608039856 time spend to save output : 0.01265406608581543 total time spend for step 5 : 4.216400146484375 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 (3672509) 1.96user 2.50system 0:09.81elapsed 45%CPU (0avgtext+0avgdata 158120maxresident)k 4608inputs+3064outputs (104major+63808minor)pagefaults 0swaps