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 : 1469068 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 (2844685) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2844685) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918939 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2844685'] with mtr_portfolio_ids : ['22918939'] and first list_photo_ids : [] new path : /proc/1469068/ Name: python3 Umask: 0002 State: R (running) Tgid: 1469068 Ngid: 0 Pid: 1469068 PPid: 1469067 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1469068 NSpid: 1469068 NSpgid: 1467178 NSsid: 1467178 VmPeak: 1107224 kB VmSize: 1107224 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99252 kB VmRSS: 99252 kB RssAnon: 60188 kB RssFile: 39064 kB RssShmem: 0 kB VmData: 865972 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 48 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1469068', 'Ngid': '0', 'Pid': '1469068', 'PPid': '1469067', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1469068', 'NSpid': '1469068', 'NSpgid': '1467178', 'NSsid': '1467178', 'VmPeak': '1107224 kB', 'VmSize': '1107224 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99252 kB', 'VmRSS': '99252 kB', 'RssAnon': '60188 kB', 'RssFile': '39064 kB', 'RssShmem': '0 kB', 'VmData': '865972 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '48', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1469068', '1107224', '0', '1107224', '865972', '99252', b'', 'marlene', '2844685') 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 (22918939) 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 (2844685 ) ) 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 (22918939) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357835618, 'portfolio_id': 22918939}, {'photo_id': 1357835219, 'portfolio_id': 22918939}, {'photo_id': 1357835192, 'portfolio_id': 22918939}, {'photo_id': 1357835184, 'portfolio_id': 22918939}, {'photo_id': 1357835144, 'portfolio_id': 22918939}, {'photo_id': 1357835139, 'portfolio_id': 22918939}, {'photo_id': 1357835099, 'portfolio_id': 22918939}, {'photo_id': 1357835055, 'portfolio_id': 22918939}, {'photo_id': 1357833573, 'portfolio_id': 22918939}] map_portfolio_id_photo_id: {22918939: [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573]} ##### 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.015946149826049805 #### 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 Wed May 14 05:51:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22918939) 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 : 22918939 get user id for portfolio 22918939 get sub ptf for main ptf 22918939, type 3726 and hashtags ['flou', 'plastique', 'environnement', 'Carton_gris', 'autre_refus', 'papier', 'cartonnette', 'kraft', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22918939 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','Carton_gris','autre_refus','papier','cartonnette','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','metal')) 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`=22918939 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','Carton_gris','autre_refus','papier','cartonnette','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22918939, 'sub_port_id': 22918940, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297577, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'cartonnette': {'main_port_id': 22918939, 'sub_port_id': 22918941, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297578, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'Carton_brun': {'main_port_id': 22918939, 'sub_port_id': 22918942, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297579, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22918939, 'sub_port_id': 22918943, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297580, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'environnement': {'main_port_id': 22918939, 'sub_port_id': 22918944, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297581, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'Carton_gris': {'main_port_id': 22918939, 'sub_port_id': 22918945, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297582, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'plastique': {'main_port_id': 22918939, 'sub_port_id': 22918946, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297583, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'flou': {'main_port_id': 22918939, 'sub_port_id': 22918947, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297584, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'kraft': {'main_port_id': 22918939, 'sub_port_id': 22918948, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297585, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'metal': {'main_port_id': 22918939, 'sub_port_id': 22918949, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297586, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'mal_croppe': {'main_port_id': 22918939, 'sub_port_id': 22918950, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297587, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}, 'autre_refus': {'main_port_id': 22918939, 'sub_port_id': 22918951, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297588, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22918940 , 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=22918939 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 (22918940) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918941 , 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=22918939 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 (22918941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918942 , 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=22918939 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 (22918942) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918943 , 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=22918939 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 (22918943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918944 , 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=22918939 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 (22918944) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918945 , 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=22918939 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 (22918945) result : ((1357842891,), (1357842892,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918946 , 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=22918939 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 (22918946) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918947 , 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=22918939 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 (22918947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918948 , 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=22918939 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 (22918948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918949 , 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=22918939 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 (22918949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918950 , 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=22918939 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 (22918950) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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 22918951 , 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=22918939 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 (22918951) result : ((1357842888,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22918939) result : ((1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,)) 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`=22918939 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','Carton_gris','autre_refus','papier','cartonnette','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','metal')) 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`=22918939 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','Carton_gris','autre_refus','papier','cartonnette','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22918939, 'sub_port_id': 22918952, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297589, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'cartonnette': {'main_port_id': 22918939, 'sub_port_id': 22918953, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297590, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'Carton_brun': {'main_port_id': 22918939, 'sub_port_id': 22918954, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297591, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22918939, 'sub_port_id': 22918955, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297592, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'environnement': {'main_port_id': 22918939, 'sub_port_id': 22918956, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297593, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'Carton_gris': {'main_port_id': 22918939, 'sub_port_id': 22918957, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297594, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'plastique': {'main_port_id': 22918939, 'sub_port_id': 22918958, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297595, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'flou': {'main_port_id': 22918939, 'sub_port_id': 22918959, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297596, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'kraft': {'main_port_id': 22918939, 'sub_port_id': 22918960, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297597, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'metal': {'main_port_id': 22918939, 'sub_port_id': 22918961, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297598, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'mal_croppe': {'main_port_id': 22918939, 'sub_port_id': 22918962, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297599, 'last_updated_at': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 13, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}, 'autre_refus': {'main_port_id': 22918939, 'sub_port_id': 22918963, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15297600, 'last_updated_at': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 14, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 13, 13, 56, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22918963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22918951 lien utilise dans velours : https://www.fotonower.com/velours/22918952,22918953,22918954,22918955,22918956,22918957,22918958,22918959,22918960,22918961,22918962,22918963?tags=papier,cartonnette,Carton_brun,Teint_Dans_La_Masse,environnement,Carton_gris,plastique,flou,kraft,metal,mal_croppe,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22918939]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] map_info['map_portfolio_photo'] : {22918939: [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573]} final : False mtd_id 4302 list_pids : [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] Looping around the photos to save general results len do output : 1 /22918939. 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, '2844685') ('4302', '22918939', '1357835618', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22918939', "{'papier': 22918940, 'cartonnette': 22918941, 'Carton_brun': 22918942, 'Teint_Dans_La_Masse': 22918943, 'environnement': 22918944, 'Carton_gris': 22918945, 'plastique': 22918946, 'flou': 22918947, 'kraft': 22918948, 'metal': 22918949, 'mal_croppe': 22918950, 'autre_refus': 22918951}", None, None, None, None, '2844685'), ('4302', '22918939', '1357835618', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685')] time used for this insertion : 0.025672197341918945 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5520482063293457 time spend to save output : 0.025976181030273438 total time spend for step 1 : 1.5780243873596191 step2:final Wed May 14 05:52:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22918939) 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 22918939 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357833573,1357835055,1357835099,1357835144,1357835139,1357835192,1357835184,1357835219,1357835618); 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([22918939]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} new output for save of step final : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] map_info['map_portfolio_photo'] : {22918939: [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573]} final : False mtd_id 4302 list_pids : [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] Looping around the photos to save general results len do output : 9 /1357835618.Didn't retrieve data . /1357835219.Didn't retrieve data . /1357835192.Didn't retrieve data . /1357835184.Didn't retrieve data . /1357835144.Didn't retrieve data . /1357835139.Didn't retrieve data . /1357835099.Didn't retrieve data . /1357835055.Didn't retrieve data . /1357833573.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, '2844685') ('4302', '22918939', '1357835618', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22918939', '1357835618', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835219', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835192', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835184', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835144', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835139', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835099', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357835055', '0.02292468775728902', None, None, None, None, '2844685'), ('4302', '22918939', '1357833573', '0.02292468775728902', None, None, None, None, '2844685')] time used for this insertion : 0.018709897994995117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06475114822387695 time spend to save output : 0.01929616928100586 total time spend for step 2 : 0.08404731750488281 step3:velours_tree Wed May 14 05:52:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22918939: [{'papier': 22918940, 'cartonnette': 22918941, 'Carton_brun': 22918942, 'Teint_Dans_La_Masse': 22918943, 'environnement': 22918944, 'Carton_gris': 22918945, 'plastique': 22918946, 'flou': 22918947, 'kraft': 22918948, 'metal': 22918949, 'mal_croppe': 22918950, 'autre_refus': 22918951}]} input_args_next_step : {22918939: ()} output_args : {22918939: [{'papier': 22918940, 'cartonnette': 22918941, 'Carton_brun': 22918942, 'Teint_Dans_La_Masse': 22918943, 'environnement': 22918944, 'Carton_gris': 22918945, 'plastique': 22918946, 'flou': 22918947, 'kraft': 22918948, 'metal': 22918949, 'mal_croppe': 22918950, 'autre_refus': 22918951}]} args : 22918939 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 : ({'papier': 22918940, 'cartonnette': 22918941, 'Carton_brun': 22918942, 'Teint_Dans_La_Masse': 22918943, 'environnement': 22918944, 'Carton_gris': 22918945, 'plastique': 22918946, 'flou': 22918947, 'kraft': 22918948, 'metal': 22918949, 'mal_croppe': 22918950, 'autre_refus': 22918951},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22918939) 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([22918939]) 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.31845617294311523 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.3185083866119385 step4:send_mail_cod Wed May 14 05:52:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} input_args_next_step : {1357835618: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835618 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835219 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835192 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835184 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835144 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835139 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835099 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357835055 depend.output_id : 0 input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ()} output_args : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',)} args : 1357833573 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 : {22918939: [{'papier': 22918940, 'cartonnette': 22918941, 'Carton_brun': 22918942, 'Teint_Dans_La_Masse': 22918943, 'environnement': 22918944, 'Carton_gris': 22918945, 'plastique': 22918946, 'flou': 22918947, 'kraft': 22918948, 'metal': 22918949, 'mal_croppe': 22918950, 'autre_refus': 22918951}]} input_args_next_step : {1357835618: ('0.02292468775728902',), 1357835219: ('0.02292468775728902',), 1357835192: ('0.02292468775728902',), 1357835184: ('0.02292468775728902',), 1357835144: ('0.02292468775728902',), 1357835139: ('0.02292468775728902',), 1357835099: ('0.02292468775728902',), 1357835055: ('0.02292468775728902',), 1357833573: ('0.02292468775728902',), 22918939: ()} output_args : {22918939: [{'papier': 22918940, 'cartonnette': 22918941, 'Carton_brun': 22918942, 'Teint_Dans_La_Masse': 22918943, 'environnement': 22918944, 'Carton_gris': 22918945, 'plastique': 22918946, 'flou': 22918947, 'kraft': 22918948, 'metal': 22918949, 'mal_croppe': 22918950, 'autre_refus': 22918951}]} args : 22918939 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 :10, first value : ('0.02292468775728902',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22918939) 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 (1357835618,1357835219,1357835192,1357835184,1357835144,1357835139,1357835099,1357835055,1357833573) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357833573 begin to download photo : 1357835099 begin to download photo : 1357835144 begin to download photo : 1357835192 begin to download photo : 1357835618 download finish for photo 1357835144 begin to download photo : 1357835184 download finish for photo 1357835099 begin to download photo : 1357835139 download finish for photo 1357835618 download finish for photo 1357833573 begin to download photo : 1357835055 download finish for photo 1357835192 begin to download photo : 1357835219 download finish for photo 1357835184 download finish for photo 1357835139 download finish for photo 1357835219 download finish for photo 1357835055 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette229189411747194721/ imagette229189461747194721/ imagette229189471747194722/ imagette229189481747194722/ imagette229189491747194722/ imagette229189501747194722/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22918939_14-05-2025_05_52_01.pdf 22918941 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=22918941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189411747194721 22918946 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=22918946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189461747194721 22918947 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=22918947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189471747194722 22918948 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=22918948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189481747194722 22918949 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=22918949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189491747194722 22918950 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=22918950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189501747194722 22918951 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=22918951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357842888: '1747139126_177719_1357835184_563aeb3eeba14860fc05918e92221a6e_rle_crop_3795059013_0.png'} change filename to text .imagette229189511747194722/ imagette229189511747194722/1747139126_177719_1357835184_563aeb3eeba14860fc05918e92221a6e_rle_crop_3795059013_0.png.png imagette229189421747194722/ imagette229189431747194722/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/f2fe94e87be260403cb5caccdae691ef_92833716.png imagette229189511747194722 22918942 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=22918942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189421747194722 22918943 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=22918943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229189431747194722 22918945 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=22918945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357842891: '1747139126_177719_1357835184_563aeb3eeba14860fc05918e92221a6e_rle_crop_3795059011_0.png', 1357842892: '1747139126_177719_1357835184_563aeb3eeba14860fc05918e92221a6e_rle_crop_3795059010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/3ba39fa54e3af63869fea2abb3775268_77490251.png change filename to text .imagette229189451747194722/ imagette229189451747194722/1747139126_177719_1357835184_563aeb3eeba14860fc05918e92221a6e_rle_crop_3795059011_0.png.png imagette229189451747194722/1747139126_177719_1357835184_563aeb3eeba14860fc05918e92221a6e_rle_crop_3795059010_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/b444b5e733b2628e0a55a59fb77a8914_56043366.png imagette229189451747194722 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22918939 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22918952,22918953,22918954,22918955,22918956,22918957,22918958,22918959,22918960,22918961,22918962,22918963?tags=papier,cartonnette,Carton_brun,Teint_Dans_La_Masse,environnement,Carton_gris,plastique,flou,kraft,metal,mal_croppe,autre_refus your option no_mail is active, we will not send the real mail to your client args[1357835618] : ('0.02292468775728902',) no score found for photo 1357835618 We are sending mail with results at report@fotonower.com args[1357835219] : ('0.02292468775728902',) no score found for photo 1357835219 We are sending mail with results at report@fotonower.com args[1357835192] : ('0.02292468775728902',) no score found for photo 1357835192 We are sending mail with results at report@fotonower.com args[1357835184] : ('0.02292468775728902',) no score found for photo 1357835184 We are sending mail with results at report@fotonower.com args[1357835144] : ('0.02292468775728902',) no score found for photo 1357835144 We are sending mail with results at report@fotonower.com args[1357835139] : ('0.02292468775728902',) no score found for photo 1357835139 We are sending mail with results at report@fotonower.com args[1357835099] : ('0.02292468775728902',) no score found for photo 1357835099 We are sending mail with results at report@fotonower.com args[1357835055] : ('0.02292468775728902',) no score found for photo 1357835055 We are sending mail with results at report@fotonower.com args[1357833573] : ('0.02292468775728902',) no score found for photo 1357833573 We are sending mail with results at report@fotonower.com refus_total : 0.02292468775728902 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=22918939 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_P22918939_14-05-2025_05_52_01.pdf results_Auto_P22918939_14-05-2025_05_52_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_14-05-2025_05_52_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22918939','results_Auto_P22918939_14-05-2025_05_52_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_14-05-2025_05_52_01.pdf','pdf','','0.09','0.02292468775728902') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22918939]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] map_info['map_portfolio_photo'] : {22918939: [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573]} final : False mtd_id 4302 list_pids : [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] 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, '2844685') ('4302', '22918939', '1357835618', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22918939', '1357835618', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685')] time used for this insertion : 0.019917726516723633 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0781922340393066 time spend to save output : 0.020259380340576172 total time spend for step 4 : 2.098451614379883 step5:split_time_score Wed May 14 05:52:03 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 : ['22918939'] 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 : [('22918939',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22918939) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357835618: {'path': 'temp/1747194721_1469068_1357835618_0edfacf245cdfd6c8b9f9f613e94f2e8.jpg', 'extension': 'jpg'}, 1357835144: {'path': 'temp/1747194721_1469068_1357835144_a9cc36284c86bc905f391a7b1f611a57.jpg', 'extension': 'jpg'}, 1357835184: {'path': 'temp/1747194721_1469068_1357835184_563aeb3eeba14860fc05918e92221a6e.jpg', 'extension': 'jpg'}, 1357835099: {'path': 'temp/1747194721_1469068_1357835099_6f1e7117ea179d4951f6fdebbc44f33b.jpg', 'extension': 'jpg'}, 1357835139: {'path': 'temp/1747194721_1469068_1357835139_66c11c4c4ca42ec89a9027ead7220188.jpg', 'extension': 'jpg'}, 1357835192: {'path': 'temp/1747194721_1469068_1357835192_2971c05fdd891e555306931cc708605b.jpg', 'extension': 'jpg'}, 1357835219: {'path': 'temp/1747194721_1469068_1357835219_755037c17bfe2ccecf2b30928fda1b2f.jpg', 'extension': 'jpg'}, 1357833573: {'path': 'temp/1747194721_1469068_1357833573_01f473ec862fb90153264bbb6d92f10e.jpg', 'extension': 'jpg'}, 1357835055: {'path': 'temp/1747194721_1469068_1357835055_63141a85307afc8115b7f12cdf004ccb.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 = 22918939; (('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 = 22918939 group by h (('13', 9),) 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=22918939 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 (22918939) 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 (22918939) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13052025 22918939 Nombre de photos uploadées : 9 / 23040 (0%) 13052025 22918939 Nombre de photos taguées (types de déchets): 0 / 9 (0%) 13052025 22918939 Nombre de photos taguées (volume) : 0 / 9 (0%) [{'photo_id': 1357833573, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/01f473ec862fb90153264bbb6d92f10e.jpg', 'username': None, 'uploaded_at': 1747136883, 'text': 'image_13052025_13_47_54_10134.jpg'}, {'photo_id': 1357835055, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/63141a85307afc8115b7f12cdf004ccb.jpg', 'username': None, 'uploaded_at': 1747137367, 'text': 'image_13052025_13_54_34_10139.jpg'}, {'photo_id': 1357835099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/6f1e7117ea179d4951f6fdebbc44f33b.jpg', 'username': None, 'uploaded_at': 1747137427, 'text': 'image_13052025_13_55_44_10138.jpg'}, {'photo_id': 1357835144, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/a9cc36284c86bc905f391a7b1f611a57.jpg', 'username': None, 'uploaded_at': 1747137487, 'text': 'image_13052025_13_56_14_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005409717559814453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22918939, '2025-05-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1799954,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026411056518554688 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= 1799954 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22899562, 'dashboard_result_id': 10541709, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899562_14-05-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899576, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22900104, 'dashboard_result_id': 10541710, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900104_14-05-2025_05_34_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900122, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22900286, 'dashboard_result_id': 10541711, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900286_14-05-2025_05_35_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22900312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900323, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22900644, 'dashboard_result_id': 10541712, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900644_14-05-2025_05_36_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900656, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22901957, 'dashboard_result_id': 10541713, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22901957_14-05-2025_05_36_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22901965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22901966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22901967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22901968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22901969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22901970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22901971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22901972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22901973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22901974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22901975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22901976, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22902217, 'dashboard_result_id': 10541714, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902217_14-05-2025_05_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22902227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902233, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22902591, 'dashboard_result_id': 10541715, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902591_14-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22902592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902603, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22903139, 'dashboard_result_id': 10541716, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903139_14-05-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903164, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22903622, 'dashboard_result_id': 10541717, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903622_14-05-2025_05_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903635, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22904132, 'dashboard_result_id': 10541718, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904132_14-05-2025_05_39_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904183, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22904418, 'dashboard_result_id': 10541719, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904418_14-05-2025_05_40_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904476, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22904914, 'dashboard_result_id': 10541720, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904914_14-05-2025_05_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904926, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22905334, 'dashboard_result_id': 10541721, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905334_14-05-2025_05_41_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22905349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22905356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905360, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22905715, 'dashboard_result_id': 10541722, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905715_14-05-2025_05_42_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22905716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22905724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905727, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22906057, 'dashboard_result_id': 10541723, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22906057_14-05-2025_05_42_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22906098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22906099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22906100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22906101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22906102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22906103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22906104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22906105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22906106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22906107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22906108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22906109, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22907468, 'dashboard_result_id': 10541724, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907468_14-05-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907480, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22907619, 'dashboard_result_id': 10541725, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907619_14-05-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907638, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22907915, 'dashboard_result_id': 10541726, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907915_14-05-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907942, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22908211, 'dashboard_result_id': 10541727, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908211_14-05-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908223, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22908544, 'dashboard_result_id': 10541728, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908544_14-05-2025_05_45_44.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22908551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908562, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22908961, 'dashboard_result_id': 10541729, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908961_14-05-2025_05_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908980, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22909154, 'dashboard_result_id': 10541730, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909154_14-05-2025_05_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909169, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22909538, 'dashboard_result_id': 10541731, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909538_14-05-2025_05_47_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909551, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22909923, 'dashboard_result_id': 10541732, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909923_14-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22909937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909948, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22910220, 'dashboard_result_id': 10541733, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910247, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22910646, 'dashboard_result_id': 10541734, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910646_14-05-2025_05_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22910666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910677, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22910854, 'dashboard_result_id': 10541735, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910854_14-05-2025_05_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910867, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910877, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22911248, 'dashboard_result_id': 10541736, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911248_14-05-2025_05_50_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911279, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22911742, 'dashboard_result_id': 10541737, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911742_14-05-2025_05_50_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911773, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22912158, 'dashboard_result_id': 10541738, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22912158_14-05-2025_05_50_43.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22912215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22912216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22912217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22912218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22912219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22912220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22912221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22912222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22912223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22912224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22912225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22912226, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22913169, 'dashboard_result_id': 10541739, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22913169_14-05-2025_05_51_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22913196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22913197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22913198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22913199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22913200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22913201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22913202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22913203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22913204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22913205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22913206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22913207, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22918939, 'dashboard_result_id': 10541740, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_13-05-2025_14_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22918940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22918941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22918942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22918943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22918944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22918945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22918946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22918947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22918948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22918949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22918950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22918951, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22919106, 'dashboard_result_id': 10541741, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919106_13-05-2025_14_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919119, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22919523, 'dashboard_result_id': 10541742, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919523_13-05-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919583, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22920074, 'dashboard_result_id': 10541743, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920074_13-05-2025_14_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920099, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22920719, 'dashboard_result_id': 10541744, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920719_13-05-2025_15_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920749, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22921327, 'dashboard_result_id': 10541745, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921327_13-05-2025_15_17_27.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921362, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22921743, 'dashboard_result_id': 10541746, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921743_13-05-2025_15_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921779, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22922370, 'dashboard_result_id': 10541747, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922370_13-05-2025_15_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22922426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922432, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22922836, 'dashboard_result_id': 10541748, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922836_13-05-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22922875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922886, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22923246, 'dashboard_result_id': 10541749, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923246_13-05-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22923278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923282, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22923787, 'dashboard_result_id': 10541750, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923787_13-05-2025_16_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22923802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923813, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22924281, 'dashboard_result_id': 10541751, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924281_13-05-2025_16_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924355, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22924635, 'dashboard_result_id': 10541752, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924635_13-05-2025_17_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924649, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22924927, 'dashboard_result_id': 10541753, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924927_13-05-2025_17_20_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925061, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22925564, 'dashboard_result_id': 10541754, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22925564_13-05-2025_17_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925619, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22926788, 'dashboard_result_id': 10541755, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22926788_13-05-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22926793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22926794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22926795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22926796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22926797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22926798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22926799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22926800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22926801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22926802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22926803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22926804, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22927199, 'dashboard_result_id': 10541756, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927199_13-05-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22927213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927224, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22927484, 'dashboard_result_id': 10541757, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927484_13-05-2025_18_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22927500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927510, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22928019, 'dashboard_result_id': 10541758, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928019_13-05-2025_19_11_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928057, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22928848, 'dashboard_result_id': 10541759, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928848_13-05-2025_19_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928979, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22929426, 'dashboard_result_id': 10541760, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22929426_13-05-2025_19_47_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22929445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22929446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22929447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22929448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22929449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22929450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22929451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22929452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22929453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22929454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22929455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22929456, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22930305, 'dashboard_result_id': 10541761, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22930305_13-05-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22930311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22930312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22930313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22930314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22930315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22930316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22930317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22930318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22930319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22930320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22930321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22930322, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22931273, 'dashboard_result_id': 10541762, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931273_13-05-2025_20_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22931298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22931300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931309, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22931913, 'dashboard_result_id': 10541763, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931913_13-05-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22931964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22931966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931975, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22932946, 'dashboard_result_id': 10541764, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22932946_13-05-2025_21_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22933022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22933023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22933024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22933025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22933026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22933027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22933028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22933029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22933031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22933032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22933033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22933034, 'pht': 3726}}"}, {'dashboat_entry_day': 1799954, 'dashboard_run_id': 1811684, 'mtr_portfolio_id': 22934532, 'dashboard_result_id': 10541765, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22934532_13-05-2025_21_18_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22934571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22934572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22934573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22934574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22934575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22934576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22934577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22934578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22934579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22934580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22934581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22934582, '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 = 22899562 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844654, 'mtr_portfolio_id': 22899562, 'created_at': datetime.datetime(2025, 5, 14, 5, 34, 28), 'result': '0.04106883006785619', 'result_long': None, 'result_double': None}] Qualite : 0.04106883006785619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22899562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899562_14-05-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22899562 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899562_14-05-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899576, 'pht': 3726}}" where mtr_portfolio_id = 22899562 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22899562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541709, 0.04106883006785619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899562_14-05-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899576, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22900104 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844655, 'mtr_portfolio_id': 22900104, 'created_at': datetime.datetime(2025, 5, 14, 5, 34, 33), 'result': '0.03937042182963135', 'result_long': None, 'result_double': None}] Qualite : 0.03937042182963135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22900104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900104_14-05-2025_05_34_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22900104 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900104_14-05-2025_05_34_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900122, 'pht': 3726}}" where mtr_portfolio_id = 22900104 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22900104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541710, 0.03937042182963135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900104_14-05-2025_05_34_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900121, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900122, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22900286 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844656, 'mtr_portfolio_id': 22900286, 'created_at': datetime.datetime(2025, 5, 14, 5, 35, 32), 'result': '0.036326921830582705', 'result_long': None, 'result_double': None}] Qualite : 0.036326921830582705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22900286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900286_14-05-2025_05_35_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22900286 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900286_14-05-2025_05_35_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22900312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900323, 'pht': 3726}}" where mtr_portfolio_id = 22900286 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22900286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541711, 0.036326921830582705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900286_14-05-2025_05_35_44.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22900312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900323, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22900644 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844657, 'mtr_portfolio_id': 22900644, 'created_at': datetime.datetime(2025, 5, 14, 5, 35, 59), 'result': '0.04967171572715601', 'result_long': None, 'result_double': None}] Qualite : 0.04967171572715601 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22900644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900644_14-05-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22900644 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900644_14-05-2025_05_36_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900656, 'pht': 3726}}" where mtr_portfolio_id = 22900644 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22900644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541712, 0.04967171572715601, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22900644_14-05-2025_05_36_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22900645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22900646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22900647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22900648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22900649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22900650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22900651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22900652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22900653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22900654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22900655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22900656, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22901957 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844658, 'mtr_portfolio_id': 22901957, 'created_at': datetime.datetime(2025, 5, 14, 5, 36, 30), 'result': '0.05946221633144105', 'result_long': None, 'result_double': None}] Qualite : 0.05946221633144105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22901957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22901957_14-05-2025_05_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22901957 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22901957_14-05-2025_05_36_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22901965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22901966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22901967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22901968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22901969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22901970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22901971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22901972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22901973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22901974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22901975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22901976, 'pht': 3726}}" where mtr_portfolio_id = 22901957 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22901957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541713, 0.05946221633144105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22901957_14-05-2025_05_36_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22901965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22901966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22901967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22901968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22901969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22901970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22901971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22901972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22901973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22901974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22901975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22901976, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22902217 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844659, 'mtr_portfolio_id': 22902217, 'created_at': datetime.datetime(2025, 5, 14, 5, 36, 57), 'result': '0.0194297586093065', 'result_long': None, 'result_double': None}] Qualite : 0.0194297586093065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22902217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902217_14-05-2025_05_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22902217 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902217_14-05-2025_05_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22902227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902233, 'pht': 3726}}" where mtr_portfolio_id = 22902217 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22902217 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541714, 0.0194297586093065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902217_14-05-2025_05_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22902227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902233, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22902591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844660, 'mtr_portfolio_id': 22902591, 'created_at': datetime.datetime(2025, 5, 14, 5, 37, 31), 'result': '0.05081724338502262', 'result_long': None, 'result_double': None}] Qualite : 0.05081724338502262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22902591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902591_14-05-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22902591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902591_14-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22902592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902603, 'pht': 3726}}" where mtr_portfolio_id = 22902591 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22902591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541715, 0.05081724338502262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22902591_14-05-2025_05_37_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22902592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22902593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22902594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22902595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22902596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22902597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22902598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22902599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22902600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22902601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22902602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22902603, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22903139 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844661, 'mtr_portfolio_id': 22903139, 'created_at': datetime.datetime(2025, 5, 14, 5, 37, 58), 'result': '0.07933848652220292', 'result_long': None, 'result_double': None}] Qualite : 0.07933848652220292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22903139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903139_14-05-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22903139 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903139_14-05-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903164, 'pht': 3726}}" where mtr_portfolio_id = 22903139 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22903139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541716, 0.07933848652220292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903139_14-05-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903164, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22903622 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844662, 'mtr_portfolio_id': 22903622, 'created_at': datetime.datetime(2025, 5, 14, 5, 39), 'result': '0.046814487136736235', 'result_long': None, 'result_double': None}] Qualite : 0.046814487136736235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22903622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903622_14-05-2025_05_39_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22903622 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903622_14-05-2025_05_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903635, 'pht': 3726}}" where mtr_portfolio_id = 22903622 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22903622 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541717, 0.046814487136736235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22903622_14-05-2025_05_39_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22903624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22903625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22903626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22903627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22903628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22903629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22903630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22903631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22903632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22903633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22903634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22903635, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22904132 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844663, 'mtr_portfolio_id': 22904132, 'created_at': datetime.datetime(2025, 5, 14, 5, 39, 31), 'result': '0.04456606341402101', 'result_long': None, 'result_double': None}] Qualite : 0.04456606341402101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22904132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904132_14-05-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22904132 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904132_14-05-2025_05_39_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904183, 'pht': 3726}}" where mtr_portfolio_id = 22904132 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22904132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541718, 0.04456606341402101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904132_14-05-2025_05_39_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904183, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22904418 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844664, 'mtr_portfolio_id': 22904418, 'created_at': datetime.datetime(2025, 5, 14, 5, 40, 2), 'result': '0.062948743904017', 'result_long': None, 'result_double': None}] Qualite : 0.062948743904017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22904418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904418_14-05-2025_05_40_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22904418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904418_14-05-2025_05_40_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904476, 'pht': 3726}}" where mtr_portfolio_id = 22904418 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22904418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541719, 0.062948743904017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904418_14-05-2025_05_40_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904476, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22904914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844665, 'mtr_portfolio_id': 22904914, 'created_at': datetime.datetime(2025, 5, 14, 5, 40, 58), 'result': '0.049181531733973105', 'result_long': None, 'result_double': None}] Qualite : 0.049181531733973105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22904914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904914_14-05-2025_05_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22904914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904914_14-05-2025_05_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904926, 'pht': 3726}}" where mtr_portfolio_id = 22904914 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22904914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541720, 0.049181531733973105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22904914_14-05-2025_05_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22904915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22904916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22904917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22904918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22904919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22904920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22904921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22904922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22904923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22904924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22904925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22904926, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22905334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844666, 'mtr_portfolio_id': 22905334, 'created_at': datetime.datetime(2025, 5, 14, 5, 41, 32), 'result': '0.04810133892420996', 'result_long': None, 'result_double': None}] Qualite : 0.04810133892420996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22905334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905334_14-05-2025_05_41_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22905334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905334_14-05-2025_05_41_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22905349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22905356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905360, 'pht': 3726}}" where mtr_portfolio_id = 22905334 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22905334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541721, 0.04810133892420996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905334_14-05-2025_05_41_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22905349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22905356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905360, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22905715 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844667, 'mtr_portfolio_id': 22905715, 'created_at': datetime.datetime(2025, 5, 14, 5, 41, 59), 'result': '0.04346570671290592', 'result_long': None, 'result_double': None}] Qualite : 0.04346570671290592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22905715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905715_14-05-2025_05_42_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22905715 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905715_14-05-2025_05_42_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22905716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22905724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905727, 'pht': 3726}}" where mtr_portfolio_id = 22905715 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22905715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541722, 0.04346570671290592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22905715_14-05-2025_05_42_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22905716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22905717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22905718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22905719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22905720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22905721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22905722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22905723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22905724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22905725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22905726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22905727, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22906057 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844668, 'mtr_portfolio_id': 22906057, 'created_at': datetime.datetime(2025, 5, 14, 5, 42, 27), 'result': '0.042477822230897196', 'result_long': None, 'result_double': None}] Qualite : 0.042477822230897196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22906057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22906057_14-05-2025_05_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22906057 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22906057_14-05-2025_05_42_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22906098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22906099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22906100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22906101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22906102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22906103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22906104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22906105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22906106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22906107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22906108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22906109, 'pht': 3726}}" where mtr_portfolio_id = 22906057 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22906057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541723, 0.042477822230897196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22906057_14-05-2025_05_42_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22906098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22906099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22906100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22906101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22906102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22906103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22906104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22906105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22906106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22906107, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22906108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22906109, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22907468 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844669, 'mtr_portfolio_id': 22907468, 'created_at': datetime.datetime(2025, 5, 14, 5, 43, 29), 'result': '0.04623084546508824', 'result_long': None, 'result_double': None}] Qualite : 0.04623084546508824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22907468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907468_14-05-2025_05_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22907468 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907468_14-05-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907480, 'pht': 3726}}" where mtr_portfolio_id = 22907468 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22907468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541724, 0.04623084546508824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907468_14-05-2025_05_43_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907480, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22907619 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844670, 'mtr_portfolio_id': 22907619, 'created_at': datetime.datetime(2025, 5, 14, 5, 44), 'result': '0.036366873924237965', 'result_long': None, 'result_double': None}] Qualite : 0.036366873924237965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22907619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907619_14-05-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22907619 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907619_14-05-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907638, 'pht': 3726}}" where mtr_portfolio_id = 22907619 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22907619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541725, 0.036366873924237965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907619_14-05-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907637, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907638, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22907915 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844671, 'mtr_portfolio_id': 22907915, 'created_at': datetime.datetime(2025, 5, 14, 5, 44, 30), 'result': '0.03743170238871679', 'result_long': None, 'result_double': None}] Qualite : 0.03743170238871679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22907915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907915_14-05-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22907915 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907915_14-05-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907942, 'pht': 3726}}" where mtr_portfolio_id = 22907915 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22907915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541726, 0.03743170238871679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22907915_14-05-2025_05_44_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22907931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22907932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22907933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22907934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22907935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22907937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22907938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22907940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22907941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22907942, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22908211 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844672, 'mtr_portfolio_id': 22908211, 'created_at': datetime.datetime(2025, 5, 14, 5, 45, 29), 'result': '0.04931756889555769', 'result_long': None, 'result_double': None}] Qualite : 0.04931756889555769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22908211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908211_14-05-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22908211 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908211_14-05-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908223, 'pht': 3726}}" where mtr_portfolio_id = 22908211 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22908211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541727, 0.04931756889555769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908211_14-05-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908223, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22908544 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844673, 'mtr_portfolio_id': 22908544, 'created_at': datetime.datetime(2025, 5, 14, 5, 45, 41), 'result': '0.04717335506263136', 'result_long': None, 'result_double': None}] Qualite : 0.04717335506263136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22908544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908544_14-05-2025_05_45_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22908544 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908544_14-05-2025_05_45_44.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22908551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908562, 'pht': 3726}}" where mtr_portfolio_id = 22908544 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22908544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541728, 0.04717335506263136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908544_14-05-2025_05_45_44.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22908551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908562, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22908961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844674, 'mtr_portfolio_id': 22908961, 'created_at': datetime.datetime(2025, 5, 14, 5, 45, 59), 'result': '0.04932665721306211', 'result_long': None, 'result_double': None}] Qualite : 0.04932665721306211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22908961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908961_14-05-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22908961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908961_14-05-2025_05_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908980, 'pht': 3726}}" where mtr_portfolio_id = 22908961 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22908961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541729, 0.04932665721306211, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22908961_14-05-2025_05_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22908969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22908970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22908971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22908972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22908973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22908974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22908975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22908976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22908977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22908978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22908979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22908980, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22909154 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844675, 'mtr_portfolio_id': 22909154, 'created_at': datetime.datetime(2025, 5, 14, 5, 46, 58), 'result': '0.03702318690834992', 'result_long': None, 'result_double': None}] Qualite : 0.03702318690834992 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22909154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909154_14-05-2025_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22909154 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909154_14-05-2025_05_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909169, 'pht': 3726}}" where mtr_portfolio_id = 22909154 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22909154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541730, 0.03702318690834992, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909154_14-05-2025_05_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909169, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22909538 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844676, 'mtr_portfolio_id': 22909538, 'created_at': datetime.datetime(2025, 5, 14, 5, 47, 30), 'result': '0.03239195419738454', 'result_long': None, 'result_double': None}] Qualite : 0.03239195419738454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22909538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909538_14-05-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22909538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909538_14-05-2025_05_47_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909551, 'pht': 3726}}" where mtr_portfolio_id = 22909538 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22909538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541731, 0.03239195419738454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909538_14-05-2025_05_47_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22909547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909551, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22909923 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844677, 'mtr_portfolio_id': 22909923, 'created_at': datetime.datetime(2025, 5, 14, 5, 47, 58), 'result': '0.036541115583184944', 'result_long': None, 'result_double': None}] Qualite : 0.036541115583184944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22909923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909923_14-05-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22909923 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909923_14-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22909937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909948, 'pht': 3726}}" where mtr_portfolio_id = 22909923 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22909923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541732, 0.036541115583184944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22909923_14-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22909937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22909938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22909939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22909940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22909941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22909942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22909943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22909944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22909945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22909946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22909947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22909948, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22910220 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844678, 'mtr_portfolio_id': 22910220, 'created_at': datetime.datetime(2025, 5, 14, 5, 48, 30), 'result': '0.08646769950050912', 'result_long': None, 'result_double': None}] Qualite : 0.08646769950050912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22910220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22910220 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910247, 'pht': 3726}}" where mtr_portfolio_id = 22910220 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22910220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541733, 0.08646769950050912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910220_14-05-2025_05_48_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910247, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22910646 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844679, 'mtr_portfolio_id': 22910646, 'created_at': datetime.datetime(2025, 5, 14, 5, 48, 58), 'result': '0.004514655708405667', 'result_long': None, 'result_double': None}] Qualite : 0.004514655708405667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22910646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910646_14-05-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22910646 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910646_14-05-2025_05_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22910666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910677, 'pht': 3726}}" where mtr_portfolio_id = 22910646 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22910646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541734, 0.004514655708405667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910646_14-05-2025_05_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22910666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910677, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22910854 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844680, 'mtr_portfolio_id': 22910854, 'created_at': datetime.datetime(2025, 5, 14, 5, 49, 27), 'result': '0.1427669261550391', 'result_long': None, 'result_double': None}] Qualite : 0.1427669261550391 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22910854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910854_14-05-2025_05_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22910854 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910854_14-05-2025_05_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910867, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910877, 'pht': 3726}}" where mtr_portfolio_id = 22910854 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22910854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541735, 0.1427669261550391, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22910854_14-05-2025_05_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22910866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22910867, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22910868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22910869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22910870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22910871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22910872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22910873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22910874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22910875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22910876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22910877, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22911248 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844681, 'mtr_portfolio_id': 22911248, 'created_at': datetime.datetime(2025, 5, 14, 5, 49, 59), 'result': '0.05363221068250745', 'result_long': None, 'result_double': None}] Qualite : 0.05363221068250745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22911248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911248_14-05-2025_05_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22911248 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911248_14-05-2025_05_50_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911279, 'pht': 3726}}" where mtr_portfolio_id = 22911248 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22911248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541736, 0.05363221068250745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911248_14-05-2025_05_50_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911279, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22911742 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844682, 'mtr_portfolio_id': 22911742, 'created_at': datetime.datetime(2025, 5, 14, 5, 50, 29), 'result': '0.026141413800474786', 'result_long': None, 'result_double': None}] Qualite : 0.026141413800474786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22911742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911742_14-05-2025_05_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22911742 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911742_14-05-2025_05_50_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911773, 'pht': 3726}}" where mtr_portfolio_id = 22911742 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22911742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541737, 0.026141413800474786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22911742_14-05-2025_05_50_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22911762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22911763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22911764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22911765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22911766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22911767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22911768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22911769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22911770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22911771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22911772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22911773, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22912158 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844683, 'mtr_portfolio_id': 22912158, 'created_at': datetime.datetime(2025, 5, 14, 5, 50, 40), 'result': '0.04454957503413968', 'result_long': None, 'result_double': None}] Qualite : 0.04454957503413968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22912158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22912158_14-05-2025_05_50_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22912158 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22912158_14-05-2025_05_50_43.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22912215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22912216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22912217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22912218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22912219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22912220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22912221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22912222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22912223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22912224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22912225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22912226, 'pht': 3726}}" where mtr_portfolio_id = 22912158 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22912158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541738, 0.04454957503413968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22912158_14-05-2025_05_50_43.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22912215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22912216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22912217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22912218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22912219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22912220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22912221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22912222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22912223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22912224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22912225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22912226, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22913169 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844684, 'mtr_portfolio_id': 22913169, 'created_at': datetime.datetime(2025, 5, 14, 5, 51, 30), 'result': '0.0588801791945827', 'result_long': None, 'result_double': None}] Qualite : 0.0588801791945827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22913169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22913169_14-05-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22913169 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22913169_14-05-2025_05_51_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22913196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22913197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22913198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22913199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22913200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22913201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22913202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22913203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22913204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22913205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22913206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22913207, 'pht': 3726}}" where mtr_portfolio_id = 22913169 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22913169 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541739, 0.0588801791945827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22913169_14-05-2025_05_51_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22913196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22913197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22913198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22913199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22913200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22913201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22913202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22913203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22913204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22913205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22913206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22913207, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22918939 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2844685, 'mtr_portfolio_id': 22918939, 'created_at': datetime.datetime(2025, 5, 14, 5, 52, 1), 'result': '0.02292468775728902', 'result_long': None, 'result_double': None}] Qualite : 0.02292468775728902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22918939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_14-05-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22918939 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_14-05-2025_05_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22918940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22918941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22918942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22918943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22918944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22918945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22918946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22918947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22918948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22918949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22918950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22918951, 'pht': 3726}}" where mtr_portfolio_id = 22918939 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22918939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541740, 0.02292468775728902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22918939_14-05-2025_05_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22918940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22918941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22918942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22918943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22918944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22918945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22918946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22918947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22918948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22918949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22918950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22918951, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22919106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2838589, 'mtr_portfolio_id': 22919106, 'created_at': datetime.datetime(2025, 5, 13, 14, 18, 58), 'result': '0.058039026056175454', 'result_long': None, 'result_double': None}] Qualite : 0.058039026056175454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22919106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919106_13-05-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22919106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919106_13-05-2025_14_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919119, 'pht': 3726}}" where mtr_portfolio_id = 22919106 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22919106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541741, 0.058039026056175454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919106_13-05-2025_14_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919119, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22919523 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2838645, 'mtr_portfolio_id': 22919523, 'created_at': datetime.datetime(2025, 5, 13, 14, 32, 59), 'result': '0.05050350997303986', 'result_long': None, 'result_double': None}] Qualite : 0.05050350997303986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22919523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919523_13-05-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22919523 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919523_13-05-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919583, 'pht': 3726}}" where mtr_portfolio_id = 22919523 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22919523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541742, 0.05050350997303986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22919523_13-05-2025_14_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22919572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22919573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22919574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22919575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22919576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22919577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22919578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22919579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22919580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22919581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22919582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22919583, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920074 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 = 22920074 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 = 22920074 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920074 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 = 22920074 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 = 22920074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920074_13-05-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22920074 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920074_13-05-2025_14_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920099, 'pht': 3726}}" where mtr_portfolio_id = 22920074 and dashboard_run_id = 1811684 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920719 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 = 22920719 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 = 22920719 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22920719 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 = 22920719 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 = 22920719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920719_13-05-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22920719 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22920719_13-05-2025_15_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22920738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22920739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22920740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22920741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22920742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22920743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22920744, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22920745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22920746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22920747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22920748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22920749, 'pht': 3726}}" where mtr_portfolio_id = 22920719 and dashboard_run_id = 1811684 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22921327 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2839215, 'mtr_portfolio_id': 22921327, 'created_at': datetime.datetime(2025, 5, 13, 15, 17, 26), 'result': '0.019284808892162043', 'result_long': None, 'result_double': None}] Qualite : 0.019284808892162043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22921327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921327_13-05-2025_15_17_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22921327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921327_13-05-2025_15_17_27.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921362, 'pht': 3726}}" where mtr_portfolio_id = 22921327 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22921327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541745, 0.019284808892162043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921327_13-05-2025_15_17_27.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921362, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22921743 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 = 22921743 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 = 22921743 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22921743 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 = 22921743 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 = 22921743 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921743_13-05-2025_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22921743 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22921743_13-05-2025_15_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22921768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22921769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22921770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22921771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22921772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22921773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22921774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22921775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22921776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22921777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22921778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22921779, 'pht': 3726}}" where mtr_portfolio_id = 22921743 and dashboard_run_id = 1811684 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22922370 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2839689, 'mtr_portfolio_id': 22922370, 'created_at': datetime.datetime(2025, 5, 13, 15, 48, 58), 'result': '0.025673818131907864', 'result_long': None, 'result_double': None}] Qualite : 0.025673818131907864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22922370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922370_13-05-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22922370 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922370_13-05-2025_15_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22922426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922432, 'pht': 3726}}" where mtr_portfolio_id = 22922370 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22922370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541747, 0.025673818131907864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922370_13-05-2025_15_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22922426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922432, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22922836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2840053, 'mtr_portfolio_id': 22922836, 'created_at': datetime.datetime(2025, 5, 13, 16, 2, 59), 'result': '0.031312042728025104', 'result_long': None, 'result_double': None}] Qualite : 0.031312042728025104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22922836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922836_13-05-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22922836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922836_13-05-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22922875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922886, 'pht': 3726}}" where mtr_portfolio_id = 22922836 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22922836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541748, 0.031312042728025104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22922836_13-05-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22922875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22922876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22922877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22922878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22922879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22922880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22922881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22922882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22922883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22922884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22922885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22922886, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22923246 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2840293, 'mtr_portfolio_id': 22923246, 'created_at': datetime.datetime(2025, 5, 13, 16, 18, 58), 'result': '0.05972513184063177', 'result_long': None, 'result_double': None}] Qualite : 0.05972513184063177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22923246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923246_13-05-2025_16_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22923246 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923246_13-05-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22923278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923282, 'pht': 3726}}" where mtr_portfolio_id = 22923246 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22923246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541749, 0.05972513184063177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923246_13-05-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22923278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923282, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22923787 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2840548, 'mtr_portfolio_id': 22923787, 'created_at': datetime.datetime(2025, 5, 13, 16, 32, 57), 'result': '0.00529953158425376', 'result_long': None, 'result_double': None}] Qualite : 0.00529953158425376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22923787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923787_13-05-2025_16_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22923787 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923787_13-05-2025_16_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22923802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923813, 'pht': 3726}}" where mtr_portfolio_id = 22923787 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22923787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541750, 0.00529953158425376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22923787_13-05-2025_16_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22923802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22923803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22923804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22923805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22923806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22923807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22923808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22923809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22923810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22923811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22923812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22923813, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22924281 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2840807, 'mtr_portfolio_id': 22924281, 'created_at': datetime.datetime(2025, 5, 13, 16, 47, 1), 'result': '0.06974966007499285', 'result_long': None, 'result_double': None}] Qualite : 0.06974966007499285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22924281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924281_13-05-2025_16_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22924281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924281_13-05-2025_16_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924355, 'pht': 3726}}" where mtr_portfolio_id = 22924281 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22924281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541751, 0.06974966007499285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924281_13-05-2025_16_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924355, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22924635 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2840930, 'mtr_portfolio_id': 22924635, 'created_at': datetime.datetime(2025, 5, 13, 17, 2, 56), 'result': '0.042979940516125754', 'result_long': None, 'result_double': None}] Qualite : 0.042979940516125754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22924635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924635_13-05-2025_17_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22924635 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924635_13-05-2025_17_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924649, 'pht': 3726}}" where mtr_portfolio_id = 22924635 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22924635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541752, 0.042979940516125754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924635_13-05-2025_17_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22924638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22924639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22924640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22924641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22924642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22924643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22924644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22924645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22924646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22924647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22924648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22924649, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22924927 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2841057, 'mtr_portfolio_id': 22924927, 'created_at': datetime.datetime(2025, 5, 13, 17, 20, 57), 'result': '0.05934884020696027', 'result_long': None, 'result_double': None}] Qualite : 0.05934884020696027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22924927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924927_13-05-2025_17_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22924927 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924927_13-05-2025_17_20_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925061, 'pht': 3726}}" where mtr_portfolio_id = 22924927 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22924927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541753, 0.05934884020696027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22924927_13-05-2025_17_20_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925061, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22925564 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2841288, 'mtr_portfolio_id': 22925564, 'created_at': datetime.datetime(2025, 5, 13, 17, 34, 58), 'result': '0.04344426772568292', 'result_long': None, 'result_double': None}] Qualite : 0.04344426772568292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22925564 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22925564_13-05-2025_17_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22925564 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22925564_13-05-2025_17_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925619, 'pht': 3726}}" where mtr_portfolio_id = 22925564 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22925564 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541754, 0.04344426772568292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22925564_13-05-2025_17_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22925608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22925609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22925610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22925611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22925612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22925613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22925614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22925615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22925616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22925617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22925618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22925619, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22926788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2841664, 'mtr_portfolio_id': 22926788, 'created_at': datetime.datetime(2025, 5, 13, 18, 19), 'result': '0.04159338687577479', 'result_long': None, 'result_double': None}] Qualite : 0.04159338687577479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22926788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22926788_13-05-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22926788 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22926788_13-05-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22926793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22926794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22926795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22926796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22926797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22926798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22926799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22926800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22926801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22926802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22926803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22926804, 'pht': 3726}}" where mtr_portfolio_id = 22926788 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22926788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541755, 0.04159338687577479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22926788_13-05-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22926793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22926794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22926795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22926796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22926797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22926798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22926799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22926800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22926801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22926802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22926803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22926804, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22927199 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2841737, 'mtr_portfolio_id': 22927199, 'created_at': datetime.datetime(2025, 5, 13, 18, 32, 59), 'result': '0.024693898735870072', 'result_long': None, 'result_double': None}] Qualite : 0.024693898735870072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22927199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927199_13-05-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22927199 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927199_13-05-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22927213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927224, 'pht': 3726}}" where mtr_portfolio_id = 22927199 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22927199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541756, 0.024693898735870072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927199_13-05-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22927213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927224, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22927484 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2841843, 'mtr_portfolio_id': 22927484, 'created_at': datetime.datetime(2025, 5, 13, 18, 50, 58), 'result': '0.03315686290271676', 'result_long': None, 'result_double': None}] Qualite : 0.03315686290271676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22927484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927484_13-05-2025_18_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22927484 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927484_13-05-2025_18_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22927500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927510, 'pht': 3726}}" where mtr_portfolio_id = 22927484 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22927484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541757, 0.03315686290271676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22927484_13-05-2025_18_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22927499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22927500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22927501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22927502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22927503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22927504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22927505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22927506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22927507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22927508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22927509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22927510, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22928019 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2841972, 'mtr_portfolio_id': 22928019, 'created_at': datetime.datetime(2025, 5, 13, 19, 11, 1), 'result': '0.06285982107696879', 'result_long': None, 'result_double': None}] Qualite : 0.06285982107696879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22928019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928019_13-05-2025_19_11_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22928019 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928019_13-05-2025_19_11_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928057, 'pht': 3726}}" where mtr_portfolio_id = 22928019 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22928019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541758, 0.06285982107696879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928019_13-05-2025_19_11_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928057, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22928848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2842276, 'mtr_portfolio_id': 22928848, 'created_at': datetime.datetime(2025, 5, 13, 19, 21, 32), 'result': '0.03325602412022127', 'result_long': None, 'result_double': None}] Qualite : 0.03325602412022127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22928848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928848_13-05-2025_19_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22928848 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928848_13-05-2025_19_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928979, 'pht': 3726}}" where mtr_portfolio_id = 22928848 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22928848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541759, 0.03325602412022127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22928848_13-05-2025_19_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22928968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22928969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22928970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22928971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22928972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22928973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22928974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22928975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22928976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22928977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22928978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22928979, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22929426 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2842329, 'mtr_portfolio_id': 22929426, 'created_at': datetime.datetime(2025, 5, 13, 19, 47, 29), 'result': '0.04210673561270499', 'result_long': None, 'result_double': None}] Qualite : 0.04210673561270499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22929426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22929426_13-05-2025_19_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22929426 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22929426_13-05-2025_19_47_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22929445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22929446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22929447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22929448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22929449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22929450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22929451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22929452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22929453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22929454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22929455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22929456, 'pht': 3726}}" where mtr_portfolio_id = 22929426 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22929426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541760, 0.04210673561270499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22929426_13-05-2025_19_47_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22929445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22929446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22929447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22929448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22929449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22929450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22929451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22929452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22929453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22929454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22929455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22929456, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22930305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2842596, 'mtr_portfolio_id': 22930305, 'created_at': datetime.datetime(2025, 5, 13, 20, 2, 59), 'result': '0.037730417914359445', 'result_long': None, 'result_double': None}] Qualite : 0.037730417914359445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22930305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22930305_13-05-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22930305 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22930305_13-05-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22930311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22930312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22930313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22930314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22930315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22930316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22930317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22930318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22930319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22930320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22930321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22930322, 'pht': 3726}}" where mtr_portfolio_id = 22930305 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22930305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541761, 0.037730417914359445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22930305_13-05-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22930311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22930312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22930313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22930314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22930315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22930316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22930317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22930318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22930319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22930320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22930321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22930322, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22931273 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2842815, 'mtr_portfolio_id': 22931273, 'created_at': datetime.datetime(2025, 5, 13, 20, 17, 1), 'result': '0.06090408036143947', 'result_long': None, 'result_double': None}] Qualite : 0.06090408036143947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22931273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931273_13-05-2025_20_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22931273 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931273_13-05-2025_20_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22931298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22931300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931309, 'pht': 3726}}" where mtr_portfolio_id = 22931273 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22931273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541762, 0.06090408036143947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931273_13-05-2025_20_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22931298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22931300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931309, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22931913 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2842924, 'mtr_portfolio_id': 22931913, 'created_at': datetime.datetime(2025, 5, 13, 20, 32, 58), 'result': '0.05588846902239691', 'result_long': None, 'result_double': None}] Qualite : 0.05588846902239691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22931913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931913_13-05-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22931913 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931913_13-05-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22931964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22931966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931975, 'pht': 3726}}" where mtr_portfolio_id = 22931913 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22931913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541763, 0.05588846902239691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22931913_13-05-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22931964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22931965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22931966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22931967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22931968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22931969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22931970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22931971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22931972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22931973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22931974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22931975, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22932946 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2843212, 'mtr_portfolio_id': 22932946, 'created_at': datetime.datetime(2025, 5, 13, 21, 0, 57), 'result': '0.03125508669317031', 'result_long': None, 'result_double': None}] Qualite : 0.03125508669317031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22932946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22932946_13-05-2025_21_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22932946 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22932946_13-05-2025_21_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22933022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22933023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22933024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22933025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22933026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22933027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22933028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22933029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22933031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22933032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22933033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22933034, 'pht': 3726}}" where mtr_portfolio_id = 22932946 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22932946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541764, 0.03125508669317031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22932946_13-05-2025_21_00_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22933022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22933023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22933024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22933025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22933026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22933027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22933028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22933029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22933031, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22933032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22933033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22933034, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22934532 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2843609, 'mtr_portfolio_id': 22934532, 'created_at': datetime.datetime(2025, 5, 13, 21, 18, 29), 'result': '0.02770984133457104', 'result_long': None, 'result_double': None}] Qualite : 0.02770984133457104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22934532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22934532_13-05-2025_21_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22934532 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22934532_13-05-2025_21_18_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22934571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22934572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22934573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22934574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22934575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22934576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22934577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22934578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22934579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22934580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22934581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22934582, 'pht': 3726}}" where mtr_portfolio_id = 22934532 and dashboard_run_id = 1811684 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22934532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10541765, 0.02770984133457104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22934532_13-05-2025_21_18_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22934571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22934572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22934573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22934574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22934575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22934576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22934577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22934578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22934579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22934580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22934581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22934582, '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 (22899562,22900104,22900286,22900644,22901957,22902217,22902591,22903139,22903622,22904132,22904418,22904914,22905334,22905715,22906057,22907468,22907619,22907915,22908211,22908544,22908961,22909154,22909538,22909923,22910220,22910646,22910854,22911248,22911742,22912158,22913169,22918939,22919106,22919523,22920074,22920719,22921327,22921743,22922370,22922836,22923246,22923787,22924281,22924635,22924927,22925564,22926788,22927199,22927484,22928019,22928848,22929426,22930305,22931273,22931913,22932946,22934532) result : ((1357748357,), (1357748359,), (1357748383,), (1357748387,), (1357748390,), (1357748393,), (1357748417,), (1357748426,), (1357748456,), (1357748482,), (1357748510,), (1357748537,), (1357748834,), (1357748859,), (1357748884,), (1357749309,), (1357749334,), (1357749358,), (1357749383,), (1357749524,), (1357749529,), (1357749565,), (1357749797,), (1357749799,), (1357749801,), (1357749804,), (1357749808,), (1357749809,), (1357750030,), (1357750033,), (1357750036,), (1357750039,), (1357750042,), (1357750149,), (1357750173,), (1357750332,), (1357750335,), (1357750978,), (1357750983,), (1357750985,), (1357750997,), (1357751002,), (1357751003,), (1357751119,), (1357751122,), (1357751124,), (1357751127,), (1357751129,), (1357751153,), (1357751156,), (1357751158,), (1357751160,), (1357751186,), (1357751188,), (1357751190,), (1357751191,), (1357751193,), (1357751213,), (1357751215,), (1357751217,), (1357751218,), (1357751220,), (1357751271,), (1357751249,), (1357751251,), (1357751253,), (1357751255,), (1357751269,), (1357751293,), (1357751295,), (1357751296,), (1357751348,), (1357751350,), (1357751351,), (1357751352,), (1357751354,), (1357751355,), (1357751387,), (1357751405,), (1357751406,), (1357751407,), (1357751439,), (1357751441,), (1357751442,), (1357751639,), (1357751715,), (1357751764,), (1357751777,), (1357751833,), (1357752063,), (1357752068,), (1357752072,), (1357752077,), (1357752080,), (1357752081,), (1357752097,), (1357752099,), (1357752101,), (1357752103,), (1357752105,), (1357752120,), (1357752124,), (1357752125,), (1357752128,), (1357752145,), (1357752149,), (1357752151,), (1357752153,), (1357752156,), (1357752159,), (1357752179,), (1357752182,), (1357752189,), (1357752192,), (1357752204,), (1357752213,), (1357752393,), (1357752404,), (1357752426,), (1357752427,), (1357752435,), (1357752590,), (1357752661,), (1357752672,), (1357752679,), (1357752766,), (1357752793,), (1357752821,), (1357752831,), (1357752863,), (1357752853,), (1357752857,), (1357752860,), (1357752885,), (1357752888,), (1357752890,), (1357752928,), (1357752932,), (1357752933,), (1357752958,), (1357752960,), (1357752961,), (1357752962,), (1357752963,), (1357752982,), (1357752985,), (1357752987,), (1357753014,), (1357753017,), (1357753019,), (1357753021,), (1357753025,), (1357753043,), (1357753045,), (1357753046,), (1357753048,), (1357753072,), (1357753076,), (1357753079,), (1357753082,), (1357753086,), (1357753098,), (1357753101,), (1357753103,), (1357753105,), (1357753107,), (1357753125,), (1357753128,), (1357753174,), (1357753181,), (1357753185,), (1357753186,), (1357753188,), (1357753191,), (1357753202,), (1357753206,), (1357753209,), (1357753212,), (1357753215,), (1357753219,), (1357753248,), (1357753251,), (1357753254,), (1357753279,), (1357753307,), (1357753324,), (1357753328,), (1357753336,), (1357753366,), (1357753394,), (1357753524,), (1357753544,), (1357753547,), (1357753550,), (1357753569,), (1357753707,), (1357753629,), (1357753657,), (1357753681,), (1357753741,), (1357753744,), (1357753746,), (1357753748,), (1357753771,), (1357753775,), (1357753778,), (1357753781,), (1357753797,), (1357753800,), (1357753803,), (1357753805,), (1357753807,), (1357753811,), (1357753839,), (1357753842,), (1357753845,), (1357753847,), (1357753865,), (1357753868,), (1357753870,), (1357753872,), (1357753874,), (1357753932,), (1357753963,), (1357753987,), (1357754005,), (1357754033,), (1357754034,), (1357754036,), (1357754038,), (1357754234,), (1357754236,), (1357754238,), (1357754349,), (1357754352,), (1357754359,), (1357754362,), (1357754364,), (1357754393,), (1357754396,), (1357754398,), (1357754400,), (1357754402,), (1357754420,), (1357754423,), (1357754425,), (1357754427,), (1357754430,), (1357754447,), (1357754450,), (1357754836,), (1357754841,), (1357754852,), (1357754884,), (1357754912,), (1357754923,), (1357755038,), (1357756988,), (1357757068,), (1357757099,), (1357757103,), (1357757105,), (1357757106,), (1357757234,), (1357757236,), (1357757237,), (1357757238,), (1357757263,), (1357757264,), (1357757266,), (1357757267,), (1357757269,), (1357757270,), (1357757293,), (1357757294,), (1357757295,), (1357757296,), (1357757298,), (1357757325,), (1357757333,), (1357757335,), (1357757336,), (1357757338,), (1357757359,), (1357757361,), (1357757363,), (1357757365,), (1357757368,), (1357757370,), (1357757384,), (1357757387,), (1357757390,), (1357757392,), (1357757414,), (1357757416,), (1357757417,), (1357757421,), (1357757422,), (1357757424,), (1357757447,), (1357757449,), (1357757451,), (1357757453,), (1357757467,), (1357757470,), (1357757485,), (1357757488,), (1357757489,), (1357757504,), (1357757506,), (1357757508,), (1357757541,), (1357757556,), (1357757583,), (1357757608,), (1357757638,), (1357757666,), (1357757734,), (1357757736,), (1357757739,), (1357757741,), (1357757743,), (1357757746,), (1357757764,), (1357757761,), (1357757785,), (1357757788,), (1357757791,), (1357757794,), (1357757797,), (1357757799,), (1357757880,), (1357757893,), (1357757895,), (1357757896,), (1357757897,), (1357757909,), (1357758011,), (1357758013,), (1357758014,), (1357758016,), (1357758060,), (1357758068,), (1357758070,), (1357758088,), (1357758152,), (1357758452,), (1357758454,), (1357758455,), (1357758574,), (1357758575,), (1357758576,), (1357758577,), (1357758579,), (1357758598,), (1357758600,), (1357758601,), (1357758625,), (1357758628,), (1357758630,), (1357758632,), (1357758636,), (1357758638,), (1357758656,), (1357758658,), (1357758660,), (1357758662,), (1357758665,), (1357758667,), (1357758698,), (1357758702,), (1357758704,), (1357758737,), (1357758739,), (1357758741,), (1357758742,), (1357758744,), (1357758746,), (1357758766,), (1357758768,), (1357758769,), (1357758826,), (1357758860,), (1357758892,), (1357758980,), (1357758971,), (1357758973,), (1357758975,), (1357758977,), (1357758999,), (1357759002,), (1357759005,), (1357759007,), (1357759010,), (1357759022,), (1357759024,), (1357759027,), (1357759063,), (1357759065,), (1357759068,), (1357759070,), (1357759072,), (1357759076,), (1357759090,), (1357759092,), (1357759098,), (1357759125,), (1357759149,), (1357759425,), (1357759439,), (1357759441,), (1357759465,), (1357759468,), (1357759470,), (1357759473,), (1357759476,), (1357759478,), (1357759493,), (1357759495,), (1357759497,), (1357759499,), (1357759502,), (1357759517,), (1357759521,), (1357759523,), (1357759526,), (1357759552,), (1357759555,), (1357759560,), (1357759569,), (1357759575,), (1357759578,), (1357759673,), (1357759676,), (1357759678,), (1357759680,), (1357759681,), (1357759724,), (1357759726,), (1357759727,), (1357759728,), (1357759749,), (1357759752,), (1357759753,), (1357759755,), (1357759756,), (1357759757,), (1357759775,), (1357759776,), (1357759777,), (1357759797,), (1357759799,), (1357759801,), (1357759802,), (1357759803,), (1357759806,), (1357759840,), (1357759833,), (1357759835,), (1357759837,), (1357759838,), (1357759864,), (1357759866,), (1357759868,), (1357759870,), (1357759872,), (1357759895,), (1357759898,), (1357759901,), (1357759905,), (1357759909,), (1357759911,), (1357759928,), (1357759930,), (1357759932,), (1357759934,), (1357759976,), (1357759979,), (1357759986,), (1357760011,), (1357760038,), (1357760147,), (1357760149,), (1357760151,), (1357760152,), (1357760153,), (1357760176,), (1357760177,), (1357760178,), (1357760179,), (1357760181,), (1357760183,), (1357760213,), (1357760215,), (1357760217,), (1357760219,), (1357760244,), (1357760246,), (1357760247,), (1357760248,), (1357760250,), (1357760251,), (1357760275,), (1357760278,), (1357760280,), (1357760300,), (1357760303,), (1357760305,), (1357760307,), (1357760327,), (1357760354,), (1357760358,), (1357760360,), (1357760362,), (1357760369,), (1357760487,), (1357760494,), (1357760496,), (1357760499,), (1357760506,), (1357760514,), (1357760597,), (1357760599,), (1357760601,), (1357760723,), (1357760711,), (1357760714,), (1357760715,), (1357760717,), (1357760719,), (1357760754,), (1357760757,), (1357760760,), (1357760785,), (1357760788,), (1357760790,), (1357760792,), (1357760813,), (1357760817,), (1357760819,), (1357760821,), (1357760823,), (1357760841,), (1357760843,), (1357760845,), (1357760847,), (1357760875,), (1357760879,), (1357760881,), (1357760882,), (1357760883,), (1357760912,), (1357760914,), (1357760916,), (1357760918,), (1357760921,), (1357760923,), (1357760948,), (1357760951,), (1357760983,), (1357760985,), (1357760987,), (1357760989,), (1357760991,), (1357761017,), (1357761021,), (1357761024,), (1357761026,), (1357761088,), (1357761091,), (1357761093,), (1357761094,), (1357761133,), (1357761135,), (1357761136,), (1357761137,), (1357761139,), (1357761164,), (1357761166,), (1357761167,), (1357761168,), (1357761170,), (1357761193,), (1357761197,), (1357761199,), (1357761201,), (1357761221,), (1357761494,), (1357761491,), (1357761492,), (1357761493,), (1357761523,), (1357761524,), (1357761525,), (1357761526,), (1357761528,), (1357761530,), (1357761558,), (1357761561,), (1357761717,), (1357761774,), (1357761767,), (1357761771,), (1357761802,), (1357761804,), (1357761806,), (1357761809,), (1357761810,), (1357761819,), (1357761821,), (1357761845,), (1357761849,), (1357761851,), (1357761853,), (1357761872,), (1357761908,), (1357761910,), (1357761913,), (1357761915,), (1357761917,), (1357761939,), (1357761942,), (1357761945,), (1357761976,), (1357761979,), (1357761981,), (1357762027,), (1357762029,), (1357762031,), (1357762081,), (1357762084,), (1357762086,), (1357762087,), (1357762089,), (1357762091,), (1357762133,), (1357762134,), (1357762135,), (1357762136,), (1357762137,), (1357762155,), (1357762157,), (1357762159,), (1357762161,), (1357762164,), (1357762185,), (1357762188,), (1357762190,), (1357762240,), (1357762243,), (1357762246,), (1357762248,), (1357762249,), (1357762252,), (1357762368,), (1357762276,), (1357762318,), (1357762450,), (1357762469,), (1357762471,), (1357762472,), (1357762474,), (1357762478,), (1357762500,), (1357762536,), (1357762557,), (1357762594,), (1357762596,), (1357762598,), (1357762599,), (1357762620,), (1357762623,), (1357762626,), (1357762676,), (1357762678,), (1357762679,), (1357762711,), (1357762737,), (1357762743,), (1357762783,), (1357762784,), (1357762785,), (1357762786,), (1357762788,), (1357762807,), (1357762809,), (1357762811,), (1357762838,), (1357762840,), (1357762841,), (1357762864,), (1357762867,), (1357762869,), (1357762871,), (1357762874,), (1357762900,), (1357762901,), (1357762904,), (1357762915,), (1357762917,), (1357762933,), (1357762936,), (1357762938,), (1357762940,), (1357762966,), (1357762968,), (1357762969,), (1357762986,), (1357762988,), (1357762991,), (1357762993,), (1357762996,), (1357763013,), (1357763016,), (1357763019,), (1357763022,), (1357763024,), (1357763026,), (1357763089,), (1357763076,), (1357763079,), (1357763081,), (1357763165,), (1357763168,), (1357763170,), (1357763211,), (1357763221,), (1357763224,), (1357763285,), (1357763287,), (1357763289,), (1357763291,), (1357763294,), (1357763338,), (1357763341,), (1357763343,), (1357763371,), (1357763374,), (1357763376,), (1357763378,), (1357763381,), (1357763439,), (1357763442,), (1357763445,), (1357763448,), (1357763452,), (1357763471,), (1357763475,), (1357763476,), (1357763513,), (1357763514,), (1357763515,), (1357763517,), (1357763518,), (1357763520,), (1357763542,), (1357763544,), (1357763545,), (1357763570,), (1357763572,), (1357763573,), (1357763622,), (1357763624,), (1357763625,), (1357763626,), (1357763627,), (1357763629,), (1357763665,), (1357763666,), (1357763667,), (1357763668,), (1357763669,), (1357763691,), (1357763693,), (1357763714,), (1357763715,), (1357763716,), (1357763718,), (1357763720,), (1357763723,), (1357763745,), (1357763748,), (1357763749,), (1357763750,), (1357763785,), (1357763780,), (1357763783,), (1357763819,), (1357763821,), (1357763823,), (1357763824,), (1357763825,), (1357763849,), (1357763851,), (1357763852,), (1357763853,), (1357763855,), (1357763856,), (1357763876,), (1357763878,), (1357763879,), (1357763880,), (1357763910,), (1357763913,), (1357763915,), (1357763917,), (1357763920,), (1357763922,), (1357763973,), (1357763976,), (1357763978,), (1357763980,), (1357763982,), (1357764016,), (1357764020,), (1357764021,), (1357764035,), (1357764044,), (1357764047,), (1357764052,), (1357764054,), (1357764056,), (1357764068,), (1357764071,), (1357764072,), (1357764073,), (1357764075,), (1357764099,), (1357764101,), (1357764102,), (1357764125,), (1357764131,), (1357764133,), (1357764135,), (1357764137,), (1357764141,), (1357764166,), (1357764169,), (1357764171,), (1357764173,), (1357764197,), (1357764208,), (1357764211,), (1357764213,), (1357764215,), (1357764237,), (1357764241,), (1357764245,), (1357764250,), (1357764254,), (1357764258,), (1357764332,), (1357764320,), (1357764323,), (1357764326,), (1357764330,), (1357764355,), (1357764357,), (1357764359,), (1357764361,), (1357764364,), (1357764391,), (1357764398,), (1357764402,), (1357764403,), (1357764455,), (1357764458,), (1357764490,), (1357764496,), (1357764503,), (1357764505,), (1357764508,), (1357764532,), (1357764534,), (1357764536,), (1357764537,), (1357764539,), (1357764540,), (1357764572,), (1357764575,), (1357764578,), (1357764580,), (1357764600,), (1357764601,), (1357764602,), (1357764603,), (1357764604,), (1357764627,), (1357764629,), (1357764630,), (1357764682,), (1357764697,), (1357764703,), (1357764735,), (1357766841,), (1357766838,), (1357766980,), (1357767005,), (1357767007,), (1357767032,), (1357767035,), (1357767037,), (1357767040,), (1357767067,), (1357767070,), (1357767073,), (1357767143,), (1357767146,), (1357767149,), (1357767150,), (1357767167,), (1357767169,), (1357767170,), (1357767171,), (1357767173,), (1357767200,), (1357767202,), (1357767205,), (1357767207,), (1357767230,), (1357767232,), (1357767234,), (1357767269,), (1357767260,), (1357767263,), (1357767265,), (1357767267,), (1357767288,), (1357767290,), (1357767291,), (1357767316,), (1357767318,), (1357767320,), (1357767323,), (1357767326,), (1357767328,), (1357767346,), (1357767349,), (1357767350,), (1357767351,), (1357767353,), (1357767355,), (1357767379,), (1357767385,), (1357767387,), (1357767389,), (1357767415,), (1357767418,), (1357767419,), (1357767420,), (1357767422,), (1357767446,), (1357767450,), (1357767453,), (1357767455,), (1357767458,), (1357767460,), (1357767479,), (1357767481,), (1357767482,), (1357767484,), (1357767486,), (1357767502,), (1357767503,), (1357767505,), (1357767507,), (1357767529,), (1357767531,), (1357767532,), (1357767533,), (1357767535,), (1357767561,), (1357767564,), (1357767565,), (1357767567,), (1357767570,), (1357767572,), (1357767606,), (1357767609,), (1357767611,), (1357767674,), (1357767677,), (1357767680,), (1357767682,), (1357767685,), (1357767689,), (1357767721,), (1357767723,), (1357767727,), (1357767731,), (1357767756,), (1357767760,), (1357767793,), (1357767799,), (1357767802,), (1357767805,), (1357767853,), (1357767835,), (1357767838,), (1357767842,), (1357767845,), (1357767849,), (1357767872,), (1357767874,), (1357767875,), (1357767899,), (1357767901,), (1357767948,), (1357767950,), (1357767951,), (1357767952,), (1357767980,), (1357767982,), (1357767984,), (1357767985,), (1357767987,), (1357767988,), (1357768012,), (1357768014,), (1357768015,), (1357768016,), (1357768018,), (1357768045,), (1357768047,), (1357768049,), (1357768051,), (1357768079,), (1357768081,), (1357768082,), (1357768083,), (1357768084,), (1357768086,), (1357768111,), (1357768113,), (1357768114,), (1357768141,), (1357768142,), (1357768143,), (1357768144,), (1357768146,), (1357768148,), (1357768172,), (1357768174,), (1357768175,), (1357768176,), (1357768178,), (1357768180,), (1357768204,), (1357768208,), (1357768211,), (1357768237,), (1357768240,), (1357768242,), (1357768244,), (1357768247,), (1357768249,), (1357768270,), (1357768272,), (1357768274,), (1357768276,), (1357768340,), (1357768345,), (1357768347,), (1357768361,), (1357768365,), (1357768413,), (1357768389,), (1357768401,), (1357768407,), (1357768410,), (1357768449,), (1357768451,), (1357768453,), (1357768456,), (1357768458,), (1357768483,), (1357768485,), (1357769168,), (1357769170,), (1357769171,), (1357769179,), (1357769239,), (1357769241,), (1357769242,), (1357769243,), (1357769276,), (1357769278,), (1357769281,), (1357769283,), (1357769286,), (1357769309,), (1357769311,), (1357769312,), (1357769313,), (1357769347,), (1357769349,), (1357769351,), (1357769354,), (1357769357,), (1357769361,), (1357769384,), (1357769386,), (1357769388,), (1357769390,), (1357769414,), (1357769415,), (1357769416,), (1357769417,), (1357769441,), (1357769443,), (1357769444,), (1357769445,), (1357769447,), (1357769472,), (1357769474,), (1357769475,), (1357769476,), (1357769478,), (1357769480,), (1357769509,), (1357769511,), (1357769512,), (1357769513,), (1357769547,), (1357769552,), (1357769555,), (1357769558,), (1357769562,), (1357769567,), (1357769610,), (1357769601,), (1357769603,), (1357769605,), (1357769607,), (1357769633,), (1357769635,), (1357769636,), (1357769638,), (1357769640,), (1357769653,), (1357769656,), (1357769659,), (1357769660,), (1357769662,), (1357769665,), (1357769688,), (1357769698,), (1357769699,), (1357769701,), (1357769704,), (1357769708,), (1357769724,), (1357769728,), (1357769730,), (1357769752,), (1357769755,), (1357769756,), (1357769758,), (1357769761,), (1357769763,), (1357769780,), (1357769783,), (1357769785,), (1357769787,), (1357769807,), (1357769810,), (1357769815,), (1357769822,), (1357769829,), (1357769835,), (1357769856,), (1357769857,), (1357769858,), (1357769859,), (1357769861,), (1357769880,), (1357769883,), (1357769886,), (1357769888,), (1357769891,), (1357769908,), (1357769911,), (1357769913,), (1357769915,), (1357769918,), (1357769921,), (1357769954,), (1357769958,), (1357769960,), (1357769981,), (1357769984,), (1357769986,), (1357769989,), (1357769992,), (1357769994,), (1357770007,), (1357770012,), (1357770022,), (1357770024,), (1357770027,), (1357770047,), (1357770051,), (1357770053,), (1357770057,), (1357770090,), (1357770078,), (1357770083,), (1357770084,), (1357770087,), (1357770107,), (1357770109,), (1357770110,), (1357770111,), (1357770113,), (1357770144,), (1357770147,), (1357770149,), (1357770151,), (1357770172,), (1357770174,), (1357770175,), (1357770176,), (1357770178,), (1357770180,), (1357770200,), (1357770202,), (1357770204,), (1357770205,), (1357770207,), (1357770227,), (1357770229,), (1357770230,), (1357770398,), (1357770401,), (1357770403,), (1357770405,), (1357770407,), (1357770411,), (1357770444,), (1357770448,), (1357770450,), (1357770473,), (1357770476,), (1357770477,), (1357770478,), (1357770507,), (1357770510,), (1357770512,), (1357770513,), (1357770556,), (1357770547,), (1357770550,), (1357770552,), (1357770553,), (1357770555,), (1357770588,), (1357770590,), (1357770609,), (1357770611,), (1357770701,), (1357770727,), (1357770728,), (1357770759,), (1357770761,), (1357770763,), (1357770766,), (1357770770,), (1357770773,), (1357770795,), (1357770797,), (1357770800,), (1357770802,), (1357770806,), (1357770830,), (1357770833,), (1357770835,), (1357770837,), (1357770841,), (1357770987,), (1357771055,), (1357771176,), (1357771188,), (1357771395,), (1357771463,), (1357771527,), (1357771538,), (1357771540,), (1357771546,), (1357771572,), (1357771580,), (1357771581,), (1357771584,), (1357771591,), (1357771620,), (1357771628,), (1357771629,), (1357771692,), (1357771694,), (1357771695,), (1357771696,), (1357771699,), (1357771702,), (1357771764,), (1357771765,), (1357771768,), (1357771769,), (1357771807,), (1357771809,), (1357771810,), (1357771811,), (1357771836,), (1357771837,), (1357771866,), (1357771868,), (1357771870,), (1357771871,), (1357771872,), (1357771878,), (1357771911,), (1357771908,), (1357771909,), (1357771910,), (1357771935,), (1357771937,), (1357771938,), (1357771939,), (1357771968,), (1357771971,), (1357771972,), (1357771973,), (1357771976,), (1357771977,), (1357772006,), (1357772008,), (1357772009,), (1357772010,), (1357772035,), (1357772037,), (1357772038,), (1357772041,), (1357772042,), (1357772047,), (1357772091,), (1357772093,), (1357772096,), (1357772098,), (1357772099,), (1357772129,), (1357772131,), (1357772132,), (1357772133,), (1357772159,), (1357772160,), (1357772161,), (1357772162,), (1357772164,), (1357772166,), (1357772196,), (1357772198,), (1357772199,), (1357772200,), (1357772237,), (1357772239,), (1357772241,), (1357772246,), (1357772323,), (1357772326,), (1357772327,), (1357772328,), (1357772353,), (1357772355,), (1357772356,), (1357772357,), (1357772358,), (1357772384,), (1357772431,), (1357772437,), (1357772453,), (1357772459,), (1357772516,), (1357772502,), (1357772506,), (1357772509,), (1357772513,), (1357772550,), (1357772554,), (1357772557,), (1357772559,), (1357772564,), (1357773205,), (1357773211,), (1357773214,), (1357773218,), (1357773269,), (1357773271,), (1357773274,), (1357773277,), (1357773336,), (1357773341,), (1357773380,), (1357773384,), (1357773386,), (1357773389,), (1357773392,), (1357773428,), (1357773432,), (1357773436,), (1357773440,), (1357773445,), (1357773473,), (1357773477,), (1357773480,), (1357773516,), (1357773521,), (1357773524,), (1357773528,), (1357773532,), (1357773534,), (1357773560,), (1357773563,), (1357773566,), (1357773570,), (1357773602,), (1357773606,), (1357773610,), (1357773648,), (1357773651,), (1357773654,), (1357773657,), (1357773689,), (1357773692,), (1357773742,), (1357773744,), (1357773746,), (1357773748,), (1357773788,), (1357773791,), (1357773797,), (1357773801,), (1357773805,), (1357773810,), (1357773848,), (1357773845,), (1357773846,), (1357773882,), (1357773885,), (1357773887,), (1357773889,), (1357773924,), (1357773929,), (1357773932,), (1357773936,), (1357773938,), (1357773969,), (1357773970,), (1357773971,), (1357773973,), (1357773977,), (1357774009,), (1357774011,), (1357774015,), (1357774019,), (1357774596,), (1357774600,), (1357774605,), (1357774609,), (1357774999,), (1357775139,), (1357775143,), (1357775146,), (1357775184,), (1357775186,), (1357775188,), (1357775190,), (1357775226,), (1357775229,), (1357775232,), (1357775269,), (1357775271,), (1357775272,), (1357775273,), (1357775306,), (1357775309,), (1357775312,), (1357775348,), (1357775351,), (1357775354,), (1357775356,), (1357775359,), (1357775386,), (1357775388,), (1357775391,), (1357775394,), (1357775426,), (1357775428,), (1357775430,), (1357775468,), (1357775471,), (1357775475,), (1357775517,), (1357775513,), (1357775515,), (1357775550,), (1357775553,), (1357775556,), (1357775559,), (1357775589,), (1357775592,), (1357775594,), (1357775632,), (1357775636,), (1357775678,), (1357775681,), (1357775684,), (1357775688,), (1357775692,), (1357775699,), (1357775701,), (1357775705,), (1357775709,), (1357775710,), (1357775714,), (1357775715,), (1357775718,), (1357775720,), (1357775724,), (1357775734,), (1357775737,), (1357775781,), (1357775783,), (1357775785,), (1357775787,), (1357775789,), (1357775818,), (1357775820,), (1357775861,), (1357775906,), (1357775911,), (1357775918,), (1357775966,), (1357775968,), (1357776009,), (1357776013,), (1357776059,), (1357776061,), (1357776062,), (1357776063,), (1357776065,), (1357776118,), (1357776123,), (1357776129,), (1357776137,), (1357776142,), (1357776187,), (1357776170,), (1357776173,), (1357776177,), (1357776182,), (1357776222,), (1357776244,), (1357776415,), (1357776417,), (1357776419,), (1357776421,), (1357776424,), (1357776459,), (1357776460,), (1357776463,), (1357776466,), (1357776562,), (1357776604,), (1357776844,), (1357776870,), (1357776898,), (1357776924,), (1357776931,), (1357777066,), (1357777078,), (1357777104,), (1357777142,), (1357777200,), (1357777238,), (1357777372,), (1357777374,), (1357777399,), (1357777425,), (1357777453,), (1357777484,), (1357777598,), (1357777601,), (1357777603,), (1357777605,), (1357777649,), (1357777652,), (1357777655,), (1357777657,), (1357777661,), (1357777663,), (1357777703,), (1357777704,), (1357777782,), (1357777790,), (1357777825,), (1357777828,), (1357777835,), (1357777859,), (1357777873,), (1357777881,), (1357777974,), (1357777975,), (1357777977,), (1357777979,), (1357777982,), (1357777986,), (1357778017,), (1357778021,), (1357778026,), (1357778106,), (1357778082,), (1357778090,), (1357778094,), (1357778098,), (1357778102,), (1357778241,), (1357778248,), (1357778267,), (1357778269,), (1357778380,), (1357778384,), (1357778388,), (1357778527,), (1357778532,), (1357778534,), (1357778537,), (1357778540,), (1357778575,), (1357778577,), (1357778580,), (1357778582,), (1357778618,), (1357778620,), (1357778624,), (1357778627,), (1357778660,), (1357778663,), (1357778665,), (1357778712,), (1357778713,), (1357778715,), (1357778717,), (1357778760,), (1357778766,), (1357778805,), (1357778809,), (1357778812,), (1357778814,), (1357778816,), (1357778819,), (1357778850,), (1357778853,), (1357778856,), (1357778857,), (1357778890,), (1357778893,), (1357778895,), (1357778945,), (1357778949,), (1357778976,), (1357779000,), (1357779043,), (1357779046,), (1357779047,), (1357779078,), (1357779084,), (1357779088,), (1357779093,), (1357779135,), (1357779126,), (1357779129,), (1357779132,), (1357779227,), (1357779254,), (1357779276,), (1357779283,), (1357779304,), (1357779532,), (1357779708,), (1357779710,), (1357779777,), (1357779779,), (1357779932,), (1357779956,), (1357780168,), (1357780208,), (1357780230,), (1357780256,), (1357780370,), (1357780372,), (1357780433,), (1357780445,), (1357780513,), (1357780521,), (1357780576,), (1357780577,), (1357780749,), (1357780759,), (1357780811,), (1357780971,), (1357781222,), (1357781644,), (1357781672,), (1357781698,), (1357781939,), (1357781966,), (1357781994,), (1357782126,), (1357782127,), (1357782128,), (1357782258,), (1357782286,), (1357782315,), (1357782588,), (1357782524,), (1357782557,), (1357782579,), (1357782585,), (1357782769,), (1357782913,), (1357782962,), (1357783004,), (1357783194,), (1357783199,), (1357783205,), (1357783237,), (1357783240,), (1357783244,), (1357783248,), (1357783280,), (1357783283,), (1357783286,), (1357783289,), (1357783327,), (1357783332,), (1357783336,), (1357783339,), (1357783342,), (1357783546,), (1357783594,), (1357783636,), (1357783664,), (1357783696,), (1357783906,), (1357783934,), (1357783961,), (1357783987,), (1357783999,), (1357784061,), (1357784087,), (1357784112,), (1357784136,), (1357784160,), (1357784205,), (1357784285,), (1357784289,), (1357784292,), (1357784327,), (1357784331,), (1357784334,), (1357784336,), (1357784359,), (1357784387,), (1357784594,), (1357784630,), (1357784681,), (1357784723,), (1357785037,), (1357785041,), (1357785045,), (1357785058,), (1357785674,), (1357785778,), (1357834890,), (1357833573,), (1357835055,), (1357835099,), (1357835139,), (1357835144,), (1357835184,), (1357835192,), (1357835219,), (1357835618,), (1357835561,), (1357835590,), (1357836008,), (1357836308,), (1357836745,), (1357836774,), (1357837188,), (1357837206,), (1357837236,), (1357837294,), (1357837321,), (1357837337,), (1357837526,), (1357837554,), (1357837583,), (1357837590,), (1357837592,), (1357837708,), (1357837711,), (1357837713,), (1357837715,), (1357837719,), (1357837721,), (1357837778,), (1357837782,), (1357837939,), (1357837942,), (1357837956,), (1357837982,), (1357838305,), (1357838335,), (1357838342,), (1357838346,), (1357838366,), (1357838393,), (1357838494,), (1357838498,), (1357838501,), (1357838506,), (1357838509,), (1357838538,), (1357838541,), (1357838542,), (1357838545,), (1357838548,), (1357838552,), (1357838627,), (1357838661,), (1357838691,), (1357838720,), (1357839295,), (1357839266,), (1357839282,), (1357839287,), (1357839289,), (1357839293,), (1357839576,), (1357839580,), (1357839581,), (1357839622,), (1357839911,), (1357839915,), (1357839941,), (1357839946,), (1357839950,), (1357839954,), (1357839989,), (1357839991,), (1357839993,), (1357839996,), (1357840102,), (1357840149,), (1357840207,), (1357840267,), (1357840297,), (1357840331,), (1357840775,), (1357840841,), (1357840894,), (1357841220,), (1357841227,), (1357841250,), (1357841294,), (1357841875,), (1357841918,), (1357841944,), (1357841970,), (1357842454,), (1357842465,), (1357842491,), (1357842493,), (1357842498,), (1357842521,), (1357842583,), (1357842687,), (1357842715,), (1357842747,), (1357842777,), (1357842807,), (1357842913,), (1357842929,), (1357842937,), (1357842942,), (1357843007,), (1357843012,), (1357843016,), (1357843019,), (1357843024,), (1357843028,), (1357843061,), (1357843068,), (1357843071,), (1357843074,), (1357843147,), (1357843151,), (1357843156,), (1357843159,), (1357843163,), (1357843167,), (1357843195,), (1357843218,), (1357843224,), (1357843227,), (1357843236,), (1357843298,), (1357843284,), (1357843287,), (1357843291,), (1357843294,), (1357843336,), (1357843338,), (1357843340,), (1357843344,), (1357843383,), (1357843387,), (1357843389,), (1357843391,), (1357843393,), (1357843396,), (1357843497,), (1357843610,), (1357843638,), (1357843675,), (1357843735,), (1357844016,), (1357844035,), (1357844054,), (1357844064,), (1357844077,), (1357844259,), (1357844289,), (1357844316,), (1357844346,), (1357844378,), (1357844410,), (1357844616,), (1357844668,), (1357844705,), (1357844711,), (1357844715,), (1357844876,), (1357844916,), (1357844947,), (1357844986,), (1357845041,), (1357845435,), (1357845438,), (1357845441,), (1357845445,), (1357845454,), (1357845482,), (1357845486,), (1357845490,), (1357845494,), (1357845499,), (1357845538,), (1357845540,), (1357845870,), (1357846378,), (1357847048,), (1357847425,), (1357847432,), (1357847436,), (1357847776,), (1357847805,), (1357847834,), (1357847867,), (1357847893,), (1357847921,), (1357847981,), (1357847985,), (1357848003,), (1357848472,), (1357848552,), (1357848594,), (1357849016,), (1357849073,), (1357849092,), (1357849105,), (1357849359,), (1357849375,), (1357849384,), (1357849407,), (1357849431,), (1357849444,), (1357849518,), (1357849521,), (1357849525,), (1357849560,), (1357849564,), (1357849568,), (1357849603,), (1357849682,), (1357849684,), (1357849688,), (1357849689,), (1357849735,), (1357849742,), (1357849750,), (1357849758,), (1357849766,), (1357849775,), (1357849841,), (1357849817,), (1357849824,), (1357849830,), (1357849835,), (1357849868,), (1357849873,), (1357849889,), (1357849916,), (1357849940,), (1357850068,), (1357850071,), (1357850076,), (1357850081,), (1357850085,), (1357850121,), (1357850123,), (1357850126,), (1357850130,), (1357850166,), (1357850170,), (1357850173,), (1357850178,), (1357850183,), (1357850392,), (1357850421,), (1357850448,), (1357850478,), (1357850506,), (1357850536,), (1357850801,), (1357850826,), (1357850860,), (1357850913,), (1357850965,), (1357851386,), (1357851429,), (1357851457,), (1357851500,), (1357851539,), (1357851568,), (1357851976,), (1357852026,), (1357852077,), (1357852765,), (1357852795,), (1357852821,), (1357852855,), (1357852870,), (1357852887,), (1357853305,), (1357853312,), (1357853337,), (1357853368,), (1357853384,), (1357854055,), (1357854140,), (1357854191,), (1357854245,), (1357854490,), (1357854516,), (1357854543,), (1357854573,), (1357854601,), (1357854630,), (1357854659,), (1357854663,), (1357854668,), (1357854672,), (1357854891,), (1357854918,), (1357854923,), (1357854944,), (1357854957,), (1357854962,), (1357855121,), (1357855060,), (1357855091,), (1357855294,), (1357855299,), (1357855302,), (1357855323,), (1357855518,), (1357855523,), (1357855526,), (1357855574,), (1357855578,), (1357855605,), (1357855634,), (1357855664,), (1357855693,), (1357856008,), (1357856066,), (1357856122,), (1357856181,), (1357856397,), (1357856400,), (1357856421,), (1357856457,), (1357856508,), (1357856545,), (1357856773,), (1357856789,), (1357856820,), (1357856825,), (1357856828,), (1357856830,), (1357856977,), (1357856980,), (1357856983,), (1357856987,), (1357856991,), (1357857135,), (1357857160,), (1357857185,), (1357857212,), (1357857246,), (1357857272,), (1357857313,), (1357857316,), (1357857319,), (1357857365,), (1357857369,), (1357857371,), (1357857373,), (1357857376,), (1357857379,), (1357857454,), (1357857487,), (1357857513,), (1357857542,), (1357857571,), (1357857604,), (1357857759,), (1357857775,), (1357857802,), (1357857986,), (1357857989,), (1357857991,), (1357857994,), (1357857999,), (1357858015,), (1357858156,), (1357858159,), (1357858161,), (1357858163,), (1357858218,), (1357858204,), (1357858208,), (1357858211,), (1357858214,), (1357858252,), (1357858255,), (1357858257,), (1357858260,), (1357858264,), (1357858292,), (1357858296,), (1357858300,), (1357858303,), (1357858331,), (1357858333,), (1357858337,), (1357858342,), (1357858348,), (1357858357,), (1357858378,), (1357858384,), (1357858388,), (1357858391,), (1357858393,), (1357858395,), (1357858424,), (1357858427,), (1357858429,), (1357858469,), (1357858471,), (1357858473,), (1357858486,), (1357858490,), (1357858496,), (1357858543,), (1357858546,), (1357858548,), (1357858566,), (1357858578,), (1357858584,), (1357858620,), (1357858623,), (1357858626,), (1357858629,), (1357858635,), (1357858666,), (1357858671,), (1357858699,), (1357858728,), (1357858757,), (1357858787,), (1357859096,), (1357859099,), (1357859101,), (1357859104,), (1357859323,), (1357859376,), (1357859408,), (1357859438,), (1357859467,), (1357859468,), (1357859570,), (1357859573,), (1357859576,), (1357859725,), (1357859749,), (1357859764,), (1357859766,), (1357859769,), (1357859772,), (1357859802,), (1357859804,), (1357859807,), (1357859809,), (1357859865,), (1357859847,), (1357859851,), (1357859854,), (1357859857,), (1357859861,), (1357859927,), (1357859935,), (1357859937,), (1357859941,), (1357859946,), (1357859951,), (1357859979,), (1357859982,), (1357859985,), (1357859989,), (1357860058,), (1357860080,), (1357860084,), (1357860089,), (1357860096,), (1357860113,), (1357860130,), (1357860135,), (1357860141,), (1357860145,), (1357860193,), (1357860196,), (1357860198,), (1357860266,), (1357860269,), (1357860271,), (1357860274,), (1357860277,), (1357860452,), (1357860455,), (1357860456,), (1357860460,), (1357860464,), (1357860467,), (1357860501,), (1357860503,), (1357860505,), (1357860546,), (1357860549,), (1357860552,), (1357860556,), (1357860557,), (1357860561,), (1357860597,), (1357860600,), (1357860602,), (1357860603,), (1357860605,), (1357860609,), (1357860642,), (1357860646,), (1357860649,), (1357860685,), (1357860686,), (1357860688,), (1357860693,), (1357860810,), (1357860817,), (1357860827,), (1357860835,), (1357860839,), (1357860928,), (1357860894,), (1357860915,), (1357860920,), (1357860926,), (1357860992,), (1357860997,), (1357861000,), (1357861044,), (1357861047,), (1357861049,), (1357861052,), (1357861057,), (1357861060,), (1357861109,), (1357861114,), (1357861118,), (1357861122,), (1357861125,), (1357861255,), (1357861259,), (1357861262,), (1357861265,), (1357861294,), (1357861310,), (1357861313,), (1357861317,), (1357861320,), (1357861346,), (1357861348,), (1357861351,), (1357861354,), (1357861357,), (1357861361,), (1357861393,), (1357861396,), (1357861399,), (1357861402,), (1357861405,), (1357861455,), (1357861460,), (1357861465,), (1357861469,), (1357861472,), (1357861510,), (1357861517,), (1357861522,), (1357861526,), (1357861531,), (1357861608,), (1357861612,), (1357861617,), (1357861621,), (1357861622,), (1357861626,), (1357861659,), (1357861663,), (1357861666,), (1357861702,), (1357861706,), (1357861710,), (1357861713,), (1357861718,), (1357861751,), (1357861754,), (1357861758,), (1357861761,), (1357861765,), (1357861768,), (1357861813,), (1357861857,), (1357861863,), (1357861941,), (1357861895,), (1357861900,), (1357861917,), (1357861927,), (1357861931,), (1357861982,), (1357861986,), (1357861990,), (1357861994,), (1357862047,), (1357862052,), (1357862057,), (1357862063,), (1357862067,), (1357862100,), (1357862104,), (1357862108,), (1357862112,), (1357862156,), (1357862160,), (1357862165,), (1357862170,), (1357862176,), (1357862230,), (1357862234,), (1357862238,), (1357862270,), (1357862274,), (1357862278,), (1357862280,), (1357862317,), (1357862322,), (1357862326,), (1357862331,), (1357862374,), (1357862376,), (1357862379,), (1357862382,), (1357862384,), (1357862420,), (1357862424,), (1357862428,), (1357862431,), (1357862438,), (1357862442,), (1357862477,), (1357862482,), (1357862525,), (1357862528,), (1357862531,), (1357862534,), (1357862603,), (1357862652,), (1357862656,), (1357862659,), (1357862662,), (1357862664,), (1357862670,), (1357862704,), (1357862708,), (1357862795,), (1357862778,), (1357862781,), (1357862784,), (1357862787,), (1357862791,), (1357862828,), (1357862831,), (1357862834,), (1357862837,), (1357862841,), (1357862872,), (1357862875,), (1357862879,), (1357862883,), (1357862926,), (1357862929,), (1357862931,), (1357862933,), (1357862934,), (1357862938,), (1357862974,), (1357862977,), (1357862981,), (1357862985,), (1357863040,), (1357863043,), (1357863045,), (1357863047,), (1357863049,), (1357863053,), (1357863089,), (1357863093,), (1357863097,), (1357863101,), (1357863137,), (1357863140,), (1357863142,), (1357863144,), (1357863146,), (1357863147,), (1357863175,), (1357863178,), (1357863180,), (1357863182,), (1357863211,), (1357863213,), (1357863217,), (1357863219,), (1357863224,), (1357863228,), (1357863290,), (1357863295,), (1357863299,), (1357863302,), (1357863305,), (1357863309,), (1357863357,), (1357863360,), (1357863362,), (1357863407,), (1357863411,), (1357863415,), (1357863418,), (1357863422,), (1357863426,), (1357863464,), (1357863466,), (1357863468,), (1357863509,), (1357863513,), (1357863516,), (1357863519,), (1357863522,), (1357863564,), (1357863555,), (1357863558,), (1357863561,), (1357863590,), (1357863594,), (1357863598,), (1357863601,), (1357863605,), (1357863610,), (1357863644,), (1357863647,), (1357863648,), (1357863650,), (1357863689,), (1357863692,), (1357863696,), (1357863699,), (1357863702,), (1357863704,), (1357863750,), (1357863752,), (1357863755,), (1357863757,), (1357863760,), (1357863763,), (1357863822,), (1357863824,), (1357863827,), (1357863829,), (1357863831,), (1357863884,), (1357863887,), (1357863889,), (1357863891,), (1357863894,), (1357863947,), (1357863950,), (1357863951,), (1357863952,), (1357863955,), (1357863959,), (1357863992,), (1357863993,), (1357863994,), (1357863996,), (1357864034,), (1357864038,), (1357864042,), (1357864046,), (1357864051,), (1357864056,), (1357864103,), (1357864107,), (1357864109,), (1357864112,), (1357864150,), (1357864152,), (1357864154,), (1357864155,), (1357864160,), (1357864164,), (1357864198,), (1357864200,), (1357864203,), (1357864206,), (1357864259,), (1357864267,), (1357864275,), (1357864283,), (1357864291,), (1357864311,), (1357864313,), (1357864318,), (1357864322,), (1357864344,), (1357864386,), (1357864372,), (1357864377,), (1357864381,), (1357864565,), (1357864591,), (1357864646,), (1357864698,), (1357864732,), (1357864791,), (1357864925,), (1357864951,), (1357864954,), (1357864957,), (1357865002,), (1357865007,), (1357865012,), (1357865017,), (1357865022,), (1357865053,), (1357865070,), (1357865098,), (1357865128,), (1357865145,), (1357865253,), (1357865257,), (1357865261,), (1357865265,), (1357865269,), (1357865274,), (1357865299,), (1357865303,), (1357865308,), (1357865313,), (1357865355,), (1357865360,), (1357865381,), (1357865384,), (1357865389,), (1357865419,), (1357865423,), (1357865427,), (1357865431,), (1357865435,), (1357865458,), (1357865468,), (1357865469,), (1357865475,), (1357865508,), (1357865514,), (1357865602,), (1357865606,), (1357865616,), (1357865672,), (1357865890,), (1357865894,), (1357865897,), (1357865900,), (1357865903,), (1357865908,), (1357866020,), (1357866025,), (1357866031,), (1357866331,), (1357866678,), (1357866671,), (1357866675,), (1357867088,), (1357867091,), (1357867102,), (1357867123,), (1357867129,), (1357867258,), (1357867276,), (1357867278,), (1357867281,), (1357867285,), (1357867312,), (1357867315,), (1357867369,), (1357867372,), (1357867740,), (1357867747,), (1357867785,), (1357867798,), (1357867800,), (1357867805,), (1357867868,), (1357867871,), (1357867873,), (1357867875,), (1357867891,), (1357867981,), (1357870571,), (1357870653,), (1357870684,), (1357870712,), (1357870837,), (1357870843,), (1357870847,), (1357870868,), (1357870895,), (1357871188,), (1357871204,), (1357871208,), (1357871220,), (1357871414,), (1357871447,), (1357871473,), (1357871476,), (1357871744,), (1357871773,), (1357871799,), (1357871826,), (1357871860,), (1357871889,), (1357872366,), (1357872419,), (1357872469,), (1357873027,), (1357873045,), (1357873054,), (1357873196,), (1357873198,), (1357873222,), (1357873249,), (1357873277,), (1357873533,), (1357873537,), (1357873542,), (1357873576,), (1357873597,), (1357873628,), (1357873631,), (1357873633,), (1357873637,), (1357874006,), (1357874036,), (1357874061,), (1357874282,), (1357874284,), (1357874286,), (1357874288,), (1357874321,), (1357874323,), (1357874327,), (1357874329,), (1357874333,), (1357874336,), (1357874368,), (1357874373,), (1357874378,), (1357874427,), (1357874416,), (1357874419,), (1357874422,), (1357874425,), (1357874456,), (1357874459,), (1357874463,), (1357874465,), (1357874467,), (1357874469,), (1357874519,), (1357874522,), (1357874525,), (1357874528,), (1357874531,), (1357874534,), (1357874563,), (1357874565,), (1357874568,), (1357874571,), (1357874573,), (1357875272,), (1357875276,), (1357875289,), (1357875357,), (1357875366,), (1357875368,), (1357875369,), (1357875407,), (1357875411,), (1357875414,), (1357875417,), (1357875419,), (1357875421,), (1357875451,), (1357875453,), (1357875455,), (1357875457,), (1357875459,), (1357875462,), (1357875492,), (1357875495,), (1357875498,), (1357875500,), (1357875532,), (1357875534,), (1357875536,), (1357875538,), (1357875539,), (1357875542,), (1357875570,), (1357875572,), (1357875574,), (1357875606,), (1357875610,), (1357875618,), (1357875621,), (1357875672,), (1357875676,), (1357875680,), (1357875681,), (1357875724,), (1357875727,), (1357875730,), (1357875732,), (1357875736,), (1357875774,), (1357875776,), (1357875778,), (1357875780,), (1357875819,), (1357875812,), (1357875814,), (1357875816,), (1357875848,), (1357875850,), (1357875860,), (1357875863,), (1357876102,), (1357876147,), (1357876168,), (1357876171,), (1357876172,), (1357876330,), (1357876336,), (1357876354,), (1357876386,), (1357876407,), (1357876482,), (1357876485,), (1357876489,), (1357876523,), (1357876526,), (1357876528,), (1357876531,), (1357876535,), (1357876596,), (1357876623,), (1357876650,), (1357876680,), (1357876714,), (1357876997,), (1357877030,), (1357877058,), (1357877088,), (1357877117,), (1357877636,), (1357877684,), (1357877736,), (1357878181,), (1357878207,), (1357878218,), (1357878223,), (1357878227,), (1357878232,), (1357878415,), (1357878612,), (1357878661,), (1357878699,), (1357879005,), (1357879052,), (1357879097,), (1357879157,), (1357879212,), (1357879655,), (1357879711,), (1357879766,), (1357880059,), (1357880391,), (1357880468,), (1357880548,), (1357880614,), (1357880658,), (1357880920,), (1357880956,), (1357881000,), (1357881032,), (1357881632,), (1357881463,), (1357881517,), (1357881572,), (1357881712,), (1357881746,), (1357881807,), (1357882398,), (1357882772,), (1357882869,), (1357883010,), (1357883138,), (1357883152,), (1357883191,), (1357883219,), (1357883263,), (1357883294,), (1357883495,), (1357883498,), (1357883503,), (1357883522,), (1357883534,), (1357883546,), (1357883687,), (1357883714,), (1357883751,), (1357883755,), (1357883759,), (1357883762,), (1357883766,), (1357883770,), (1357883788,), (1357883791,), (1357883793,), (1357883795,), (1357883798,), (1357883975,), (1357887659,), (1357887141,), (1357887640,), (1357887650,), (1357888235,), (1357888357,), (1357888425,), (1357888479,), (1357888528,), (1357888573,), (1357888931,), (1357889505,), (1357889609,), (1357889630,), (1357889723,), (1357889739,), (1357889797,), (1357890223,), (1357890230,), (1357890251,), (1357890293,), (1357890296,), (1357890314,), (1357890425,), (1357890415,), (1357890420,), (1357890451,), (1357890455,), (1357890459,), (1357890486,), (1357890514,), (1357890543,), (1357890570,), (1357890601,), (1357890631,), (1357890816,), (1357890819,), (1357890822,), (1357890824,), (1357890828,), (1357891203,), (1357891235,), (1357891262,), (1357891727,), (1357891764,), (1357891827,), (1357891857,), (1357891887,), (1357891917,), (1357891945,), (1357892120,), (1357892162,), (1357892191,), (1357892218,), (1357892258,), (1357892649,), (1357892764,), (1357892792,), (1357892821,), (1357893151,), (1357893182,), (1357893211,), (1357893242,), (1357893503,), (1357893534,), (1357893561,), (1357893939,), (1357894077,), (1357894091,), (1357894095,), (1357894129,), (1357894133,), (1357894162,), (1357894214,), (1357894265,), (1357894537,), (1357894557,), (1357894573,), (1357894576,), (1357894587,), (1357894665,), (1357894668,), (1357899606,), (1357900251,), (1357900304,), (1357900332,), (1357900592,), (1357900595,), (1357900597,), (1357901063,), (1357901116,), (1357901169,), (1357901219,), (1357902158,), (1357902246,), (1357902336,), (1357902410,), (1357903300,), (1357903529,), (1357903628,), (1357903783,), (1357903898,), (1357904835,), (1357904917,), (1357905019,), (1357905768,), (1357905785,), (1357905798,), (1357905801,), (1357906101,), (1357906226,), (1357906337,), (1357906451,), (1357906554,), (1357906658,), (1357907255,), (1357907297,), (1357907325,), (1357907496,), (1357907525,), (1357907555,), (1357907580,), (1357907588,), (1357907626,), (1357907629,), (1357907633,), (1357907635,), (1357908041,), (1357908093,), (1357908159,), (1357908260,), (1357908340,), (1357908658,), (1357908708,), (1357908752,), (1357909246,), (1357909250,), (1357909255,), (1357909261,), (1357909313,), (1357909299,), (1357909304,), (1357909308,), (1357909348,), (1357909352,), (1357909354,), (1357909357,), (1357909393,), (1357909395,), (1357909396,), (1357909398,), (1357909729,), (1357909755,), (1357909808,), (1357909864,), (1357909919,), (1357909971,), (1357910567,), (1357910645,), (1357910750,), (1357910849,), (1357910946,), (1357911003,), (1357911620,), (1357911698,), (1357912966,), (1357913016,), (1357913073,), (1357913124,), (1357913164,), (1357913884,), (1357913911,), (1357913966,), (1357914018,), (1357914036,), (1357914038,), (1357914156,), (1357914201,), (1357914244,), (1357914293,), (1357914345,), (1357914760,), (1357914822,), (1357914824,), (1357914975,), (1357914978,), (1357914996,), (1357915005,), (1357915275,), (1357915328,), (1357915378,), (1357915430,), (1357915493,), (1357916115,), (1357916194,), (1357916244,), (1357916259,), (1357916287,), (1357916572,), (1357916660,), (1357916747,), (1357916780,), (1357916947,), (1357916976,), (1357917005,), (1357917025,), (1357917425,), (1357917375,), (1357917387,), (1357917390,), (1357917394,), (1357917977,), (1357918054,), (1357918132,), (1357918215,), (1357919161,), (1357919211,), (1357919238,), (1357919264,), (1357919532,), (1357919581,), (1357919630,), (1357919682,), (1357919732,), (1357919805,), (1357920614,), (1357920684,), (1357920766,), (1357920856,), (1357920957,), (1357921031,), (1357921463,), (1357921485,), (1357921535,), (1357921540,), (1357921987,), (1357922202,), (1357922256,), (1357922292,), (1357922330,), (1357922348,), (1357922899,), (1357922933,), (1357922958,), (1357922986,), (1357923011,), (1357923400,), (1357923429,), (1357923454,), (1357923480,), (1357923778,), (1357923805,), (1357923838,), (1357923864,), (1357924000,), (1357924007,), (1357924033,), (1357924064,), (1357924510,), (1357924566,), (1357924623,), (1357924674,), (1357925253,), (1357925281,), (1357925307,), (1357925332,), (1357925649,), (1357925675,), (1357925689,), (1357926055,), (1357926083,), (1357926111,), (1357926143,), (1357926201,), (1357926875,), (1357926731,), (1357926790,), (1357926852,), (1357927087,), (1357927136,), (1357927179,), (1357927350,), (1357927375,), (1357927671,), (1357927672,), (1357927677,), (1357928153,), (1357928180,), (1357928209,), (1357928421,), (1357928424,), (1357928427,), (1357928430,), (1357928434,), (1357928461,), (1357928900,), (1357928959,), (1357929016,), (1357929070,), (1357929382,), (1357929411,), (1357929470,), (1357929517,), (1357929689,), (1357929691,), (1357929694,), (1357929697,), (1357929724,), (1357929727,), (1357929731,), (1357929734,), (1357929737,), (1357929768,), (1357929771,), (1357934117,), (1357935074,), (1357935082,), (1357937562,), (1357937618,), (1357941053,), (1357941370,), (1357942087,), (1357942115,), (1357942162,), (1357942964,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13052025': {'nb_upload': 9, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22918939]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] map_info['map_portfolio_photo'] : {22918939: [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573]} final : True mtd_id 4302 list_pids : [1357835618, 1357835219, 1357835192, 1357835184, 1357835144, 1357835139, 1357835099, 1357835055, 1357833573] Looping around the photos to save general results len do output : 1 /22918939Didn'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, '2844685') ('4302', '22918939', '1357835618', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685') ('4302', None, None, None, None, None, None, None, '2844685') ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22918939', 'None', None, None, None, None, '2844685'), ('4302', '22918939', '1357835618', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835219', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835192', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835184', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835144', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835139', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835099', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357835055', None, None, None, None, None, '2844685'), ('4302', '22918939', '1357833573', None, None, None, None, None, '2844685')] time used for this insertion : 0.015831470489501953 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.557973623275757 time spend to save output : 0.016025781631469727 total time spend for step 5 : 4.573999404907227 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 (2844685) 2.11user 2.09system 0:12.73elapsed 33%CPU (0avgtext+0avgdata 160004maxresident)k 200inputs+5976outputs (6major+79637minor)pagefaults 0swaps