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 : 3242433 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 (2924650) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2924650) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083052 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2924650'] with mtr_portfolio_ids : ['23083052'] and first list_photo_ids : [] new path : /proc/3242433/ Name: python3 Umask: 0002 State: R (running) Tgid: 3242433 Ngid: 0 Pid: 3242433 PPid: 3242432 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3242433 NSpid: 3242433 NSpgid: 3237473 NSsid: 3237473 VmPeak: 1107216 kB VmSize: 1107216 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98976 kB VmRSS: 98976 kB RssAnon: 60208 kB RssFile: 38768 kB RssShmem: 0 kB VmData: 865964 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 73 nonvoluntary_ctxt_switches: 160 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3242433', 'Ngid': '0', 'Pid': '3242433', 'PPid': '3242432', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3242433', 'NSpid': '3242433', 'NSpgid': '3237473', 'NSsid': '3237473', 'VmPeak': '1107216 kB', 'VmSize': '1107216 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98976 kB', 'VmRSS': '98976 kB', 'RssAnon': '60208 kB', 'RssFile': '38768 kB', 'RssShmem': '0 kB', 'VmData': '865964 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '73', 'nonvoluntary_ctxt_switches': '160'} ('datou_batch_current', '3242433', '1107216', '0', '1107216', '865964', '98976', b'', 'marlene', '2924650') 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 (23083052) 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 (2924650 ) ) 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 (23083052) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1359063856, 'portfolio_id': 23083052}, {'photo_id': 1359063701, 'portfolio_id': 23083052}, {'photo_id': 1359063698, 'portfolio_id': 23083052}, {'photo_id': 1359063553, 'portfolio_id': 23083052}, {'photo_id': 1359063390, 'portfolio_id': 23083052}, {'photo_id': 1359063322, 'portfolio_id': 23083052}, {'photo_id': 1359063317, 'portfolio_id': 23083052}, {'photo_id': 1359063255, 'portfolio_id': 23083052}, {'photo_id': 1359063250, 'portfolio_id': 23083052}, {'photo_id': 1359063245, 'portfolio_id': 23083052}] map_portfolio_id_photo_id: {23083052: [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245]} ##### 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.021506309509277344 #### 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 21 15:41:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23083052) 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 : 23083052 get user id for portfolio 23083052 get sub ptf for main ptf 23083052, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'flou', 'papier', 'plastique', 'Carton_gris', 'Carton_brun', 'metal', 'kraft', 'autre_refus', 'mal_croppe', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23083052 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','Carton_brun','metal','kraft','autre_refus','mal_croppe','environnement')) 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`=23083052 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','Carton_brun','metal','kraft','autre_refus','mal_croppe','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23083052, 'sub_port_id': 23083060, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403606, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'flou': {'main_port_id': 23083052, 'sub_port_id': 23083061, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403607, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'plastique': {'main_port_id': 23083052, 'sub_port_id': 23083062, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403608, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'environnement': {'main_port_id': 23083052, 'sub_port_id': 23083063, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403609, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'kraft': {'main_port_id': 23083052, 'sub_port_id': 23083064, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403610, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 23083052, 'sub_port_id': 23083065, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403611, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'autre_refus': {'main_port_id': 23083052, 'sub_port_id': 23083066, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403612, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'cartonnette': {'main_port_id': 23083052, 'sub_port_id': 23083067, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403613, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'metal': {'main_port_id': 23083052, 'sub_port_id': 23083068, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403614, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'Carton_brun': {'main_port_id': 23083052, 'sub_port_id': 23083069, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403615, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'mal_croppe': {'main_port_id': 23083052, 'sub_port_id': 23083070, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403616, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}, 'papier': {'main_port_id': 23083052, 'sub_port_id': 23083071, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403617, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23083060 , 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=23083052 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 (23083060) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083061 , 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=23083052 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 (23083061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083062 , 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=23083052 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 (23083062) result : ((1359962262,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083063 , 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=23083052 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 (23083063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083064 , 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=23083052 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 (23083064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083065 , 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=23083052 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 (23083065) result : ((1359962246,), (1359962247,), (1359962248,), (1359962249,), (1359962250,), (1359962251,), (1359962252,), (1359962253,), (1359962254,), (1359962255,), (1359962256,), (1359962257,), (1359962258,), (1359962259,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083066 , 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=23083052 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 (23083066) result : ((1359962260,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083067 , 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=23083052 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 (23083067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083068 , 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=23083052 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 (23083068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083069 , 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=23083052 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 (23083069) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083070 , 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=23083052 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 (23083070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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 23083071 , 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=23083052 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 (23083071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23083052) result : ((1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,)) 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`=23083052 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','Carton_brun','metal','kraft','autre_refus','mal_croppe','environnement')) 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`=23083052 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','flou','papier','plastique','Carton_gris','Carton_brun','metal','kraft','autre_refus','mal_croppe','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23083052, 'sub_port_id': 23083073, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403618, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'flou': {'main_port_id': 23083052, 'sub_port_id': 23083074, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403619, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'plastique': {'main_port_id': 23083052, 'sub_port_id': 23083075, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403620, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'environnement': {'main_port_id': 23083052, 'sub_port_id': 23083076, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403621, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'kraft': {'main_port_id': 23083052, 'sub_port_id': 23083077, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403622, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 23083052, 'sub_port_id': 23083078, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403623, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'autre_refus': {'main_port_id': 23083052, 'sub_port_id': 23083079, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403624, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'cartonnette': {'main_port_id': 23083052, 'sub_port_id': 23083080, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403625, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'metal': {'main_port_id': 23083052, 'sub_port_id': 23083081, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403626, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'Carton_brun': {'main_port_id': 23083052, 'sub_port_id': 23083082, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403627, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'mal_croppe': {'main_port_id': 23083052, 'sub_port_id': 23083083, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403628, 'last_updated_at': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 21, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}, 'papier': {'main_port_id': 23083052, 'sub_port_id': 23083084, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15403629, 'last_updated_at': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_desc': datetime.datetime(2025, 5, 21, 5, 57, 10), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 21, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23083084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23083071 lien utilise dans velours : https://www.fotonower.com/velours/23083073,23083074,23083075,23083076,23083077,23083078,23083079,23083080,23083081,23083082,23083083,23083084?tags=Carton_gris,flou,plastique,environnement,kraft,Teint_Dans_La_Masse,autre_refus,cartonnette,metal,Carton_brun,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23083052]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] map_info['map_portfolio_photo'] : {23083052: [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245]} final : False mtd_id 4302 list_pids : [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] Looping around the photos to save general results len do output : 1 /23083052. 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, '2924650') ('4302', '23083052', '1359063856', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '23083052', "{'Carton_gris': 23083060, 'flou': 23083061, 'plastique': 23083062, 'environnement': 23083063, 'kraft': 23083064, 'Teint_Dans_La_Masse': 23083065, 'autre_refus': 23083066, 'cartonnette': 23083067, 'metal': 23083068, 'Carton_brun': 23083069, 'mal_croppe': 23083070, 'papier': 23083071}", None, None, None, None, '2924650'), ('4302', '23083052', '1359063856', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650')] time used for this insertion : 0.014739990234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3792498111724854 time spend to save output : 0.01521444320678711 total time spend for step 1 : 1.3944642543792725 step2:final Wed May 21 15:41:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (23083052) 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 23083052 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1359063255,1359063250,1359063245,1359063322,1359063317,1359063390,1359063553,1359063701,1359063698,1359063856); 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([23083052]) Inside saveOutput : final : False verbose : True original output for save of step final : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} new output for save of step final : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] map_info['map_portfolio_photo'] : {23083052: [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245]} final : False mtd_id 4302 list_pids : [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] Looping around the photos to save general results len do output : 10 /1359063856.Didn't retrieve data . /1359063701.Didn't retrieve data . /1359063698.Didn't retrieve data . /1359063553.Didn't retrieve data . /1359063390.Didn't retrieve data . /1359063322.Didn't retrieve data . /1359063317.Didn't retrieve data . /1359063255.Didn't retrieve data . /1359063250.Didn't retrieve data . /1359063245.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, '2924650') ('4302', '23083052', '1359063856', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '23083052', '1359063856', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063701', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063698', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063553', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063390', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063322', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063317', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063255', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063250', '0.03301091073471508', None, None, None, None, '2924650'), ('4302', '23083052', '1359063245', '0.03301091073471508', None, None, None, None, '2924650')] time used for this insertion : 0.013702392578125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06254315376281738 time spend to save output : 0.014232158660888672 total time spend for step 2 : 0.07677531242370605 step3:velours_tree Wed May 21 15:41:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23083052: [{'Carton_gris': 23083060, 'flou': 23083061, 'plastique': 23083062, 'environnement': 23083063, 'kraft': 23083064, 'Teint_Dans_La_Masse': 23083065, 'autre_refus': 23083066, 'cartonnette': 23083067, 'metal': 23083068, 'Carton_brun': 23083069, 'mal_croppe': 23083070, 'papier': 23083071}]} input_args_next_step : {23083052: ()} output_args : {23083052: [{'Carton_gris': 23083060, 'flou': 23083061, 'plastique': 23083062, 'environnement': 23083063, 'kraft': 23083064, 'Teint_Dans_La_Masse': 23083065, 'autre_refus': 23083066, 'cartonnette': 23083067, 'metal': 23083068, 'Carton_brun': 23083069, 'mal_croppe': 23083070, 'papier': 23083071}]} args : 23083052 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 23083060, 'flou': 23083061, 'plastique': 23083062, 'environnement': 23083063, 'kraft': 23083064, 'Teint_Dans_La_Masse': 23083065, 'autre_refus': 23083066, 'cartonnette': 23083067, 'metal': 23083068, 'Carton_brun': 23083069, 'mal_croppe': 23083070, 'papier': 23083071},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23083052) 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([23083052]) 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.3382689952850342 time spend to save output : 8.177757263183594e-05 total time spend for step 3 : 0.338350772857666 step4:send_mail_cod Wed May 21 15:42:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} input_args_next_step : {1359063856: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063856 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063701 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063698 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063553 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063390 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063322 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063317 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063255 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063250 depend.output_id : 0 input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ()} output_args : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',)} args : 1359063245 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 : {23083052: [{'Carton_gris': 23083060, 'flou': 23083061, 'plastique': 23083062, 'environnement': 23083063, 'kraft': 23083064, 'Teint_Dans_La_Masse': 23083065, 'autre_refus': 23083066, 'cartonnette': 23083067, 'metal': 23083068, 'Carton_brun': 23083069, 'mal_croppe': 23083070, 'papier': 23083071}]} input_args_next_step : {1359063856: ('0.03301091073471508',), 1359063701: ('0.03301091073471508',), 1359063698: ('0.03301091073471508',), 1359063553: ('0.03301091073471508',), 1359063390: ('0.03301091073471508',), 1359063322: ('0.03301091073471508',), 1359063317: ('0.03301091073471508',), 1359063255: ('0.03301091073471508',), 1359063250: ('0.03301091073471508',), 1359063245: ('0.03301091073471508',), 23083052: ()} output_args : {23083052: [{'Carton_gris': 23083060, 'flou': 23083061, 'plastique': 23083062, 'environnement': 23083063, 'kraft': 23083064, 'Teint_Dans_La_Masse': 23083065, 'autre_refus': 23083066, 'cartonnette': 23083067, 'metal': 23083068, 'Carton_brun': 23083069, 'mal_croppe': 23083070, 'papier': 23083071}]} args : 23083052 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 :11, first value : ('0.03301091073471508',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23083052) 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 (1359063856,1359063701,1359063698,1359063553,1359063390,1359063322,1359063317,1359063255,1359063250,1359063245) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1359063245 begin to download photo : 1359063317 begin to download photo : 1359063553 begin to download photo : 1359063856 download finish for photo 1359063856 download finish for photo 1359063317 begin to download photo : 1359063322 download finish for photo 1359063245 begin to download photo : 1359063250 download finish for photo 1359063553 begin to download photo : 1359063698 download finish for photo 1359063250 begin to download photo : 1359063255 download finish for photo 1359063698 begin to download photo : 1359063701 download finish for photo 1359063322 begin to download photo : 1359063390 download finish for photo 1359063255 download finish for photo 1359063701 download finish for photo 1359063390 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette230830611747834920/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P23083052_21-05-2025_15_42_00.pdf 23083061 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=23083061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830611747834920 23083062 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=23083062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359962262: '1747799737_1197599_1359063698_2ed0b50a589519cfd8631e0c390cd562_rle_crop_3807280660_0.png'} change filename to text .imagette230830621747834920/ imagette230830621747834920/1747799737_1197599_1359063698_2ed0b50a589519cfd8631e0c390cd562_rle_crop_3807280660_0.png.png imagette230830641747834920/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/e62b55e5c299b9ff4c567f7cf58ea339_30525912.png imagette230830621747834920 23083064 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=23083064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830641747834920 23083066 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=23083066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359962260: '1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280637_0.png'} change filename to text .imagette230830661747834920/ imagette230830661747834920/1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280637_0.png.png imagette230830671747834921/ imagette230830681747834921/ imagette230830701747834921/ imagette230830601747834921/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/f774ba68be8631699759eb4c6c7219a6_11558703.png imagette230830661747834920 23083067 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=23083067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830671747834921 23083068 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=23083068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830681747834921 23083070 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=23083070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830701747834921 23083060 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=23083060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830601747834921 23083065 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=23083065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359962246: '1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280645_0.png', 1359962247: '1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280646_0.png', 1359962248: '1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280638_0.png', 1359962249: '1747799737_1197599_1359063390_abee6543747836242986de408e57c617_rle_crop_3807281587_0.png', 1359962250: '1747799737_1197599_1359063322_3f6e2f97c780df746d8bc43773ade816_rle_crop_3807281599_0.png', 1359962251: '1747799737_1197599_1359063322_3f6e2f97c780df746d8bc43773ade816_rle_crop_3807281600_0.png', 1359962252: '1747799737_1197599_1359063317_d62906779572b95d6a217ae6594d4075_rle_crop_3807281613_0.png', 1359962253: '1747799737_1197599_1359063255_53ac409f44b7444776a110cbe3aac357_rle_crop_3807281625_0.png', 1359962254: '1747799737_1197599_1359063255_53ac409f44b7444776a110cbe3aac357_rle_crop_3807281622_0.png', 1359962255: '1747799737_1197599_1359063255_53ac409f44b7444776a110cbe3aac357_rle_crop_3807281624_0.png', 1359962256: '1747799737_1197599_1359063250_f577cb615e83613e36b23d09e4050592_rle_crop_3807281640_0.png', 1359962257: '1747799737_1197599_1359063250_f577cb615e83613e36b23d09e4050592_rle_crop_3807281635_0.png', 1359962258: '1747799737_1197599_1359063245_b7285ebe5d96e56807c9b6baaa27e45b_rle_crop_3807281754_0.png', 1359962259: '1747799737_1197599_1359063245_b7285ebe5d96e56807c9b6baaa27e45b_rle_crop_3807281749_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/ce6b0fdb34de44ee52ecf0a928b39117_33265165.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/2d8b81afc4832fd5a76de8e192333a6f_11430853.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/f5eb9e0739b91b0c81d548b9a8181e9a_54063582.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/b1aff389539a5e23f192a1e3f8e73d98_3083767.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/9857546f6b0ce0355db463b2bed0cfd1_57102420.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/de7a76b6ce5c4e4cfbaaf4fb760b2d51_13034080.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/056d469f5e2ee1fb813b1b452ed476f9_42996388.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/c2aca12a8d67a804309d1c1bc6d04075_80893608.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/13a3aa4ba0b80d8ec75c391bc02ca242_86195905.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/a79558eb32aff7b9adc1c59e54eb747b_97897186.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/4bd05d03eecfc890d0ca1628ef783156_34770495.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/ae2e87f9fd21b6a8dc54a901583af2fd_93626207.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/f57388025a754b14c55f09ca6fccc220_44550865.png change filename to text .imagette230830651747834921/ imagette230830651747834921/1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280638_0.png.png imagette230830651747834921/1747799737_1197599_1359063245_b7285ebe5d96e56807c9b6baaa27e45b_rle_crop_3807281754_0.png.png imagette230830651747834921/1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280645_0.png.png imagette230830651747834921/1747799737_1197599_1359063322_3f6e2f97c780df746d8bc43773ade816_rle_crop_3807281599_0.png.png imagette230830651747834921/1747799737_1197599_1359063322_3f6e2f97c780df746d8bc43773ade816_rle_crop_3807281600_0.png.png imagette230830651747834921/1747799737_1197599_1359063250_f577cb615e83613e36b23d09e4050592_rle_crop_3807281640_0.png.png imagette230830651747834921/1747799737_1197599_1359063255_53ac409f44b7444776a110cbe3aac357_rle_crop_3807281625_0.png.png imagette230830651747834921/1747799737_1197599_1359063317_d62906779572b95d6a217ae6594d4075_rle_crop_3807281613_0.png.png imagette230830651747834921/1747799737_1197599_1359063856_16ef765316570ef8af3a2fe26e667bc1_rle_crop_3807280646_0.png.png imagette230830651747834921/1747799737_1197599_1359063390_abee6543747836242986de408e57c617_rle_crop_3807281587_0.png.png imagette230830651747834921/1747799737_1197599_1359063245_b7285ebe5d96e56807c9b6baaa27e45b_rle_crop_3807281749_0.png.png imagette230830651747834921/1747799737_1197599_1359063250_f577cb615e83613e36b23d09e4050592_rle_crop_3807281635_0.png.png imagette230830651747834921/1747799737_1197599_1359063255_53ac409f44b7444776a110cbe3aac357_rle_crop_3807281622_0.png.png imagette230830651747834921/1747799737_1197599_1359063255_53ac409f44b7444776a110cbe3aac357_rle_crop_3807281624_0.png.png imagette230830691747834922/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/21/faac4686d014b2d27c1ce7cb7af8a207_39347167.png imagette230830651747834921 23083069 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=23083069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230830691747834922 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23083052 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23083073,23083074,23083075,23083076,23083077,23083078,23083079,23083080,23083081,23083082,23083083,23083084?tags=Carton_gris,flou,plastique,environnement,kraft,Teint_Dans_La_Masse,autre_refus,cartonnette,metal,Carton_brun,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1359063856] : ('0.03301091073471508',) no score found for photo 1359063856 We are sending mail with results at report@fotonower.com args[1359063701] : ('0.03301091073471508',) no score found for photo 1359063701 We are sending mail with results at report@fotonower.com args[1359063698] : ('0.03301091073471508',) no score found for photo 1359063698 We are sending mail with results at report@fotonower.com args[1359063553] : ('0.03301091073471508',) no score found for photo 1359063553 We are sending mail with results at report@fotonower.com args[1359063390] : ('0.03301091073471508',) no score found for photo 1359063390 We are sending mail with results at report@fotonower.com args[1359063322] : ('0.03301091073471508',) no score found for photo 1359063322 We are sending mail with results at report@fotonower.com args[1359063317] : ('0.03301091073471508',) no score found for photo 1359063317 We are sending mail with results at report@fotonower.com args[1359063255] : ('0.03301091073471508',) no score found for photo 1359063255 We are sending mail with results at report@fotonower.com args[1359063250] : ('0.03301091073471508',) no score found for photo 1359063250 We are sending mail with results at report@fotonower.com args[1359063245] : ('0.03301091073471508',) no score found for photo 1359063245 We are sending mail with results at report@fotonower.com refus_total : 0.03301091073471508 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=23083052 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_P23083052_21-05-2025_15_42_00.pdf results_Auto_P23083052_21-05-2025_15_42_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083052_21-05-2025_15_42_00.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','23083052','results_Auto_P23083052_21-05-2025_15_42_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083052_21-05-2025_15_42_00.pdf','pdf','','0.14','0.03301091073471508') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23083052]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] map_info['map_portfolio_photo'] : {23083052: [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245]} final : False mtd_id 4302 list_pids : [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] 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, '2924650') ('4302', '23083052', '1359063856', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650') 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', '23083052', '1359063856', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650')] time used for this insertion : 0.01954054832458496 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6595475673675537 time spend to save output : 0.019794940948486328 total time spend for step 4 : 3.67934250831604 step5:split_time_score Wed May 21 15:42: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 : ['23083052'] 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 : [('23083052',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23083052) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1359063856: {'path': 'temp/1747834920_3242433_1359063856_16ef765316570ef8af3a2fe26e667bc1.jpg', 'extension': 'jpg'}, 1359063245: {'path': 'temp/1747834920_3242433_1359063245_b7285ebe5d96e56807c9b6baaa27e45b.jpg', 'extension': 'jpg'}, 1359063250: {'path': 'temp/1747834920_3242433_1359063250_f577cb615e83613e36b23d09e4050592.jpg', 'extension': 'jpg'}, 1359063255: {'path': 'temp/1747834920_3242433_1359063255_53ac409f44b7444776a110cbe3aac357.jpg', 'extension': 'jpg'}, 1359063553: {'path': 'temp/1747834920_3242433_1359063553_b362cd8005bab5d228b66680fbb5cb33.jpg', 'extension': 'jpg'}, 1359063698: {'path': 'temp/1747834920_3242433_1359063698_2ed0b50a589519cfd8631e0c390cd562.jpg', 'extension': 'jpg'}, 1359063701: {'path': 'temp/1747834920_3242433_1359063701_7f09fce733b56b1ce47a78a67042dcc3.jpg', 'extension': 'jpg'}, 1359063317: {'path': 'temp/1747834920_3242433_1359063317_d62906779572b95d6a217ae6594d4075.jpg', 'extension': 'jpg'}, 1359063322: {'path': 'temp/1747834920_3242433_1359063322_3f6e2f97c780df746d8bc43773ade816.jpg', 'extension': 'jpg'}, 1359063390: {'path': 'temp/1747834920_3242433_1359063390_abee6543747836242986de408e57c617.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 = 23083052; (('arc_en_ciel_jrm_bis',), ('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 = 23083052 group by h (('21', 10),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23083052 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 (23083052) 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 (23083052) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16052025 23083052 Nombre de photos uploadées : 10 / 23040 (0%) 16052025 23083052 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 16052025 23083052 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1359063255, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/53ac409f44b7444776a110cbe3aac357.jpg', 'username': None, 'uploaded_at': 1747423088, 'text': 'image_16052025_21_15_04_10148.jpg'}, {'photo_id': 1359063250, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/f577cb615e83613e36b23d09e4050592.jpg', 'username': None, 'uploaded_at': 1747423088, 'text': 'image_16052025_21_17_04_10156.jpg'}, {'photo_id': 1359063245, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/b7285ebe5d96e56807c9b6baaa27e45b.jpg', 'username': None, 'uploaded_at': 1747423088, 'text': 'image_16052025_21_17_15_10135.jpg'}, {'photo_id': 1359063322, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/3f6e2f97c780df746d8bc43773ade816.jpg', 'username': None, 'uploaded_at': 1747423207, 'text': 'image_16052025_21_17_54_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005419254302978516 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23083052, '2025-05-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1811648,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030580997467041016 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= 1811648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23034669, 'dashboard_result_id': 10673225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_17-05-2025_05_34_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23034677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034685, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23035427, 'dashboard_result_id': 10673226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23035432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23035433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23035434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23035435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23035436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23035437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23035439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23035440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23035441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23035442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23035443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23035444, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23036044, 'dashboard_result_id': 10673227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23036134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036145, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23036833, 'dashboard_result_id': 10673228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_17-05-2025_05_36_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23036919, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23038437, 'dashboard_result_id': 10673229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_17-05-2025_05_36_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038496, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23038906, 'dashboard_result_id': 10673230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038942, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23039239, 'dashboard_result_id': 10673231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_17-05-2025_05_37_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23039245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039256, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23039804, 'dashboard_result_id': 10673232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_17-05-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23039843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039852, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23040500, 'dashboard_result_id': 10673233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040566, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23040950, 'dashboard_result_id': 10673234, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_17-05-2025_05_39_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040962, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23041439, 'dashboard_result_id': 10673235, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23041442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23041443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23041444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23041445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23041446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23041447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23041448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23041449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23041450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23041451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23041452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23041453, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23042042, 'dashboard_result_id': 10673236, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042108, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23042498, 'dashboard_result_id': 10673237, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_17-05-2025_05_40_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042519, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23042957, 'dashboard_result_id': 10673238, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_17-05-2025_05_41_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042982, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23043383, 'dashboard_result_id': 10673239, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_17-05-2025_05_41_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23043402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23043403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23043404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23043405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23043406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23043407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23043408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23043409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23043410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23043411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23043412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23043413, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23044975, 'dashboard_result_id': 10673240, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_17-05-2025_05_42_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23044976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23044977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23044978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23044979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23044980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23044981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23044982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23044983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23044984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23044985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23044986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23044987, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23045316, 'dashboard_result_id': 10673241, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23045327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045334, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23045567, 'dashboard_result_id': 10673242, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_17-05-2025_05_43_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23045589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045601, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23046128, 'dashboard_result_id': 10673243, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_17-05-2025_05_44_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046141, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23046584, 'dashboard_result_id': 10673244, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046612, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23047224, 'dashboard_result_id': 10673245, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_17-05-2025_05_45_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23047225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23047226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23047227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23047228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23047229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23047230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23047231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23047232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23047233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23047234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23047235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23047236, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23048039, 'dashboard_result_id': 10673246, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048051, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23048561, 'dashboard_result_id': 10673247, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048587, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23049144, 'dashboard_result_id': 10673248, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049189, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23049841, 'dashboard_result_id': 10673249, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23050420, 'dashboard_result_id': 10673250, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23051264, 'dashboard_result_id': 10673251, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23051628, 'dashboard_result_id': 10673252, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23052259, 'dashboard_result_id': 10673253, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_17-05-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23052302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052313, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23052760, 'dashboard_result_id': 10673254, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_17-05-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23052783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052791, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23053317, 'dashboard_result_id': 10673255, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23053379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23053380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23053381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23053382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23053383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23053384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23053385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23053386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23053387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23053388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23053389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23053390, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23054976, 'dashboard_result_id': 10673256, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_17-05-2025_05_50_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23054978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23054979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23054980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23054981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23054982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23054983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23054984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23054985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23054986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23054987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23054988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23054989, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23055491, 'dashboard_result_id': 10673257, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_17-05-2025_05_50_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23055505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055516, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23055623, 'dashboard_result_id': 10673258, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_17-05-2025_05_51_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23056122, 'dashboard_result_id': 10673259, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23056830, 'dashboard_result_id': 10673260, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23057413, 'dashboard_result_id': 10673261, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_17-05-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23057852, 'dashboard_result_id': 10673262, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_17-05-2025_05_53_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057895, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23058362, 'dashboard_result_id': 10673263, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_17-05-2025_05_54_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23058391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058402, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23058889, 'dashboard_result_id': 10673264, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_17-05-2025_05_54_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23058911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058912, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23059524, 'dashboard_result_id': 10673265, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23059527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23059528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23059529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23059530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23059531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23059532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23059533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23059534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23059535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23059536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23059537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23059538, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23060185, 'dashboard_result_id': 10673266, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23060223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23060224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23060225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23060226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23060227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23060228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23060229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23060230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23060231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23060232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23060233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23060234, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23063337, 'dashboard_result_id': 10673267, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063354, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23063886, 'dashboard_result_id': 10673268, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_17-05-2025_05_56_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063911, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23064324, 'dashboard_result_id': 10673269, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23064345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23064346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23064347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23064348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23064349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23064350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23064351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23064352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23064353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23064354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23064355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23064356, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23065118, 'dashboard_result_id': 10673270, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_17-05-2025_05_57_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065179, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23065765, 'dashboard_result_id': 10673271, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065876, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23066570, 'dashboard_result_id': 10673272, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_17-05-2025_05_58_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23066585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23066586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23066587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23066588, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23066589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23066590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23066591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23066592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23066593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23066594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23066595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23066596, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23067395, 'dashboard_result_id': 10673273, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_17-05-2025_05_59_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23067414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23067415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23067416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23067417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23067418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23067419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23067420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23067421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23067422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23067423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23067424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23067425, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23068252, 'dashboard_result_id': 10673274, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_17-05-2025_05_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068328, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23068896, 'dashboard_result_id': 10673275, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068951, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23069601, 'dashboard_result_id': 10673276, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_17-05-2025_06_00_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23069654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23069655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23069656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23069657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23069658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23069659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23069660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23069661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23069662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23069663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23069664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23069665, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23070321, 'dashboard_result_id': 10673277, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_17-05-2025_06_01_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23070356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23070357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23070358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23070359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23070360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23070361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23070362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23070363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23070364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23070365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23070366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23070367, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23071284, 'dashboard_result_id': 10673278, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_17-05-2025_06_02_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23071326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23071327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23071328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23071329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23071330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23071332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23071333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23071334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23071335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23071336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23071337, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23071951, 'dashboard_result_id': 10673279, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_17-05-2025_06_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23072013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072014, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23072665, 'dashboard_result_id': 10673280, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_17-05-2025_06_03_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23072747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072759, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23073291, 'dashboard_result_id': 10673281, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23073321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23073322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23073323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23073324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23073325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23073327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23073328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23073329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23073330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23073331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23073332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23073333, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23074092, 'dashboard_result_id': 10673282, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_17-05-2025_06_04_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23074143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23074144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23074145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23074146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23074147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23074148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23074149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23074150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23074151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23074152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23074153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23074154, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23075621, 'dashboard_result_id': 10673283, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_17-05-2025_06_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23075650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23075651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23075652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23075653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23075654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23075655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23075656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23075657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23075658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23075659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23075660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23075661, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23076021, 'dashboard_result_id': 10673284, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_17-05-2025_06_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076047, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23076561, 'dashboard_result_id': 10673285, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076561_17-05-2025_06_06_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076581, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23077134, 'dashboard_result_id': 10673286, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077134_16-05-2025_19_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23077159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23077160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23077161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23077162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23077163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23077164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23077165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23077166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23077167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23077168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23077169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23077170, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23077853, 'dashboard_result_id': 10673287, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077853_16-05-2025_19_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23077867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23077868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23077869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23077870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23077871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23077872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23077873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23077874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23077875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23077876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23077877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23077878, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23078643, 'dashboard_result_id': 10673288, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23078643_16-05-2025_19_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23078654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23078655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23078656, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23078657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23078658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23078659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23078660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23078661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23078662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23078663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23078664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23078665, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23079331, 'dashboard_result_id': 10673289, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079331_17-05-2025_06_08_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23079399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23079400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23079401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23079402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23079403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23079404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23079405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23079406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23079407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23079408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23079409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23079410, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23079947, 'dashboard_result_id': 10673290, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079947_17-05-2025_06_08_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23080027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23080028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23080029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23080030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23080031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23080032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23080033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23080034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23080035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23080036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23080038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23080039, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23080664, 'dashboard_result_id': 10673291, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23080664_17-05-2025_06_09_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23080674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23080675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23080676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23080677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23080678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23080679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23080680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23080681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23080682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23080683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23080684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23080685, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23081255, 'dashboard_result_id': 10673292, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081255_17-05-2025_06_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23081279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23081280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23081281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23081282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23081283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23081284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23081285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23081286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23081287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23081288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23081289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23081290, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23081629, 'dashboard_result_id': 10673293, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081629_17-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23081712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23081713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23081714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23081715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23081716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23081717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23081718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23081719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23081720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23081721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23081722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23081723, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23082942, 'dashboard_result_id': 10673294, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23082942_21-05-2025_15_41_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23082950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23082951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23082952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23082953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23082954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23082955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23082956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23082957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23082958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23082959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23082960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23082961, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23083052, 'dashboard_result_id': 10673295, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083052_19-05-2025_16_49_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083071, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23083165, 'dashboard_result_id': 10673296, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083165_19-05-2025_16_50_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083205, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23083364, 'dashboard_result_id': 10673297, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083364_19-05-2025_16_50_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083383, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23083828, 'dashboard_result_id': 10673298, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083828_19-05-2025_16_51_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083844, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1824528, 'mtr_portfolio_id': 23083954, 'dashboard_result_id': 10673299, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083954_19-05-2025_16_51_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23083961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083972, '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 = 23034669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886615, 'mtr_portfolio_id': 23034669, 'created_at': datetime.datetime(2025, 5, 17, 5, 34, 31), 'result': '0.030408269339431825', 'result_long': None, 'result_double': None}] Qualite : 0.030408269339431825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23034669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_17-05-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23034669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_17-05-2025_05_34_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23034677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034685, 'pht': 3726}}" where mtr_portfolio_id = 23034669 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23034669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673225, 0.030408269339431825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034669_17-05-2025_05_34_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23034677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034685, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23035427 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886616, 'mtr_portfolio_id': 23035427, 'created_at': datetime.datetime(2025, 5, 17, 5, 35, 22), 'result': '0.04065973952393891', 'result_long': None, 'result_double': None}] Qualite : 0.04065973952393891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23035427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23035427 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23035432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23035433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23035434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23035435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23035436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23035437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23035439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23035440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23035441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23035442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23035443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23035444, 'pht': 3726}}" where mtr_portfolio_id = 23035427 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23035427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673226, 0.04065973952393891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23035427_16-05-2025_00_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23035432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23035433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23035434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23035435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23035436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23035437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23035439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23035440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23035441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23035442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23035443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23035444, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23036044 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886617, 'mtr_portfolio_id': 23036044, 'created_at': datetime.datetime(2025, 5, 17, 5, 35, 30), 'result': '0.038303831675049735', 'result_long': None, 'result_double': None}] Qualite : 0.038303831675049735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23036044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23036044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23036134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036145, 'pht': 3726}}" where mtr_portfolio_id = 23036044 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23036044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673227, 0.038303831675049735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036044_16-05-2025_00_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23036134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036145, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23036833 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886618, 'mtr_portfolio_id': 23036833, 'created_at': datetime.datetime(2025, 5, 17, 5, 36), 'result': '0.0390693727590687', 'result_long': None, 'result_double': None}] Qualite : 0.0390693727590687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23036833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_17-05-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23036833 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_17-05-2025_05_36_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23036919, 'pht': 3726}}" where mtr_portfolio_id = 23036833 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23036833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673228, 0.0390693727590687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23036833_17-05-2025_05_36_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23036908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23036909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23036910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23036911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23036912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23036913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23036914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23036915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23036916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23036917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23036918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23036919, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23038437 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886619, 'mtr_portfolio_id': 23038437, 'created_at': datetime.datetime(2025, 5, 17, 5, 36, 31), 'result': '0.0475338837560454', 'result_long': None, 'result_double': None}] Qualite : 0.0475338837560454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23038437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_17-05-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23038437 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_17-05-2025_05_36_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038496, 'pht': 3726}}" where mtr_portfolio_id = 23038437 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23038437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673229, 0.0475338837560454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038437_17-05-2025_05_36_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038496, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23038906 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886620, 'mtr_portfolio_id': 23038906, 'created_at': datetime.datetime(2025, 5, 17, 5, 37), 'result': '0.01614411674789348', 'result_long': None, 'result_double': None}] Qualite : 0.01614411674789348 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23038906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23038906 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038942, 'pht': 3726}}" where mtr_portfolio_id = 23038906 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23038906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673230, 0.01614411674789348, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23038906_16-05-2025_02_02_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23038931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23038932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23038933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23038934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23038935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23038936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23038937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23038938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23038939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23038940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23038941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23038942, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23039239 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886621, 'mtr_portfolio_id': 23039239, 'created_at': datetime.datetime(2025, 5, 17, 5, 37, 30), 'result': '0.06171723958834687', 'result_long': None, 'result_double': None}] Qualite : 0.06171723958834687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23039239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_17-05-2025_05_37_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23039239 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_17-05-2025_05_37_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23039245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039256, 'pht': 3726}}" where mtr_portfolio_id = 23039239 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23039239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673231, 0.06171723958834687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039239_17-05-2025_05_37_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23039245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039256, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23039804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886622, 'mtr_portfolio_id': 23039804, 'created_at': datetime.datetime(2025, 5, 17, 5, 37, 59), 'result': '0.057711566874693705', 'result_long': None, 'result_double': None}] Qualite : 0.057711566874693705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23039804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_17-05-2025_05_38_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23039804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_17-05-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23039843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039852, 'pht': 3726}}" where mtr_portfolio_id = 23039804 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23039804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673232, 0.057711566874693705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23039804_17-05-2025_05_38_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23039841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23039842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23039843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23039844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23039845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23039846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23039847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23039848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23039849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23039850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23039851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23039852, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23040500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886623, 'mtr_portfolio_id': 23040500, 'created_at': datetime.datetime(2025, 5, 17, 5, 38, 28), 'result': '0.03183850770521689', 'result_long': None, 'result_double': None}] Qualite : 0.03183850770521689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23040500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23040500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040566, 'pht': 3726}}" where mtr_portfolio_id = 23040500 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23040500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673233, 0.03183850770521689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040500_16-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040566, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23040950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886624, 'mtr_portfolio_id': 23040950, 'created_at': datetime.datetime(2025, 5, 17, 5, 38, 59), 'result': '0.05771032139085595', 'result_long': None, 'result_double': None}] Qualite : 0.05771032139085595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23040950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_17-05-2025_05_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23040950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_17-05-2025_05_39_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040962, 'pht': 3726}}" where mtr_portfolio_id = 23040950 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23040950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673234, 0.05771032139085595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23040950_17-05-2025_05_39_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23040951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23040952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23040953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23040954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23040955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23040956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23040957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23040958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23040959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23040960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23040961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23040962, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23041439 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886625, 'mtr_portfolio_id': 23041439, 'created_at': datetime.datetime(2025, 5, 17, 5, 39, 29), 'result': '0.08172177976061665', 'result_long': None, 'result_double': None}] Qualite : 0.08172177976061665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23041439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23041439 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23041442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23041443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23041444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23041445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23041446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23041447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23041448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23041449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23041450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23041451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23041452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23041453, 'pht': 3726}}" where mtr_portfolio_id = 23041439 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23041439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673235, 0.08172177976061665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23041439_16-05-2025_03_17_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23041442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23041443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23041444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23041445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23041446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23041447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23041448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23041449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23041450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23041451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23041452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23041453, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042042 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886626, 'mtr_portfolio_id': 23042042, 'created_at': datetime.datetime(2025, 5, 17, 5, 39, 56), 'result': '0.05005765157223378', 'result_long': None, 'result_double': None}] Qualite : 0.05005765157223378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23042042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23042042 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042108, 'pht': 3726}}" where mtr_portfolio_id = 23042042 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23042042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673236, 0.05005765157223378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042042_16-05-2025_03_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042100, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042108, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042498 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886627, 'mtr_portfolio_id': 23042498, 'created_at': datetime.datetime(2025, 5, 17, 5, 40, 30), 'result': '0.016305641155885425', 'result_long': None, 'result_double': None}] Qualite : 0.016305641155885425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23042498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_17-05-2025_05_40_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23042498 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_17-05-2025_05_40_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042519, 'pht': 3726}}" where mtr_portfolio_id = 23042498 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23042498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673237, 0.016305641155885425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042498_17-05-2025_05_40_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042519, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23042957 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886628, 'mtr_portfolio_id': 23042957, 'created_at': datetime.datetime(2025, 5, 17, 5, 41, 1), 'result': '0.026329555095983417', 'result_long': None, 'result_double': None}] Qualite : 0.026329555095983417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23042957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_17-05-2025_05_41_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23042957 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_17-05-2025_05_41_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042982, 'pht': 3726}}" where mtr_portfolio_id = 23042957 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23042957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673238, 0.026329555095983417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23042957_17-05-2025_05_41_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23042970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23042971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23042972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23042973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23042974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23042975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23042976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23042977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23042978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23042979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23042981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23042982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23043383 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886629, 'mtr_portfolio_id': 23043383, 'created_at': datetime.datetime(2025, 5, 17, 5, 41, 30), 'result': '0.05602535303021436', 'result_long': None, 'result_double': None}] Qualite : 0.05602535303021436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23043383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_17-05-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23043383 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_17-05-2025_05_41_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23043402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23043403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23043404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23043405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23043406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23043407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23043408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23043409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23043410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23043411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23043412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23043413, 'pht': 3726}}" where mtr_portfolio_id = 23043383 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23043383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673239, 0.05602535303021436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23043383_17-05-2025_05_41_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23043402, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23043403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23043404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23043405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23043406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23043407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23043408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23043409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23043410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23043411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23043412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23043413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23044975 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886630, 'mtr_portfolio_id': 23044975, 'created_at': datetime.datetime(2025, 5, 17, 5, 42), 'result': '0.06561883923894966', 'result_long': None, 'result_double': None}] Qualite : 0.06561883923894966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23044975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_17-05-2025_05_42_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23044975 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_17-05-2025_05_42_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23044976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23044977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23044978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23044979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23044980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23044981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23044982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23044983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23044984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23044985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23044986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23044987, 'pht': 3726}}" where mtr_portfolio_id = 23044975 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23044975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673240, 0.06561883923894966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23044975_17-05-2025_05_42_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23044976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23044977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23044978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23044979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23044980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23044981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23044982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23044983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23044984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23044985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23044986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23044987, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23045316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886631, 'mtr_portfolio_id': 23045316, 'created_at': datetime.datetime(2025, 5, 17, 5, 42, 29), 'result': '0.06095157340458185', 'result_long': None, 'result_double': None}] Qualite : 0.06095157340458185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23045316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23045316 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23045327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045334, 'pht': 3726}}" where mtr_portfolio_id = 23045316 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23045316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673241, 0.06095157340458185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045316_16-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23045327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045334, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23045567 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886632, 'mtr_portfolio_id': 23045567, 'created_at': datetime.datetime(2025, 5, 17, 5, 43, 29), 'result': '0.05325363394324489', 'result_long': None, 'result_double': None}] Qualite : 0.05325363394324489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23045567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_17-05-2025_05_43_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23045567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_17-05-2025_05_43_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23045589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045601, 'pht': 3726}}" where mtr_portfolio_id = 23045567 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23045567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673242, 0.05325363394324489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23045567_17-05-2025_05_43_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23045589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23045590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23045591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23045592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23045593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23045594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23045595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23045596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23045597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23045599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23045600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23045601, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23046128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886633, 'mtr_portfolio_id': 23046128, 'created_at': datetime.datetime(2025, 5, 17, 5, 43, 58), 'result': '0.04647212703348617', 'result_long': None, 'result_double': None}] Qualite : 0.04647212703348617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23046128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_17-05-2025_05_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23046128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_17-05-2025_05_44_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046141, 'pht': 3726}}" where mtr_portfolio_id = 23046128 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23046128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673243, 0.04647212703348617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046128_17-05-2025_05_44_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046141, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23046584 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886634, 'mtr_portfolio_id': 23046584, 'created_at': datetime.datetime(2025, 5, 17, 5, 44, 29), 'result': '0.04494907432592207', 'result_long': None, 'result_double': None}] Qualite : 0.04494907432592207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23046584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23046584 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046612, 'pht': 3726}}" where mtr_portfolio_id = 23046584 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23046584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673244, 0.04494907432592207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23046584_16-05-2025_06_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23046601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23046602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23046603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23046604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23046605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23046606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23046607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23046608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23046609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23046610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23046611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23046612, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23047224 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886635, 'mtr_portfolio_id': 23047224, 'created_at': datetime.datetime(2025, 5, 17, 5, 44, 56), 'result': '0.03640121564394253', 'result_long': None, 'result_double': None}] Qualite : 0.03640121564394253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23047224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_17-05-2025_05_45_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23047224 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_17-05-2025_05_45_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23047225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23047226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23047227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23047228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23047229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23047230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23047231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23047232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23047233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23047234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23047235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23047236, 'pht': 3726}}" where mtr_portfolio_id = 23047224 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23047224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673245, 0.03640121564394253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23047224_17-05-2025_05_45_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23047225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23047226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23047227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23047228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23047229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23047230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23047231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23047232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23047233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23047234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23047235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23047236, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23048039 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886636, 'mtr_portfolio_id': 23048039, 'created_at': datetime.datetime(2025, 5, 17, 5, 45, 29), 'result': '0.04777605323740214', 'result_long': None, 'result_double': None}] Qualite : 0.04777605323740214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23048039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23048039 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048051, 'pht': 3726}}" where mtr_portfolio_id = 23048039 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23048039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673246, 0.04777605323740214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048039_16-05-2025_06_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048051, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23048561 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886637, 'mtr_portfolio_id': 23048561, 'created_at': datetime.datetime(2025, 5, 17, 5, 45, 59), 'result': '0.05048789174272477', 'result_long': None, 'result_double': None}] Qualite : 0.05048789174272477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23048561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23048561 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048587, 'pht': 3726}}" where mtr_portfolio_id = 23048561 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23048561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673247, 0.05048789174272477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23048561_16-05-2025_07_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23048576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23048577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23048578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23048579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23048580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23048581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23048582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23048583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23048584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23048585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23048586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23048587, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049144 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886638, 'mtr_portfolio_id': 23049144, 'created_at': datetime.datetime(2025, 5, 17, 5, 46, 31), 'result': '0.04556159831447653', 'result_long': None, 'result_double': None}] Qualite : 0.04556159831447653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23049144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23049144 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049189, 'pht': 3726}}" where mtr_portfolio_id = 23049144 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23049144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673248, 0.04556159831447653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049144_16-05-2025_07_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049841 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886639, 'mtr_portfolio_id': 23049841, 'created_at': datetime.datetime(2025, 5, 17, 5, 47), 'result': '0.03443461089706494', 'result_long': None, 'result_double': None}] Qualite : 0.03443461089706494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23049841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23049841 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}" where mtr_portfolio_id = 23049841 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23049841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673249, 0.03443461089706494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23050420 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886640, 'mtr_portfolio_id': 23050420, 'created_at': datetime.datetime(2025, 5, 17, 5, 47, 30), 'result': '0.06760941444153168', 'result_long': None, 'result_double': None}] Qualite : 0.06760941444153168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23050420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23050420 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}" where mtr_portfolio_id = 23050420 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23050420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673250, 0.06760941444153168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23051264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886641, 'mtr_portfolio_id': 23051264, 'created_at': datetime.datetime(2025, 5, 17, 5, 47, 59), 'result': '0.029024842091629643', 'result_long': None, 'result_double': None}] Qualite : 0.029024842091629643 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23051264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23051264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}" where mtr_portfolio_id = 23051264 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23051264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673251, 0.029024842091629643, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23051628 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886642, 'mtr_portfolio_id': 23051628, 'created_at': datetime.datetime(2025, 5, 17, 5, 48, 30), 'result': '0.017868983666606372', 'result_long': None, 'result_double': None}] Qualite : 0.017868983666606372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23051628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23051628 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}" where mtr_portfolio_id = 23051628 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23051628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673252, 0.017868983666606372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23052259 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886643, 'mtr_portfolio_id': 23052259, 'created_at': datetime.datetime(2025, 5, 17, 5, 48, 58), 'result': '0.026692555568140933', 'result_long': None, 'result_double': None}] Qualite : 0.026692555568140933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23052259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_17-05-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23052259 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_17-05-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23052302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052313, 'pht': 3726}}" where mtr_portfolio_id = 23052259 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23052259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673253, 0.026692555568140933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052259_17-05-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23052302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052313, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23052760 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886644, 'mtr_portfolio_id': 23052760, 'created_at': datetime.datetime(2025, 5, 17, 5, 49, 30), 'result': '0.03420566508965558', 'result_long': None, 'result_double': None}] Qualite : 0.03420566508965558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23052760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_17-05-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23052760 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_17-05-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23052783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052791, 'pht': 3726}}" where mtr_portfolio_id = 23052760 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23052760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673254, 0.03420566508965558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23052760_17-05-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23052779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23052780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23052781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23052782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23052783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23052784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23052785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23052787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23052788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23052789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23052790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23052791, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23053317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886645, 'mtr_portfolio_id': 23053317, 'created_at': datetime.datetime(2025, 5, 17, 5, 50, 1), 'result': '0.030851147997573887', 'result_long': None, 'result_double': None}] Qualite : 0.030851147997573887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23053317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23053317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23053379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23053380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23053381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23053382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23053383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23053384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23053385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23053386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23053387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23053388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23053389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23053390, 'pht': 3726}}" where mtr_portfolio_id = 23053317 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23053317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673255, 0.030851147997573887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23053317_16-05-2025_09_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23053379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23053380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23053381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23053382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23053383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23053384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23053385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23053386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23053387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23053388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23053389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23053390, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23054976 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886646, 'mtr_portfolio_id': 23054976, 'created_at': datetime.datetime(2025, 5, 17, 5, 50, 30), 'result': '0.041438533522989505', 'result_long': None, 'result_double': None}] Qualite : 0.041438533522989505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23054976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_17-05-2025_05_50_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23054976 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_17-05-2025_05_50_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23054978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23054979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23054980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23054981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23054982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23054983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23054984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23054985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23054986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23054987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23054988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23054989, 'pht': 3726}}" where mtr_portfolio_id = 23054976 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23054976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673256, 0.041438533522989505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23054976_17-05-2025_05_50_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23054978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23054979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23054980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23054981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23054982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23054983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23054984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23054985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23054986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23054987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23054988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23054989, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886647, 'mtr_portfolio_id': 23055491, 'created_at': datetime.datetime(2025, 5, 17, 5, 50, 56), 'result': '0.03753325832106413', 'result_long': None, 'result_double': None}] Qualite : 0.03753325832106413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23055491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_17-05-2025_05_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23055491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_17-05-2025_05_50_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23055505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055516, 'pht': 3726}}" where mtr_portfolio_id = 23055491 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23055491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673257, 0.03753325832106413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055491_17-05-2025_05_50_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23055505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055516, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055623 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886648, 'mtr_portfolio_id': 23055623, 'created_at': datetime.datetime(2025, 5, 17, 5, 51, 28), 'result': '0.07484160035272094', 'result_long': None, 'result_double': None}] Qualite : 0.07484160035272094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23055623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_17-05-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23055623 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_17-05-2025_05_51_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}" where mtr_portfolio_id = 23055623 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23055623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673258, 0.07484160035272094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_17-05-2025_05_51_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23056122 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886649, 'mtr_portfolio_id': 23056122, 'created_at': datetime.datetime(2025, 5, 17, 5, 51, 59), 'result': '0.02939661649539445', 'result_long': None, 'result_double': None}] Qualite : 0.02939661649539445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23056122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23056122 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}" where mtr_portfolio_id = 23056122 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23056122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673259, 0.02939661649539445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23056830 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886650, 'mtr_portfolio_id': 23056830, 'created_at': datetime.datetime(2025, 5, 17, 5, 52, 32), 'result': '0.08722601268207716', 'result_long': None, 'result_double': None}] Qualite : 0.08722601268207716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23056830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23056830 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}" where mtr_portfolio_id = 23056830 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23056830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673260, 0.08722601268207716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23057413 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886651, 'mtr_portfolio_id': 23057413, 'created_at': datetime.datetime(2025, 5, 17, 5, 52, 59), 'result': '0.06209180995574998', 'result_long': None, 'result_double': None}] Qualite : 0.06209180995574998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23057413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_17-05-2025_05_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23057413 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_17-05-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}" where mtr_portfolio_id = 23057413 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23057413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673261, 0.06209180995574998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_17-05-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23057852 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886652, 'mtr_portfolio_id': 23057852, 'created_at': datetime.datetime(2025, 5, 17, 5, 53, 30), 'result': '0.05654936795273783', 'result_long': None, 'result_double': None}] Qualite : 0.05654936795273783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23057852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_17-05-2025_05_53_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23057852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_17-05-2025_05_53_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057895, 'pht': 3726}}" where mtr_portfolio_id = 23057852 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23057852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673262, 0.05654936795273783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057852_17-05-2025_05_53_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057895, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23058362 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886653, 'mtr_portfolio_id': 23058362, 'created_at': datetime.datetime(2025, 5, 17, 5, 53, 57), 'result': '0.051272700767594014', 'result_long': None, 'result_double': None}] Qualite : 0.051272700767594014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23058362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_17-05-2025_05_54_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23058362 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_17-05-2025_05_54_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23058391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058402, 'pht': 3726}}" where mtr_portfolio_id = 23058362 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23058362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673263, 0.051272700767594014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058362_17-05-2025_05_54_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23058391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058402, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23058889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886654, 'mtr_portfolio_id': 23058889, 'created_at': datetime.datetime(2025, 5, 17, 5, 54, 28), 'result': '0.0542414347409089', 'result_long': None, 'result_double': None}] Qualite : 0.0542414347409089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23058889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_17-05-2025_05_54_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23058889 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_17-05-2025_05_54_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23058911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058912, 'pht': 3726}}" where mtr_portfolio_id = 23058889 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23058889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673264, 0.0542414347409089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23058889_17-05-2025_05_54_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23058901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23058902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23058903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23058904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23058905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23058906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23058907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23058908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23058909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23058910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23058911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23058912, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23059524 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886655, 'mtr_portfolio_id': 23059524, 'created_at': datetime.datetime(2025, 5, 17, 5, 54, 59), 'result': '0.08567297084211593', 'result_long': None, 'result_double': None}] Qualite : 0.08567297084211593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23059524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23059524 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23059527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23059528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23059529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23059530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23059531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23059532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23059533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23059534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23059535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23059536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23059537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23059538, 'pht': 3726}}" where mtr_portfolio_id = 23059524 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23059524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673265, 0.08567297084211593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23059524_16-05-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23059527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23059528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23059529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23059530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23059531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23059532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23059533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23059534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23059535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23059536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23059537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23059538, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23060185 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886657, 'mtr_portfolio_id': 23060185, 'created_at': datetime.datetime(2025, 5, 17, 5, 55, 31), 'result': '0.07107852443627917', 'result_long': None, 'result_double': None}] Qualite : 0.07107852443627917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23060185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23060185 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23060223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23060224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23060225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23060226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23060227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23060228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23060229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23060230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23060231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23060232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23060233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23060234, 'pht': 3726}}" where mtr_portfolio_id = 23060185 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23060185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673266, 0.07107852443627917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23060185_16-05-2025_18_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23060223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23060224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23060225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23060226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23060227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23060228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23060229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23060230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23060231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23060232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23060233, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23060234, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23063337 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886658, 'mtr_portfolio_id': 23063337, 'created_at': datetime.datetime(2025, 5, 17, 5, 55, 59), 'result': '0.06554513557668783', 'result_long': None, 'result_double': None}] Qualite : 0.06554513557668783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23063337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23063337 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063354, 'pht': 3726}}" where mtr_portfolio_id = 23063337 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23063337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673267, 0.06554513557668783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063337_16-05-2025_13_49_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063354, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23063886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886659, 'mtr_portfolio_id': 23063886, 'created_at': datetime.datetime(2025, 5, 17, 5, 56, 30), 'result': '0.027479189861926226', 'result_long': None, 'result_double': None}] Qualite : 0.027479189861926226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23063886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_17-05-2025_05_56_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23063886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_17-05-2025_05_56_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063911, 'pht': 3726}}" where mtr_portfolio_id = 23063886 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23063886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673268, 0.027479189861926226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23063886_17-05-2025_05_56_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23063900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23063902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23063904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23063905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23063906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23063907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23063908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23063909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23063910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23063911, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23064324 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886660, 'mtr_portfolio_id': 23064324, 'created_at': datetime.datetime(2025, 5, 17, 5, 57, 1), 'result': '0.011258507906093524', 'result_long': None, 'result_double': None}] Qualite : 0.011258507906093524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23064324 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23064324 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23064345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23064346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23064347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23064348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23064349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23064350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23064351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23064352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23064353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23064354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23064355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23064356, 'pht': 3726}}" where mtr_portfolio_id = 23064324 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23064324 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673269, 0.011258507906093524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23064324_16-05-2025_14_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23064345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23064346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23064347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23064348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23064349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23064350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23064351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23064352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23064353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23064354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23064355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23064356, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23065118 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886661, 'mtr_portfolio_id': 23065118, 'created_at': datetime.datetime(2025, 5, 17, 5, 57, 29), 'result': '0.025553453207647115', 'result_long': None, 'result_double': None}] Qualite : 0.025553453207647115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23065118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_17-05-2025_05_57_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23065118 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_17-05-2025_05_57_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065179, 'pht': 3726}}" where mtr_portfolio_id = 23065118 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23065118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673270, 0.025553453207647115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065118_17-05-2025_05_57_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065179, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23065765 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886662, 'mtr_portfolio_id': 23065765, 'created_at': datetime.datetime(2025, 5, 17, 5, 58), 'result': '0.04107896897352467', 'result_long': None, 'result_double': None}] Qualite : 0.04107896897352467 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23065765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23065765 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065876, 'pht': 3726}}" where mtr_portfolio_id = 23065765 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23065765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673271, 0.04107896897352467, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23065765_16-05-2025_14_49_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23065865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23065866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23065867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23065868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23065869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23065870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23065871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23065872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23065873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23065874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23065875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23065876, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23066570 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886663, 'mtr_portfolio_id': 23066570, 'created_at': datetime.datetime(2025, 5, 17, 5, 58, 30), 'result': '0.025626794736411614', 'result_long': None, 'result_double': None}] Qualite : 0.025626794736411614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23066570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_17-05-2025_05_58_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23066570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_17-05-2025_05_58_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23066585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23066586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23066587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23066588, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23066589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23066590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23066591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23066592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23066593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23066594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23066595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23066596, 'pht': 3726}}" where mtr_portfolio_id = 23066570 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23066570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673272, 0.025626794736411614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23066570_17-05-2025_05_58_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23066585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23066586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23066587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23066588, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23066589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23066590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23066591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23066592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23066593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23066594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23066595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23066596, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23067395 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886664, 'mtr_portfolio_id': 23067395, 'created_at': datetime.datetime(2025, 5, 17, 5, 59), 'result': '0.044018331890752806', 'result_long': None, 'result_double': None}] Qualite : 0.044018331890752806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23067395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_17-05-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23067395 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_17-05-2025_05_59_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23067414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23067415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23067416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23067417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23067418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23067419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23067420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23067421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23067422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23067423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23067424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23067425, 'pht': 3726}}" where mtr_portfolio_id = 23067395 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23067395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673273, 0.044018331890752806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23067395_17-05-2025_05_59_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23067414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23067415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23067416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23067417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23067418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23067419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23067420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23067421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23067422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23067423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23067424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23067425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23068252 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886665, 'mtr_portfolio_id': 23068252, 'created_at': datetime.datetime(2025, 5, 17, 5, 59, 28), 'result': '0.056915864695337014', 'result_long': None, 'result_double': None}] Qualite : 0.056915864695337014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23068252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_17-05-2025_05_59_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23068252 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_17-05-2025_05_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068328, 'pht': 3726}}" where mtr_portfolio_id = 23068252 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23068252 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673274, 0.056915864695337014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068252_17-05-2025_05_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068328, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23068896 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886666, 'mtr_portfolio_id': 23068896, 'created_at': datetime.datetime(2025, 5, 17, 6, 0), 'result': '0.05223417856692338', 'result_long': None, 'result_double': None}] Qualite : 0.05223417856692338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23068896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23068896 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068951, 'pht': 3726}}" where mtr_portfolio_id = 23068896 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23068896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673275, 0.05223417856692338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23068896_16-05-2025_15_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23068940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23068941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23068942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23068943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23068944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23068945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23068946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23068947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23068948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23068949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23068950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23068951, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23069601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886667, 'mtr_portfolio_id': 23069601, 'created_at': datetime.datetime(2025, 5, 17, 6, 0, 29), 'result': '0.056976442390432244', 'result_long': None, 'result_double': None}] Qualite : 0.056976442390432244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23069601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_17-05-2025_06_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23069601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_17-05-2025_06_00_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23069654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23069655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23069656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23069657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23069658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23069659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23069660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23069661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23069662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23069663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23069664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23069665, 'pht': 3726}}" where mtr_portfolio_id = 23069601 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23069601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673276, 0.056976442390432244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23069601_17-05-2025_06_00_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23069654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23069655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23069656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23069657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23069658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23069659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23069660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23069661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23069662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23069663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23069664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23069665, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23070321 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886668, 'mtr_portfolio_id': 23070321, 'created_at': datetime.datetime(2025, 5, 17, 6, 1, 30), 'result': '0.05679428881767821', 'result_long': None, 'result_double': None}] Qualite : 0.05679428881767821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23070321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_17-05-2025_06_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23070321 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_17-05-2025_06_01_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23070356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23070357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23070358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23070359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23070360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23070361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23070362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23070363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23070364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23070365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23070366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23070367, 'pht': 3726}}" where mtr_portfolio_id = 23070321 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23070321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673277, 0.05679428881767821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23070321_17-05-2025_06_01_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23070356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23070357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23070358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23070359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23070360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23070361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23070362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23070363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23070364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23070365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23070366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23070367, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23071284 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886669, 'mtr_portfolio_id': 23071284, 'created_at': datetime.datetime(2025, 5, 17, 6, 2, 29), 'result': '0.05052058623169431', 'result_long': None, 'result_double': None}] Qualite : 0.05052058623169431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23071284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_17-05-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23071284 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_17-05-2025_06_02_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23071326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23071327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23071328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23071329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23071330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23071332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23071333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23071334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23071335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23071336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23071337, 'pht': 3726}}" where mtr_portfolio_id = 23071284 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23071284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673278, 0.05052058623169431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071284_17-05-2025_06_02_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23071326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23071327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23071328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23071329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23071330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23071331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23071332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23071333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23071334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23071335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23071336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23071337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23071951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886670, 'mtr_portfolio_id': 23071951, 'created_at': datetime.datetime(2025, 5, 17, 6, 2, 59), 'result': '0.0377443526382627', 'result_long': None, 'result_double': None}] Qualite : 0.0377443526382627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23071951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_17-05-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23071951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_17-05-2025_06_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23072013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072014, 'pht': 3726}}" where mtr_portfolio_id = 23071951 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23071951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673279, 0.0377443526382627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23071951_17-05-2025_06_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23072013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072014, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23072665 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886671, 'mtr_portfolio_id': 23072665, 'created_at': datetime.datetime(2025, 5, 17, 6, 3, 30), 'result': '0.03553301293108556', 'result_long': None, 'result_double': None}] Qualite : 0.03553301293108556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23072665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_17-05-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23072665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_17-05-2025_06_03_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23072747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072759, 'pht': 3726}}" where mtr_portfolio_id = 23072665 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23072665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673280, 0.03553301293108556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23072665_17-05-2025_06_03_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23072747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23072748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23072749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23072750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23072751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23072752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23072753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23072754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23072755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23072757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23072758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23072759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23073291 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886672, 'mtr_portfolio_id': 23073291, 'created_at': datetime.datetime(2025, 5, 17, 6, 4, 1), 'result': '0.05975995727653637', 'result_long': None, 'result_double': None}] Qualite : 0.05975995727653637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23073291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23073291 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23073321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23073322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23073323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23073324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23073325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23073327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23073328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23073329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23073330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23073331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23073332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23073333, 'pht': 3726}}" where mtr_portfolio_id = 23073291 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23073291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673281, 0.05975995727653637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23073291_16-05-2025_17_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23073321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23073322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23073323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23073324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23073325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23073327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23073328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23073329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23073330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23073331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23073332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23073333, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23074092 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886673, 'mtr_portfolio_id': 23074092, 'created_at': datetime.datetime(2025, 5, 17, 6, 4, 30), 'result': '0.0382820251287158', 'result_long': None, 'result_double': None}] Qualite : 0.0382820251287158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23074092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_17-05-2025_06_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23074092 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_17-05-2025_06_04_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23074143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23074144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23074145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23074146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23074147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23074148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23074149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23074150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23074151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23074152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23074153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23074154, 'pht': 3726}}" where mtr_portfolio_id = 23074092 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23074092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673282, 0.0382820251287158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23074092_17-05-2025_06_04_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23074143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23074144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23074145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23074146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23074147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23074148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23074149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23074150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23074151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23074152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23074153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23074154, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23075621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886674, 'mtr_portfolio_id': 23075621, 'created_at': datetime.datetime(2025, 5, 17, 6, 4, 58), 'result': '0.0557903838453118', 'result_long': None, 'result_double': None}] Qualite : 0.0557903838453118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23075621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_17-05-2025_06_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23075621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_17-05-2025_06_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23075650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23075651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23075652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23075653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23075654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23075655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23075656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23075657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23075658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23075659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23075660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23075661, 'pht': 3726}}" where mtr_portfolio_id = 23075621 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23075621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673283, 0.0557903838453118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23075621_17-05-2025_06_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23075650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23075651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23075652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23075653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23075654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23075655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23075656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23075657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23075658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23075659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23075660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23075661, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23076021 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886675, 'mtr_portfolio_id': 23076021, 'created_at': datetime.datetime(2025, 5, 17, 6, 5, 27), 'result': '0.03311414093967866', 'result_long': None, 'result_double': None}] Qualite : 0.03311414093967866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23076021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_17-05-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23076021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_17-05-2025_06_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076047, 'pht': 3726}}" where mtr_portfolio_id = 23076021 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23076021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673284, 0.03311414093967866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076021_17-05-2025_06_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076047, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23076561 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886676, 'mtr_portfolio_id': 23076561, 'created_at': datetime.datetime(2025, 5, 17, 6, 5, 59), 'result': '0.05007861810346185', 'result_long': None, 'result_double': None}] Qualite : 0.05007861810346185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23076561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076561_17-05-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23076561 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076561_17-05-2025_06_06_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076581, 'pht': 3726}}" where mtr_portfolio_id = 23076561 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23076561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673285, 0.05007861810346185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23076561_17-05-2025_06_06_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23076570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23076571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23076572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23076573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23076574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23076575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23076576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23076577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23076578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23076579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23076580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23076581, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23077134 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886677, 'mtr_portfolio_id': 23077134, 'created_at': datetime.datetime(2025, 5, 17, 6, 6, 29), 'result': '0.03116335154720889', 'result_long': None, 'result_double': None}] Qualite : 0.03116335154720889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23077134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077134_16-05-2025_19_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23077134 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077134_16-05-2025_19_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23077159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23077160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23077161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23077162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23077163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23077164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23077165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23077166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23077167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23077168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23077169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23077170, 'pht': 3726}}" where mtr_portfolio_id = 23077134 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23077134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673286, 0.03116335154720889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077134_16-05-2025_19_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23077159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23077160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23077161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23077162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23077163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23077164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23077165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23077166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23077167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23077168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23077169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23077170, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23077853 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886678, 'mtr_portfolio_id': 23077853, 'created_at': datetime.datetime(2025, 5, 17, 6, 7), 'result': '0.05682254523101723', 'result_long': None, 'result_double': None}] Qualite : 0.05682254523101723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23077853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077853_16-05-2025_19_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23077853 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077853_16-05-2025_19_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23077867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23077868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23077869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23077870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23077871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23077872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23077873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23077874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23077875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23077876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23077877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23077878, 'pht': 3726}}" where mtr_portfolio_id = 23077853 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23077853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673287, 0.05682254523101723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23077853_16-05-2025_19_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23077867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23077868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23077869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23077870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23077871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23077872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23077873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23077874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23077875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23077876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23077877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23077878, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23078643 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886679, 'mtr_portfolio_id': 23078643, 'created_at': datetime.datetime(2025, 5, 17, 6, 7, 30), 'result': '0.03930448731368547', 'result_long': None, 'result_double': None}] Qualite : 0.03930448731368547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23078643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23078643_16-05-2025_19_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23078643 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23078643_16-05-2025_19_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23078654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23078655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23078656, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23078657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23078658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23078659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23078660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23078661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23078662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23078663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23078664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23078665, 'pht': 3726}}" where mtr_portfolio_id = 23078643 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23078643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673288, 0.03930448731368547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23078643_16-05-2025_19_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23078654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23078655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23078656, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23078657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23078658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23078659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23078660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23078661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23078662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23078663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23078664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23078665, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23079331 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886680, 'mtr_portfolio_id': 23079331, 'created_at': datetime.datetime(2025, 5, 17, 6, 8), 'result': '0.039217219069198825', 'result_long': None, 'result_double': None}] Qualite : 0.039217219069198825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23079331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079331_17-05-2025_06_08_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23079331 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079331_17-05-2025_06_08_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23079399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23079400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23079401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23079402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23079403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23079404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23079405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23079406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23079407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23079408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23079409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23079410, 'pht': 3726}}" where mtr_portfolio_id = 23079331 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23079331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673289, 0.039217219069198825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079331_17-05-2025_06_08_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23079399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23079400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23079401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23079402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23079403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23079404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23079405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23079406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23079407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23079408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23079409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23079410, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23079947 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886681, 'mtr_portfolio_id': 23079947, 'created_at': datetime.datetime(2025, 5, 17, 6, 8, 28), 'result': '0.04932264349133648', 'result_long': None, 'result_double': None}] Qualite : 0.04932264349133648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23079947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079947_17-05-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23079947 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079947_17-05-2025_06_08_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23080027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23080028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23080029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23080030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23080031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23080032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23080033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23080034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23080035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23080036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23080038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23080039, 'pht': 3726}}" where mtr_portfolio_id = 23079947 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23079947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673290, 0.04932264349133648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23079947_17-05-2025_06_08_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23080027, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23080028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23080029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23080030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23080031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23080032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23080033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23080034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23080035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23080036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23080038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23080039, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23080664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886682, 'mtr_portfolio_id': 23080664, 'created_at': datetime.datetime(2025, 5, 17, 6, 8, 59), 'result': '0.024874019799207697', 'result_long': None, 'result_double': None}] Qualite : 0.024874019799207697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23080664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23080664_17-05-2025_06_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23080664 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23080664_17-05-2025_06_09_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23080674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23080675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23080676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23080677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23080678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23080679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23080680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23080681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23080682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23080683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23080684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23080685, 'pht': 3726}}" where mtr_portfolio_id = 23080664 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23080664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673291, 0.024874019799207697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23080664_17-05-2025_06_09_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23080674, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23080675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23080676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23080677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23080678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23080679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23080680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23080681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23080682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23080683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23080684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23080685, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23081255 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886683, 'mtr_portfolio_id': 23081255, 'created_at': datetime.datetime(2025, 5, 17, 6, 9, 28), 'result': '0.0425637757858488', 'result_long': None, 'result_double': None}] Qualite : 0.0425637757858488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23081255 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081255_17-05-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23081255 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081255_17-05-2025_06_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23081279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23081280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23081281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23081282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23081283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23081284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23081285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23081286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23081287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23081288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23081289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23081290, 'pht': 3726}}" where mtr_portfolio_id = 23081255 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23081255 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673292, 0.0425637757858488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081255_17-05-2025_06_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23081279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23081280, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23081281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23081282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23081283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23081284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23081285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23081286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23081287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23081288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23081289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23081290, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23081629 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2886684, 'mtr_portfolio_id': 23081629, 'created_at': datetime.datetime(2025, 5, 17, 6, 9, 58), 'result': '0.04244789621095401', 'result_long': None, 'result_double': None}] Qualite : 0.04244789621095401 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23081629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081629_17-05-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23081629 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081629_17-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23081712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23081713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23081714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23081715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23081716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23081717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23081718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23081719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23081720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23081721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23081722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23081723, 'pht': 3726}}" where mtr_portfolio_id = 23081629 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23081629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673293, 0.04244789621095401, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23081629_17-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23081712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23081713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23081714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23081715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23081716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23081717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23081718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23081719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23081720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23081721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23081722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23081723, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23082942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2924649, 'mtr_portfolio_id': 23082942, 'created_at': datetime.datetime(2025, 5, 21, 15, 41, 29), 'result': '0.031015893143277955', 'result_long': None, 'result_double': None}] Qualite : 0.031015893143277955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23082942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23082942_21-05-2025_15_41_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23082942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23082942_21-05-2025_15_41_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23082950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23082951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23082952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23082953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23082954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23082955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23082956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23082957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23082958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23082959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23082960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23082961, 'pht': 3726}}" where mtr_portfolio_id = 23082942 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23082942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673294, 0.031015893143277955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23082942_21-05-2025_15_41_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23082950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23082951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23082952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23082953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23082954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23082955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23082956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23082957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23082958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23082959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23082960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23082961, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083052 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2924650, 'mtr_portfolio_id': 23083052, 'created_at': datetime.datetime(2025, 5, 21, 15, 41, 59), 'result': '0.03301091073471508', 'result_long': None, 'result_double': None}] Qualite : 0.03301091073471508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23083052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083052_21-05-2025_15_42_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23083052 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083052_21-05-2025_15_42_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083071, 'pht': 3726}}" where mtr_portfolio_id = 23083052 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23083052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673295, 0.03301091073471508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083052_21-05-2025_15_42_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083165 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 = 23083165 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 = 23083165 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083165 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 = 23083165 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 = 23083165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083165_19-05-2025_16_50_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23083165 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083165_19-05-2025_16_50_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083202, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083205, 'pht': 3726}}" where mtr_portfolio_id = 23083165 and dashboard_run_id = 1824528 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083364 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 = 23083364 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 = 23083364 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083364 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 = 23083364 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 = 23083364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083364_19-05-2025_16_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23083364 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083364_19-05-2025_16_50_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083383, 'pht': 3726}}" where mtr_portfolio_id = 23083364 and dashboard_run_id = 1824528 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083828 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 = 23083828 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 = 23083828 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083828 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 = 23083828 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 = 23083828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083828_19-05-2025_16_51_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23083828 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083828_19-05-2025_16_51_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23083844, 'pht': 3726}}" where mtr_portfolio_id = 23083828 and dashboard_run_id = 1824528 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23083954 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2895536, 'mtr_portfolio_id': 23083954, 'created_at': datetime.datetime(2025, 5, 19, 16, 51, 58), 'result': '0.03218653151493709', 'result_long': None, 'result_double': None}] Qualite : 0.03218653151493709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23083954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083954_19-05-2025_16_51_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23083954 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083954_19-05-2025_16_51_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23083961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083972, 'pht': 3726}}" where mtr_portfolio_id = 23083954 and dashboard_run_id = 1824528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23083954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10673299, 0.03218653151493709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23083954_19-05-2025_16_51_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23083961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23083962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23083963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23083964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23083965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23083966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23083967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23083968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23083969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23083970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23083971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23083972, '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 (23034669,23035427,23036044,23036833,23038437,23038906,23039239,23039804,23040500,23040950,23041439,23042042,23042498,23042957,23043383,23044975,23045316,23045567,23046128,23046584,23047224,23048039,23048561,23049144,23049841,23050420,23051264,23051628,23052259,23052760,23053317,23054976,23055491,23055623,23056122,23056830,23057413,23057852,23058362,23058889,23059524,23060185,23063337,23063886,23064324,23065118,23065765,23066570,23067395,23068252,23068896,23069601,23070321,23071284,23071951,23072665,23073291,23074092,23075621,23076021,23076561,23077134,23077853,23078643,23079331,23079947,23080664,23081255,23081629,23082942,23083052,23083165,23083364,23083828,23083954) result : ((1358695980,), (1358696012,), (1358696042,), (1358696071,), (1358696366,), (1358696392,), (1358696417,), (1358696628,), (1358696632,), (1358696641,), (1358696648,), (1358696650,), (1358696891,), (1358696894,), (1358696897,), (1358696899,), (1358697023,), (1358697025,), (1358697027,), (1358697029,), (1358697032,), (1358697049,), (1358697059,), (1358697087,), (1358697599,), (1358697638,), (1358697665,), (1358697694,), (1358697729,), (1358697763,), (1358698042,), (1358698070,), (1358698099,), (1358698127,), (1358698154,), (1358698420,), (1358698456,), (1358698503,), (1358698754,), (1358698762,), (1358698798,), (1358698824,), (1358698835,), (1358698838,), (1358698871,), (1358698873,), (1358698878,), (1358698896,), (1358698901,), (1358698990,), (1358699016,), (1358699018,), (1358699046,), (1358699049,), (1358699050,), (1358699051,), (1358699054,), (1358699056,), (1358699947,), (1358699932,), (1358699937,), (1358700192,), (1358700195,), (1358700197,), (1358700199,), (1358700201,), (1358700204,), (1358700417,), (1358701184,), (1358701261,), (1358701339,), (1358701428,), (1358702013,), (1358702062,), (1358702075,), (1358702095,), (1358702484,), (1358702515,), (1358702527,), (1358702628,), (1358702631,), (1358702633,), (1358702634,), (1358702636,), (1358702637,), (1358702881,), (1358702886,), (1358702917,), (1358702944,), (1358703496,), (1358703536,), (1358703579,), (1358703606,), (1358703633,), (1358703916,), (1358703940,), (1358703943,), (1358704093,), (1358704134,), (1358704191,), (1358704228,), (1358704835,), (1358704880,), (1358704913,), (1358704982,), (1358705032,), (1358705085,), (1358705355,), (1358705386,), (1358705411,), (1358705435,), (1358705523,), (1358705550,), (1358705577,), (1358705602,), (1358705627,), (1358705796,), (1358705802,), (1358705803,), (1358705807,), (1358705809,), (1358705857,), (1358705851,), (1358705854,), (1358705882,), (1358705910,), (1358705941,), (1358705987,), (1358706097,), (1358706099,), (1358706101,), (1358706102,), (1358706104,), (1358706111,), (1358706372,), (1358706378,), (1358706380,), (1358706382,), (1358706386,), (1358706388,), (1358706640,), (1358706644,), (1358706670,), (1358706994,), (1358707047,), (1358707095,), (1358707533,), (1358707582,), (1358707642,), (1358707758,), (1358708183,), (1358708235,), (1358708288,), (1358708334,), (1358708973,), (1358709053,), (1358709132,), (1358709208,), (1358709292,), (1358709809,), (1358709874,), (1358709924,), (1358709989,), (1358710062,), (1358710509,), (1358710545,), (1358710578,), (1358710607,), (1358710655,), (1358711172,), (1358711222,), (1358711254,), (1358711257,), (1358711390,), (1358711394,), (1358711398,), (1358711401,), (1358711404,), (1358711411,), (1358711429,), (1358711433,), (1358711967,), (1358711997,), (1358712027,), (1358712458,), (1358712333,), (1358712382,), (1358712417,), (1358712443,), (1358712456,), (1358712807,), (1358712812,), (1358712816,), (1358712820,), (1358712825,), (1358712828,), (1358712833,), (1358712836,), (1358712888,), (1358712917,), (1358712953,), (1358713191,), (1358713194,), (1358713197,), (1358713199,), (1358713203,), (1358713205,), (1358713229,), (1358713233,), (1358713237,), (1358713239,), (1358713241,), (1358713244,), (1358713264,), (1358713280,), (1358713285,), (1358713328,), (1358713344,), (1358713375,), (1358713463,), (1358713467,), (1358713471,), (1358713474,), (1358713478,), (1358713743,), (1358713823,), (1358713852,), (1358713881,), (1358713906,), (1358714263,), (1358714294,), (1358714322,), (1358714327,), (1358714849,), (1358714863,), (1358714891,), (1358715042,), (1358715062,), (1358715088,), (1358715120,), (1358715971,), (1358716000,), (1358716553,), (1358723848,), (1358724193,), (1358724224,), (1358724560,), (1358724562,), (1358724766,), (1358724770,), (1358724774,), (1358724799,), (1358724829,), (1358724878,), (1358724881,), (1358724884,), (1358724895,), (1358724933,), (1358724960,), (1358725199,), (1358725230,), (1358725258,), (1358725284,), (1358725636,), (1358725672,), (1358725699,), (1358725773,), (1358725776,), (1358725801,), (1358725830,), (1358725859,), (1358725886,), (1358726031,), (1358726059,), (1358726089,), (1358726097,), (1358726623,), (1358726672,), (1358726760,), (1358726810,), (1358726864,), (1358727218,), (1358727265,), (1358727312,), (1358727793,), (1358727835,), (1358727870,), (1358727896,), (1358727923,), (1358728302,), (1358728343,), (1358728397,), (1358728430,), (1358728640,), (1358728675,), (1358728728,), (1358728763,), (1358728774,), (1358728872,), (1358728909,), (1358728937,), (1358728959,), (1358728985,), (1358729063,), (1358729060,), (1358729419,), (1358729445,), (1358729472,), (1358729500,), (1358729528,), (1358729662,), (1358729664,), (1358729693,), (1358729725,), (1358729767,), (1358730174,), (1358730201,), (1358730230,), (1358730259,), (1358730284,), (1358730453,), (1358730478,), (1358730502,), (1358730517,), (1358730519,), (1358730605,), (1358730607,), (1358730611,), (1358730613,), (1358730616,), (1358730619,), (1358730650,), (1358730653,), (1358730655,), (1358730656,), (1358730699,), (1358730701,), (1358730703,), (1358730704,), (1358730706,), (1358730727,), (1358730734,), (1358730738,), (1358730740,), (1358730742,), (1358730745,), (1358730761,), (1358730764,), (1358730767,), (1358730957,), (1358731053,), (1358731082,), (1358731108,), (1358731133,), (1358731157,), (1358731371,), (1358731429,), (1358731433,), (1358731436,), (1358731473,), (1358731559,), (1358731589,), (1358731627,), (1358731839,), (1358731845,), (1358731849,), (1358731853,), (1358731894,), (1358731884,), (1358731887,), (1358731890,), (1358731912,), (1358731914,), (1358731916,), (1358731917,), (1358731920,), (1358731945,), (1358731948,), (1358731951,), (1358731952,), (1358731955,), (1358731972,), (1358731975,), (1358731977,), (1358732004,), (1358732008,), (1358732010,), (1358732034,), (1358732036,), (1358732067,), (1358732070,), (1358732089,), (1358732091,), (1358732123,), (1358732126,), (1358732157,), (1358732161,), (1358732165,), (1358732172,), (1358732235,), (1358732241,), (1358732267,), (1358732270,), (1358732274,), (1358732280,), (1358732282,), (1358732283,), (1358732310,), (1358732313,), (1358732316,), (1358732367,), (1358732391,), (1358732415,), (1358732439,), (1358732451,), (1358732456,), (1358732677,), (1358732731,), (1358732779,), (1358732827,), (1358732880,), (1358734105,), (1358733682,), (1358733783,), (1358733885,), (1358733987,), (1358735305,), (1358735427,), (1358735551,), (1358735646,), (1358735745,), (1358736775,), (1358736919,), (1358737000,), (1358737096,), (1358737190,), (1358737293,), (1358738166,), (1358738238,), (1358738340,), (1358738446,), (1358738576,), (1358739378,), (1358739409,), (1358739438,), (1358739474,), (1358740121,), (1358740178,), (1358740230,), (1358740284,), (1358740335,), (1358740922,), (1358741020,), (1358741093,), (1358741486,), (1358741515,), (1358741541,), (1358741566,), (1358741583,), (1358741671,), (1358741673,), (1358741675,), (1358741678,), (1358741682,), (1358741691,), (1358741692,), (1358741696,), (1358741703,), (1358741721,), (1358741723,), (1358741727,), (1358741731,), (1358742071,), (1358742121,), (1358742171,), (1358742195,), (1358742627,), (1358742652,), (1358742677,), (1358742701,), (1358742728,), (1358742758,), (1358742912,), (1358742914,), (1358742916,), (1358743081,), (1358743102,), (1358743118,), (1358743121,), (1358743123,), (1358743280,), (1358743273,), (1358743275,), (1358743276,), (1358743277,), (1358743279,), (1358743473,), (1358743504,), (1358743530,), (1358743534,), (1358743538,), (1358743559,), (1358743562,), (1358743566,), (1358743590,), (1358744221,), (1358744252,), (1358744278,), (1358744306,), (1358744335,), (1358744361,), (1358744737,), (1358744763,), (1358744807,), (1358744855,), (1358745062,), (1358745064,), (1358745066,), (1358745292,), (1358745294,), (1358745296,), (1358745416,), (1358745456,), (1358745508,), (1358745564,), (1358745627,), (1358745681,), (1358745844,), (1358745848,), (1358745851,), (1358745890,), (1358745895,), (1358745897,), (1358745900,), (1358745941,), (1358745947,), (1358745949,), (1358745951,), (1358745954,), (1358745983,), (1358745990,), (1358745991,), (1358745993,), (1358745995,), (1358746202,), (1358746229,), (1358746255,), (1358746282,), (1358746485,), (1358746511,), (1358746540,), (1358746699,), (1358746732,), (1358746758,), (1358747102,), (1358746994,), (1358747021,), (1358747052,), (1358747077,), (1358747272,), (1358747301,), (1358747336,), (1358747346,), (1358747349,), (1358747513,), (1358747518,), (1358747520,), (1358747559,), (1358747641,), (1358747703,), (1358747971,), (1358748024,), (1358748065,), (1358748069,), (1358748074,), (1358748202,), (1358748231,), (1358748296,), (1358748333,), (1358748361,), (1358748718,), (1358748747,), (1358748773,), (1358749049,), (1358749075,), (1358749077,), (1358749099,), (1358749105,), (1358749107,), (1358749233,), (1358749261,), (1358749291,), (1358749322,), (1358749352,), (1358749507,), (1358749534,), (1358749561,), (1358749562,), (1358749667,), (1358749669,), (1358749695,), (1358749701,), (1358749705,), (1358749736,), (1358749739,), (1358749742,), (1358749743,), (1358749744,), (1358750057,), (1358750086,), (1358750113,), (1358750640,), (1358750475,), (1358750583,), (1358750612,), (1358751266,), (1358751319,), (1358751398,), (1358751456,), (1358751554,), (1358752120,), (1358752174,), (1358752616,), (1358752619,), (1358752622,), (1358752624,), (1358752959,), (1358753010,), (1358753062,), (1358753113,), (1358753482,), (1358753540,), (1358753593,), (1358753664,), (1358754310,), (1358754361,), (1358754396,), (1358754425,), (1358755001,), (1358755016,), (1358755033,), (1358755043,), (1358755061,), (1358755237,), (1358755263,), (1358755389,), (1358755417,), (1358755441,), (1358755469,), (1358755493,), (1358755537,), (1358755563,), (1358755588,), (1358755615,), (1358755640,), (1358755670,), (1358755733,), (1358755736,), (1358755738,), (1358755740,), (1358755978,), (1358756006,), (1358756031,), (1358756058,), (1358756081,), (1358756274,), (1358756292,), (1358756296,), (1358756301,), (1358756306,), (1358756313,), (1358756537,), (1358756566,), (1358756618,), (1358756665,), (1358756709,), (1358756887,), (1358756884,), (1358757199,), (1358757203,), (1358757209,), (1358757212,), (1358757235,), (1358757240,), (1358757241,), (1358757243,), (1358757245,), (1358757267,), (1358757272,), (1358757276,), (1358757277,), (1358757280,), (1358757473,), (1358757500,), (1358757675,), (1358757693,), (1358757695,), (1358757718,), (1358757732,), (1358757735,), (1358757820,), (1358757828,), (1358757857,), (1358757873,), (1358757917,), (1358757968,), (1358757969,), (1358758002,), (1358758004,), (1358758007,), (1358758011,), (1358758014,), (1358758019,), (1358758040,), (1358758043,), (1358758046,), (1358758047,), (1358758048,), (1358758050,), (1358758066,), (1358758069,), (1358758072,), (1358758074,), (1358758077,), (1358758080,), (1358758103,), (1358758110,), (1358758111,), (1358758113,), (1358758131,), (1358758134,), (1358758137,), (1358758139,), (1358758142,), (1358758352,), (1358758380,), (1358758407,), (1358758430,), (1358758455,), (1358758859,), (1358758757,), (1358758798,), (1358758825,), (1358759070,), (1358759072,), (1358759074,), (1358759076,), (1358759105,), (1358759256,), (1358759268,), (1358759295,), (1358759321,), (1358759347,), (1358759455,), (1358759511,), (1358759565,), (1358759615,), (1358759663,), (1358759930,), (1358759958,), (1358759986,), (1358760336,), (1358760365,), (1358760390,), (1358760432,), (1358760970,), (1358761137,), (1358761164,), (1358761197,), (1358761227,), (1358761562,), (1358761601,), (1358761630,), (1358761673,), (1358761726,), (1358761786,), (1358762491,), (1358762563,), (1358763088,), (1358763136,), (1358763188,), (1358763257,), (1358763337,), (1358763963,), (1358764015,), (1358764052,), (1358764112,), (1358764162,), (1358764472,), (1358764479,), (1358764481,), (1358764506,), (1358764686,), (1358764687,), (1358764689,), (1358764889,), (1358764892,), (1358764900,), (1358765119,), (1358765124,), (1358765178,), (1358765209,), (1358765233,), (1358765227,), (1358765232,), (1358765254,), (1358765257,), (1358765259,), (1358765307,), (1358765335,), (1358765362,), (1358765385,), (1358765601,), (1358765605,), (1358765625,), (1358765814,), (1358765828,), (1358765861,), (1358765877,), (1358765907,), (1358765910,), (1358765911,), (1358765915,), (1358765917,), (1358765936,), (1358765939,), (1358765942,), (1358765944,), (1358765962,), (1358765966,), (1358765968,), (1358766108,), (1358766132,), (1358766157,), (1358766185,), (1358766215,), (1358766323,), (1358766382,), (1358766388,), (1358766439,), (1358766442,), (1358766449,), (1358766453,), (1358766494,), (1358766645,), (1358766684,), (1358766689,), (1358766692,), (1358766695,), (1358766714,), (1358766718,), (1358766720,), (1358766724,), (1358766729,), (1358766755,), (1358766759,), (1358766763,), (1358766822,), (1358766806,), (1358766816,), (1358766840,), (1358766844,), (1358766846,), (1358766848,), (1358766853,), (1358766857,), (1358766874,), (1358766875,), (1358766876,), (1358767094,), (1358767120,), (1358767152,), (1358767182,), (1358767218,), (1358767248,), (1358767498,), (1358767525,), (1358767551,), (1358767576,), (1358767601,), (1358767627,), (1358767915,), (1358767943,), (1358767971,), (1358767997,), (1358768455,), (1358768505,), (1358768544,), (1358768569,), (1358769084,), (1358769158,), (1358769236,), (1358770153,), (1358770228,), (1358770282,), (1358770335,), (1358770386,), (1358770764,), (1358770811,), (1358770862,), (1358770915,), (1358771625,), (1358771652,), (1358773386,), (1358791401,), (1358791345,), (1358791747,), (1358793014,), (1358793181,), (1358793208,), (1358793237,), (1358793285,), (1358793783,), (1358793845,), (1358793894,), (1358793943,), (1358794342,), (1358794350,), (1358794352,), (1358794355,), (1358794573,), (1358794582,), (1358794589,), (1358794695,), (1358794700,), (1358794704,), (1358794706,), (1358794723,), (1358794728,), (1358794731,), (1358794748,), (1358794750,), (1358794758,), (1358794762,), (1358794767,), (1358794771,), (1358794773,), (1358794782,), (1358794794,), (1358794799,), (1358794808,), (1358794812,), (1358794815,), (1358794817,), (1358794819,), (1358794823,), (1358794842,), (1358794846,), (1358794850,), (1358794853,), (1358794856,), (1358794904,), (1358794902,), (1358794929,), (1358794932,), (1358795065,), (1358795155,), (1358795182,), (1358795206,), (1358795230,), (1358795489,), (1358795514,), (1358795539,), (1358795565,), (1358795591,), (1358795620,), (1358796132,), (1358796184,), (1358796233,), (1358796790,), (1358796843,), (1358796890,), (1358796952,), (1358797004,), (1358797691,), (1358797717,), (1358797748,), (1358797775,), (1358797816,), (1358797882,), (1358798306,), (1358798323,), (1358798337,), (1358798883,), (1358798911,), (1358798925,), (1358798927,), (1358798951,), (1358798982,), (1358799255,), (1358799259,), (1358799264,), (1358799267,), (1358799281,), (1358799449,), (1358799452,), (1358799455,), (1358799456,), (1358799458,), (1358799691,), (1358799715,), (1358799740,), (1358799764,), (1358799788,), (1358799817,), (1358800097,), (1358800124,), (1358800155,), (1358800179,), (1358800205,), (1358800724,), (1358800771,), (1358800821,), (1358800861,), (1358801407,), (1358801478,), (1358801552,), (1358801633,), (1358801733,), (1358801831,), (1358802910,), (1358802714,), (1358802776,), (1358802851,), (1358802887,), (1358803336,), (1358803382,), (1358803433,), (1358803464,), (1358804033,), (1358804089,), (1358804155,), (1358804188,), (1358804244,), (1358804282,), (1358804567,), (1358804584,), (1358804591,), (1358804607,), (1358804692,), (1358804725,), (1358804735,), (1358804751,), (1358804765,), (1358804780,), (1358804802,), (1358804806,), (1358804808,), (1358804811,), (1358804815,), (1358804821,), (1358804831,), (1358804834,), (1358804837,), (1358804843,), (1358804850,), (1358804860,), (1358804865,), (1358804870,), (1358804875,), (1358804878,), (1358804884,), (1358804888,), (1358804891,), (1358804894,), (1358804895,), (1358804899,), (1358804905,), (1358804926,), (1358804931,), (1358804934,), (1358804938,), (1358804942,), (1358804945,), (1358804953,), (1358804955,), (1358804958,), (1358804961,), (1358804964,), (1358804971,), (1358804974,), (1358804977,), (1358804980,), (1358804983,), (1358804986,), (1358805105,), (1358805135,), (1358805163,), (1358805191,), (1358805517,), (1358805551,), (1358805631,), (1358805717,), (1358805719,), (1358805723,), (1358805803,), (1358805806,), (1358805827,), (1358805852,), (1358805882,), (1358805911,), (1358806212,), (1358806265,), (1358806310,), (1358806331,), (1358807263,), (1358807232,), (1358807525,), (1358807577,), (1358807629,), (1358807682,), (1358808062,), (1358808090,), (1358808150,), (1358808228,), (1358808285,), (1358808310,), (1358808551,), (1358808586,), (1358808790,), (1358808797,), (1358808832,), (1358808834,), (1358809318,), (1358809321,), (1358809355,), (1358809379,), (1358809405,), (1358809430,), (1358809455,), (1358809464,), (1358809638,), (1358809640,), (1358809642,), (1358809643,), (1358809644,), (1358809665,), (1358809667,), (1358809669,), (1358809670,), (1358809671,), (1358809706,), (1358809711,), (1358809714,), (1358809717,), (1358809770,), (1358809762,), (1358809765,), (1358809768,), (1358809799,), (1358809801,), (1358810087,), (1358810095,), (1358810108,), (1358810109,), (1358810115,), (1358810119,), (1358810134,), (1358810137,), (1358810140,), (1358810156,), (1358810484,), (1358810516,), (1358810541,), (1358810575,), (1358810605,), (1358810630,), (1358810878,), (1358810907,), (1358810932,), (1358810957,), (1358810986,), (1358811331,), (1358811350,), (1358811376,), (1358811400,), (1358811923,), (1358811988,), (1358811990,), (1358812007,), (1358812039,), (1358812106,), (1358812497,), (1358812522,), (1358812547,), (1358813079,), (1358813117,), (1358813145,), (1358813170,), (1358813477,), (1358813520,), (1358813569,), (1358813618,), (1358813674,), (1358814021,), (1358814072,), (1358814121,), (1358814172,), (1358814220,), (1358814272,), (1358814544,), (1358814556,), (1358814588,), (1358814618,), (1358814656,), (1358815357,), (1358815508,), (1358815632,), (1358815705,), (1358815798,), (1358816429,), (1358816455,), (1358816481,), (1358816507,), (1358816574,), (1358816631,), (1358817122,), (1358817038,), (1358817068,), (1358817095,), (1358817624,), (1358817659,), (1358817685,), (1358817709,), (1358817740,), (1358817787,), (1358818136,), (1358818167,), (1358818192,), (1358818236,), (1358818292,), (1358818862,), (1358818914,), (1358818950,), (1358818981,), (1358819033,), (1358819087,), (1358819661,), (1358819705,), (1358819759,), (1358819823,), (1358820259,), (1358820276,), (1358820285,), (1358820291,), (1358820294,), (1358820298,), (1358820407,), (1358820434,), (1358820461,), (1358820488,), (1358821740,), (1358821825,), (1358821828,), (1358821831,), (1358821836,), (1358821864,), (1358822243,), (1358822394,), (1358822438,), (1358822467,), (1358822946,), (1358822973,), (1358823000,), (1358823021,), (1358823024,), (1358823280,), (1358823323,), (1358823374,), (1358823415,), (1358823452,), (1358823486,), (1358823710,), (1358823722,), (1358823740,), (1358823747,), (1358823751,), (1358823804,), (1358823833,), (1358823869,), (1358823904,), (1358823932,), (1358823960,), (1358824209,), (1358824237,), (1358824260,), (1358824965,), (1358825091,), (1358825183,), (1358825233,), (1358825291,), (1358825979,), (1358825702,), (1358825777,), (1358825855,), (1358825893,), (1358825950,), (1358826284,), (1358826286,), (1358826290,), (1358826294,), (1358826786,), (1358826814,), (1358826843,), (1358826863,), (1358826914,), (1358826941,), (1358827151,), (1358827171,), (1358827174,), (1358827176,), (1358827180,), (1358827206,), (1358827208,), (1358827216,), (1358827242,), (1358827245,), (1358827247,), (1358827249,), (1358827279,), (1358827283,), (1358827287,), (1358827289,), (1358827326,), (1358827332,), (1358827342,), (1358827346,), (1358827350,), (1358827386,), (1358827389,), (1358827392,), (1358827395,), (1358827401,), (1358827434,), (1358827513,), (1358827605,), (1358827720,), (1358827836,), (1358828412,), (1358828466,), (1358828493,), (1358828520,), (1358829127,), (1358829168,), (1358829206,), (1358829253,), (1358829310,), (1358829370,), (1358829876,), (1358829915,), (1358829973,), (1358830013,), (1358830488,), (1358830539,), (1358830586,), (1358830859,), (1358830887,), (1358830913,), (1358830939,), (1358830966,), (1358830978,), (1358831121,), (1358831042,), (1358831067,), (1358831093,), (1358831899,), (1358831929,), (1358831953,), (1358831954,), (1358831957,), (1358832195,), (1358832223,), (1358832226,), (1358832228,), (1358832596,), (1358832629,), (1358832658,), (1358832684,), (1358832716,), (1358832745,), (1358833009,), (1358833035,), (1358833084,), (1358833111,), (1358833141,), (1358833168,), (1358833262,), (1358833266,), (1358833274,), (1358834335,), (1358834363,), (1358834392,), (1358834438,), (1358834488,), (1358835100,), (1358835126,), (1358835157,), (1358835204,), (1358835255,), (1358835306,), (1358835863,), (1358835895,), (1358835941,), (1358836617,), (1358836644,), (1358836647,), (1358836648,), (1358836654,), (1358836686,), (1358836912,), (1358836925,), (1358836952,), (1358837016,), (1358837168,), (1358837172,), (1358837177,), (1358837196,), (1358837212,), (1358837218,), (1358837222,), (1358837226,), (1358837252,), (1358837257,), (1358837262,), (1358837265,), (1358837309,), (1358837295,), (1358837300,), (1358837304,), (1358837307,), (1358837427,), (1358837456,), (1358837488,), (1358837521,), (1358837549,), (1358837843,), (1358837871,), (1358837898,), (1358837923,), (1358837948,), (1358838256,), (1358838283,), (1358838311,), (1358838339,), (1358838365,), (1358838637,), (1358838666,), (1358838695,), (1358839070,), (1358839130,), (1358839159,), (1358839182,), (1358839212,), (1358839231,), (1358839268,), (1358839272,), (1358839278,), (1358839304,), (1358839338,), (1358839544,), (1358839547,), (1358839551,), (1358839554,), (1358839556,), (1358839786,), (1358839790,), (1358839798,), (1358839800,), (1358839801,), (1358839852,), (1358839857,), (1358839860,), (1358839862,), (1358839865,), (1358839868,), (1358840006,), (1358840009,), (1358840013,), (1358840015,), (1358840017,), (1358840215,), (1358840249,), (1358840276,), (1358840283,), (1358840288,), (1358840438,), (1358840442,), (1358840447,), (1358840449,), (1358840499,), (1358840503,), (1358840508,), (1358840512,), (1358840516,), (1358840521,), (1358840586,), (1358840593,), (1358840598,), (1358840775,), (1358840732,), (1358840739,), (1358840741,), (1358840743,), (1358841096,), (1358841127,), (1358841162,), (1358841195,), (1358841223,), (1358841251,), (1358841502,), (1358841531,), (1358841560,), (1358841586,), (1358841793,), (1358841798,), (1358841816,), (1358841819,), (1358842187,), (1358842224,), (1358842258,), (1358842291,), (1358842302,), (1358842317,), (1358842618,), (1358842630,), (1358842663,), (1358842698,), (1358842849,), (1358843259,), (1358843297,), (1358843816,), (1358843836,), (1358843869,), (1358843971,), (1358844054,), (1358844062,), (1358844065,), (1358844067,), (1358844097,), (1358844102,), (1358844107,), (1358844111,), (1358844222,), (1358844244,), (1358844248,), (1358844336,), (1358844342,), (1358844348,), (1358844351,), (1358844356,), (1358844361,), (1358844399,), (1358844404,), (1358844413,), (1358844416,), (1358844421,), (1358844424,), (1358844452,), (1358844460,), (1358844469,), (1358844568,), (1358844530,), (1358844534,), (1358844540,), (1358844545,), (1358844555,), (1358844625,), (1358844630,), (1358844634,), (1358844638,), (1358844643,), (1358844688,), (1358844693,), (1358844705,), (1358844710,), (1358844716,), (1358844749,), (1358844753,), (1358844757,), (1358844761,), (1358844765,), (1358844798,), (1358844804,), (1358844810,), (1358844815,), (1358844820,), (1358844858,), (1358844864,), (1358844869,), (1358844874,), (1358844924,), (1358844928,), (1358844933,), (1358844937,), (1358844942,), (1358844947,), (1358844978,), (1358844984,), (1358844988,), (1358845054,), (1358845058,), (1358845063,), (1358845067,), (1358845070,), (1358845075,), (1358845123,), (1358845127,), (1358845132,), (1358845136,), (1358845159,), (1358845163,), (1358845205,), (1358845209,), (1358845214,), (1358845296,), (1358845301,), (1358845307,), (1358845310,), (1358845314,), (1358845319,), (1358845352,), (1358845357,), (1358845361,), (1358845365,), (1358845604,), (1358845632,), (1358845659,), (1358845686,), (1358845716,), (1358845963,), (1358846058,), (1358846081,), (1358846086,), (1358846092,), (1358846095,), (1358850186,), (1358850058,), (1358850106,), (1358850652,), (1358850681,), (1358850772,), (1358850885,), (1358850995,), (1358851104,), (1358851142,), (1358851145,), (1358851198,), (1358851266,), (1358851304,), (1358851309,), (1358851325,), (1358851354,), (1358851383,), (1358851409,), (1358851569,), (1358851572,), (1358851576,), (1358851579,), (1358851582,), (1358851586,), (1358851616,), (1358851622,), (1358851628,), (1358851632,), (1358851689,), (1358851697,), (1358851704,), (1358851733,), (1358852222,), (1358852323,), (1358852349,), (1358852380,), (1358852587,), (1358852593,), (1358852598,), (1358852602,), (1358852832,), (1358852853,), (1358852863,), (1358852908,), (1358852942,), (1358853055,), (1358853085,), (1358853116,), (1358853146,), (1358853176,), (1358853476,), (1358853506,), (1358853535,), (1358853570,), (1358853596,), (1358853943,), (1358854068,), (1358854158,), (1358854710,), (1358854886,), (1358855075,), (1358855253,), (1358855730,), (1358855812,), (1358855881,), (1358855949,), (1358856462,), (1358856491,), (1358856520,), (1358856547,), (1358856589,), (1358856641,), (1358856802,), (1358856805,), (1358856808,), (1358856815,), (1358857356,), (1358857433,), (1358857488,), (1358857543,), (1358857603,), (1358857926,), (1358858228,), (1358858232,), (1358858236,), (1358858445,), (1358858561,), (1358858613,), (1358858617,), (1358858621,), (1358858863,), (1358858865,), (1358858881,), (1358858897,), (1358858900,), (1358858903,), (1358858932,), (1358858936,), (1358858941,), (1358858973,), (1358858976,), (1358858981,), (1358858985,), (1358858989,), (1358858992,), (1358859023,), (1358859026,), (1358859028,), (1358859037,), (1358859040,), (1358859042,), (1358859074,), (1358859078,), (1358859083,), (1358859126,), (1358859131,), (1358859134,), (1358859136,), (1358859138,), (1358859142,), (1358859173,), (1358859178,), (1358859194,), (1358859207,), (1358859210,), (1358859213,), (1358859249,), (1358859252,), (1358859254,), (1358859491,), (1358859520,), (1358859547,), (1358859573,), (1358859743,), (1358859746,), (1358859750,), (1358859798,), (1358859832,), (1358859834,), (1358859835,), (1358859837,), (1358859840,), (1358859903,), (1358859907,), (1358859911,), (1358859942,), (1358859948,), (1358860067,), (1358860051,), (1358860054,), (1358860058,), (1358860142,), (1358860146,), (1358860151,), (1358860154,), (1358860190,), (1358860192,), (1358860197,), (1358860251,), (1358860253,), (1358860256,), (1358860287,), (1358860291,), (1358860294,), (1358860296,), (1358860300,), (1358860303,), (1358860337,), (1358860339,), (1358860341,), (1358860343,), (1358860347,), (1358860350,), (1358860385,), (1358860391,), (1358860438,), (1358860441,), (1358860444,), (1358860451,), (1358860489,), (1358860493,), (1358860497,), (1358860500,), (1358860503,), (1358860536,), (1358860539,), (1358860543,), (1358860587,), (1358860592,), (1358860595,), (1358860599,), (1358860602,), (1358860632,), (1358860634,), (1358860638,), (1358860641,), (1358860940,), (1358860968,), (1358860999,), (1358861026,), (1358861053,), (1358861347,), (1358861349,), (1358861352,), (1358861545,), (1358861567,), (1358861573,), (1358861663,), (1358862238,), (1358862132,), (1358862159,), (1358862185,), (1358862211,), (1358862536,), (1358862563,), (1358862592,), (1358862619,), (1358862742,), (1358862768,), (1358862795,), (1358862825,), (1358862852,), (1358862881,), (1358863113,), (1358863152,), (1358863203,), (1358863255,), (1358863679,), (1358863682,), (1358863685,), (1358864060,), (1358864065,), (1358864069,), (1358864082,), (1358864113,), (1358864143,), (1358864229,), (1358864255,), (1358864281,), (1358864309,), (1358864413,), (1358864418,), (1358864423,), (1358864427,), (1358864629,), (1358864698,), (1358864701,), (1358864732,), (1358864758,), (1358865122,), (1358865163,), (1358865196,), (1358865238,), (1358865297,), (1358865904,), (1358865961,), (1358866019,), (1358866575,), (1358866658,), (1358866741,), (1358866865,), (1358866936,), (1358867437,), (1358867468,), (1358867497,), (1358867542,), (1358867574,), (1358867594,), (1358867991,), (1358868025,), (1358868058,), (1358868287,), (1358868370,), (1358868481,), (1358868548,), (1358868695,), (1358876135,), (1358876133,), (1358876431,), (1358876441,), (1358876475,), (1358876480,), (1358876500,), (1358876538,), (1358876551,), (1358876589,), (1358876591,), (1358876594,), (1358876597,), (1358876601,), (1358876637,), (1358876644,), (1358876650,), (1358876688,), (1358876693,), (1358876698,), (1358876701,), (1358876706,), (1358876744,), (1358876749,), (1358876753,), (1358876757,), (1358876760,), (1358876765,), (1358876799,), (1358876805,), (1358876822,), (1358876830,), (1358876878,), (1358877091,), (1358877146,), (1358877210,), (1358877298,), (1358877303,), (1358877307,), (1358877310,), (1358877316,), (1358877320,), (1358877359,), (1358877363,), (1358877367,), (1358877369,), (1358877373,), (1358877466,), (1358877557,), (1358877618,), (1358877998,), (1358878083,), (1358878138,), (1358878216,), (1358878266,), (1358878874,), (1358878935,), (1358878992,), (1358879044,), (1358879100,), (1358879847,), (1358879684,), (1358879742,), (1358879795,), (1358880184,), (1358880188,), (1358880191,), (1358880211,), (1358880524,), (1358880550,), (1358880582,), (1358880629,), (1358880680,), (1358880710,), (1358880975,), (1358880977,), (1358880980,), (1358880982,), (1358881191,), (1358881221,), (1358881228,), (1358881230,), (1358881557,), (1358881559,), (1358881578,), (1358881605,), (1358882052,), (1358882159,), (1358882271,), (1358882300,), (1358882329,), (1358882358,), (1358882651,), (1358882680,), (1358882709,), (1358882907,), (1358883267,), (1358883283,), (1358883594,), (1358883599,), (1358883605,), (1358883609,), (1358883852,), (1358883881,), (1358883910,), (1358883945,), (1358883955,), (1358884008,), (1358884017,), (1358884024,), (1358884034,), (1358884055,), (1358884059,), (1358884061,), (1358884075,), (1358884352,), (1358884192,), (1358884226,), (1358884256,), (1358884287,), (1358884323,), (1358884622,), (1358884652,), (1358884679,), (1358884705,), (1358884738,), (1358885041,), (1358885073,), (1358885102,), (1358885129,), (1358885247,), (1358885250,), (1358885253,), (1358885263,), (1358885292,), (1358885321,), (1358885534,), (1358885539,), (1358885544,), (1358885574,), (1358885756,), (1358885760,), (1358885765,), (1358885769,), (1358885773,), (1358885777,), (1358885799,), (1358885804,), (1358885809,), (1358885815,), (1358885820,), (1358885844,), (1358885848,), (1358885852,), (1358885894,), (1358885898,), (1358885903,), (1358885906,), (1358885908,), (1358885911,), (1358885948,), (1358885951,), (1358885954,), (1358886008,), (1358886300,), (1358886373,), (1358886431,), (1358886491,), (1358886556,), (1358886720,), (1358886750,), (1358886783,), (1358886814,), (1358886845,), (1358886876,), (1358887122,), (1358887125,), (1358887129,), (1358887132,), (1358887137,), (1358887142,), (1358887252,), (1358887311,), (1358887368,), (1358887826,), (1358887866,), (1358887913,), (1358887955,), (1358888016,), (1358888572,), (1358888369,), (1358888401,), (1358888434,), (1358888500,), (1358888537,), (1358888823,), (1358888850,), (1358888880,), (1358888907,), (1358889110,), (1358889137,), (1358889175,), (1358889226,), (1358889286,), (1358889339,), (1358889529,), (1358889556,), (1358889560,), (1358889565,), (1358889570,), (1358889732,), (1358889737,), (1358889741,), (1358889744,), (1358889748,), (1358889799,), (1358889803,), (1358889808,), (1358889812,), (1358889816,), (1358889895,), (1358889922,), (1358889951,), (1358889977,), (1358890010,), (1358890041,), (1358890296,), (1358890328,), (1358890357,), (1358890394,), (1358890425,), (1358890721,), (1358890748,), (1358890777,), (1358890780,), (1358890783,), (1358890950,), (1358890954,), (1358890957,), (1358890959,), (1358890963,), (1358891465,), (1358891467,), (1358891470,), (1358891746,), (1358891772,), (1358891777,), (1358891783,), (1358891786,), (1358891789,), (1358891826,), (1358891870,), (1358891873,), (1358891879,), (1358891928,), (1358891979,), (1358892016,), (1358892020,), (1358892078,), (1358892106,), (1358892264,), (1358892250,), (1358892257,), (1358892261,), (1358892412,), (1358892419,), (1358892424,), (1358892430,), (1358892467,), (1358892469,), (1358892472,), (1358892508,), (1358892510,), (1358892513,), (1358892515,), (1358892528,), (1358892539,), (1358892565,), (1358892566,), (1358892567,), (1358892569,), (1358892571,), (1358892574,), (1358892599,), (1358892603,), (1358892651,), (1358892653,), (1358892669,), (1358892671,), (1358892672,), (1358892678,), (1358892787,), (1358892814,), (1358892818,), (1358892849,), (1358892964,), (1358892990,), (1358893054,), (1358893115,), (1358893310,), (1358893313,), (1358893317,), (1358893451,), (1358893455,), (1358893459,), (1358893562,), (1358893578,), (1358893607,), (1358893633,), (1358893645,), (1358893656,), (1358893774,), (1358893777,), (1358893781,), (1358893818,), (1358893822,), (1358893849,), (1358893852,), (1358893854,), (1358893857,), (1358893907,), (1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,), (1358897624,), (1358897406,), (1358897462,), (1358897511,), (1358897565,), (1358898156,), (1358898219,), (1358898276,), (1358898327,), (1358898392,), (1358898863,), (1358898888,), (1358898909,), (1358898912,), (1358899186,), (1358899218,), (1358899241,), (1358899263,), (1358899274,), (1358899589,), (1358899620,), (1358899641,), (1358899644,), (1358899648,), (1358899802,), (1358899893,), (1358899920,), (1358900105,), (1358900108,), (1358900111,), (1358900113,), (1358900158,), (1358900161,), (1358900200,), (1358900202,), (1358900205,), (1358900207,), (1358900210,), (1358900240,), (1358900242,), (1358900246,), (1358900302,), (1358900319,), (1358900353,), (1358900694,), (1358900725,), (1358900754,), (1358901088,), (1358901117,), (1358901148,), (1358901175,), (1358901192,), (1358901234,), (1358901378,), (1358901407,), (1358901453,), (1358901783,), (1358901815,), (1358901841,), (1358901847,), (1358901852,), (1358901916,), (1358901879,), (1358901886,), (1358902200,), (1358902205,), (1358902399,), (1358902404,), (1358902408,), (1358902444,), (1358902451,), (1358902467,), (1358902484,), (1358902504,), (1358902510,), (1358902534,), (1358902540,), (1358902589,), (1358902593,), (1358902598,), (1358902640,), (1358902643,), (1358902646,), (1358902649,), (1358902654,), (1358902658,), (1358902697,), (1358902700,), (1358902703,), (1358902705,), (1358902707,), (1358902735,), (1358902736,), (1358902738,), (1358902740,), (1358902742,), (1358902918,), (1358902942,), (1358902968,), (1358903252,), (1358903277,), (1358903299,), (1358903463,), (1358903483,), (1358903487,), (1358903490,), (1358903643,), (1358903648,), (1358903660,), (1358903686,), (1358903712,), (1358903959,), (1358904014,), (1358904550,), (1358904523,), (1358904927,), (1358904954,), (1358904975,), (1358904977,), (1358905116,), (1358905120,), (1358905123,), (1358905146,), (1358905172,), (1358905314,), (1358905473,), (1358905866,), (1358905869,), (1358905873,), (1358905941,), (1358905945,), (1358905950,), (1358906056,), (1358906347,), (1358906555,), (1358906559,), (1358906596,), (1358906600,), (1358906604,), (1358906608,), (1358906667,), (1358906670,), (1358906673,), (1358906676,), (1358906681,), (1358906897,), (1358906903,), (1358906909,), (1358907036,), (1358906978,), (1358907005,), (1358907029,), (1358907140,), (1358907145,), (1358907255,), (1358907282,), (1358907310,), (1358907398,), (1358907401,), (1358907410,), (1358907440,), (1358907442,), (1358907856,), (1358908325,), (1358908377,), (1358908433,), (1358908435,), (1358908436,), (1358908437,), (1358908546,), (1358908550,), (1358908553,), (1358908591,), (1358908600,), (1358908697,), (1358908700,), (1358908747,), (1358908751,), (1358908757,), (1358909329,), (1358909361,), (1358909398,), (1358909430,), (1358909461,), (1358909708,), (1358909694,), (1358909699,), (1358909704,), (1358910019,), (1358910066,), (1358910095,), (1358910123,), (1358910183,), (1358910230,), (1358910636,), (1358910687,), (1358910737,), (1358910789,), (1358911369,), (1358911422,), (1358911475,), (1358911526,), (1358911578,), (1358911635,), (1358912306,), (1358912376,), (1358912403,), (1358912431,), (1358913065,), (1358913114,), (1358913159,), (1358913196,), (1358913221,), (1358913261,), (1358913266,), (1358913272,), (1358913276,), (1358913280,), (1358913556,), (1358913610,), (1358913666,), (1358913708,), (1358913990,), (1358913997,), (1358914006,), (1358914009,), (1358914013,), (1358914137,), (1358914233,), (1358914259,), (1358914285,), (1358914314,), (1358914595,), (1358914622,), (1358936608,), (1358934651,), (1358936582,), (1358937143,), (1358937200,), (1358938031,), (1358938064,), (1358938091,), (1358938472,), (1358938483,), (1358938764,), (1358938783,), (1358938800,), (1358938830,), (1358938863,), (1358938890,), (1358939053,), (1358939087,), (1358939518,), (1358939548,), (1358939575,), (1358940052,), (1358940087,), (1358940128,), (1358940155,), (1358940530,), (1358940541,), (1358940543,), (1358940557,), (1358940560,), (1358940921,), (1358940815,), (1358940842,), (1358940881,), (1358940910,), (1358941073,), (1358941096,), (1358941099,), (1358941110,), (1358941248,), (1358941311,), (1358941319,), (1358941322,), (1358941325,), (1358941329,), (1358941360,), (1358941389,), (1358941394,), (1358941398,), (1358941402,), (1358941488,), (1358941493,), (1358941502,), (1358941584,), (1358941591,), (1358941598,), (1358941602,), (1358941745,), (1358941749,), (1358941753,), (1358941756,), (1358941761,), (1358941770,), (1358942015,), (1358942053,), (1358942104,), (1358942619,), (1358942628,), (1358942631,), (1358942640,), (1358942665,), (1358942697,), (1358942844,), (1358942845,), (1358942849,), (1358942853,), (1358942856,), (1358942872,), (1358943013,), (1358943017,), (1358943021,), (1358943023,), (1358943058,), (1358943061,), (1358943064,), (1358943300,), (1358943334,), (1358943366,), (1358943415,), (1358943473,), (1358943699,), (1358943794,), (1358943849,), (1358943903,), (1358943951,), (1358944780,), (1358944263,), (1358944345,), (1358944458,), (1358944565,), (1358944682,), (1358945748,), (1358945847,), (1358945953,), (1358946681,), (1358946763,), (1358946829,), (1358946911,), (1358947621,), (1358947680,), (1358947736,), (1358947808,), (1358947880,), (1358947975,), (1358948630,), (1358948661,), (1358948686,), (1358948717,), (1358948776,), (1358949106,), (1358949111,), (1358949116,), (1358949121,), (1358949232,), (1358949261,), (1358949291,), (1358949323,), (1358949354,), (1358949383,), (1358949511,), (1358949519,), (1358949547,), (1358949566,), (1358949896,), (1358949932,), (1358949981,), (1358950035,), (1358950080,), (1358950111,), (1358950477,), (1358950505,), (1358950538,), (1358950567,), (1358950910,), (1358950942,), (1358950975,), (1358951338,), (1358951406,), (1358951465,), (1358951560,), (1358951655,), (1358951730,), (1358952204,), (1358952270,), (1358952332,), (1358952389,), (1358952437,), (1358952595,), (1358952627,), (1358952655,), (1358952689,), (1358952719,), (1358952886,), (1358952890,), (1358952893,), (1358953210,), (1358953030,), (1358953041,), (1358953069,), (1358953115,), (1358953172,), (1358953583,), (1358953621,), (1358953662,), (1358953696,), (1358953727,), (1358953759,), (1358954251,), (1358954255,), (1358954260,), (1358954286,), (1358954614,), (1358954628,), (1358954660,), (1358954689,), (1358954719,), (1358954848,), (1358954873,), (1358954881,), (1358954905,), (1358954916,), (1358954934,), (1358955216,), (1358955233,), (1358955238,), (1358955347,), (1358955760,), (1358955791,), (1358955796,), (1358955799,), (1358955986,), (1358956012,), (1358956044,), (1358956370,), (1358956389,), (1358956390,), (1358956394,), (1358956397,), (1358956453,), (1358956529,), (1358956606,), (1358956682,), (1358956755,), (1358956807,), (1358956811,), (1358956814,), (1358956817,), (1358956819,), (1358957767,), (1358957618,), (1358957668,), (1358957701,), (1358957732,), (1358958115,), (1358958155,), (1358958197,), (1358958239,), (1358958592,), (1358958603,), (1358958633,), (1358958654,), (1358958682,), (1358958734,), (1358958924,), (1358958928,), (1358958933,), (1358958937,), (1358958945,), (1358959026,), (1358959447,), (1358959452,), (1358959454,), (1358959989,), (1358959995,), (1358960017,), (1358960045,), (1358960070,), (1358960080,), (1358960276,), (1358960288,), (1358960292,), (1358960294,), (1358960384,), (1358960389,), (1358960392,), (1358960428,), (1358960433,), (1358960435,), (1358960440,), (1358960442,), (1358960447,), (1358960478,), (1358960480,), (1358960483,), (1358960485,), (1358960488,), (1358960525,), (1358960528,), (1358960532,), (1358960535,), (1358960684,), (1358960709,), (1358960737,), (1358960763,), (1358960795,), (1358960827,), (1358960962,), (1358960978,), (1358960983,), (1358960985,), (1358961071,), (1358961074,), (1358961095,), (1358961099,), (1358961120,), (1358961143,), (1358961277,), (1358961281,), (1358961282,), (1358961284,), (1358961336,), (1358962017,), (1358961853,), (1358961927,), (1358961981,), (1358961984,), (1358962009,), (1358962286,), (1358962288,), (1358962292,), (1358962901,), (1358962923,), (1358962949,), (1358962968,), (1358962972,), (1358963094,), (1358963098,), (1358963102,), (1358963106,), (1358963109,), (1358963111,), (1358963141,), (1358963146,), (1358963188,), (1358963192,), (1358963204,), (1358963207,), (1358963210,), (1358963316,), (1358963343,), (1358963372,), (1358963375,), (1358963378,), (1358963505,), (1358963517,), (1358963522,), (1358963524,), (1358963646,), (1358963656,), (1358963659,), (1358963662,), (1358963665,), (1358963669,), (1358963699,), (1358963724,), (1358963753,), (1358963778,), (1358963809,), (1358964102,), (1358964131,), (1358964160,), (1358964677,), (1358964732,), (1358964785,), (1358964838,), (1358964895,), (1358964947,), (1358965441,), (1358965485,), (1358965531,), (1358965575,), (1358967003,), (1358967105,), (1358967206,), (1358967282,), (1358967422,), (1358967454,), (1358967483,), (1358967514,), (1358967544,), (1358968261,), (1358967947,), (1358968070,), (1358968187,), (1358969299,), (1358969392,), (1358969488,), (1358969582,), (1358969678,), (1358969771,), (1358970417,), (1358970458,), (1358970557,), (1358970615,), (1358970666,), (1358970921,), (1358970926,), (1358970954,), (1358970983,), (1358971375,), (1358971434,), (1358971476,), (1358971504,), (1358971518,), (1358971527,), (1358971957,), (1358971963,), (1358971998,), (1358973817,), (1358974095,), (1358974315,), (1358974232,), (1358974235,), (1358974239,), (1358974242,), (1358974272,), (1358974599,), (1358974628,), (1358974673,), (1358974971,), (1358974979,), (1358975163,), (1358975167,), (1358975184,), (1358975242,), (1358975291,), (1358975327,), (1358975370,), (1358975393,), (1358975395,), (1358975421,), (1358975545,), (1358975550,), (1358975554,), (1358975559,), (1358975563,), (1358975599,), (1358975603,), (1358975606,), (1358975610,), (1358975741,), (1358975763,), (1358975790,), (1358975848,), (1358975885,), (1358975913,), (1358976036,), (1358976042,), (1358976045,), (1358976318,), (1358976341,), (1358976348,), (1358976663,), (1358976689,), (1358976698,), (1358976752,), (1358976836,), (1358976903,), (1358977234,), (1358977279,), (1358977319,), (1358977356,), (1358977635,), (1358977640,), (1358977685,), (1358977690,), (1358977715,), (1358977861,), (1358977864,), (1358977910,), (1358977978,), (1358977982,), (1358977985,), (1358978235,), (1358978250,), (1358978419,), (1358978403,), (1358978406,), (1358978410,), (1358978412,), (1358978415,), (1358978457,), (1358978464,), (1358978475,), (1358978479,), (1358978794,), (1358978864,), (1358978940,), (1358979280,), (1358979292,), (1358979487,), (1358979491,), (1358979514,), (1358979531,), (1358979602,), (1358979607,), (1358979635,), (1358979663,), (1358979693,), (1358979752,), (1358979973,), (1358980031,), (1358980051,), (1358980058,), (1358980206,), (1358980210,), (1358980213,), (1358980217,), (1358980221,), (1358980274,), (1358980277,), (1358980282,), (1358980303,), (1358980333,), (1358980374,), (1358980588,), (1358980593,), (1358980609,), (1358980653,), (1358980686,), (1358980715,), (1358980868,), (1358980871,), (1358980876,), (1358980880,), (1358980884,), (1358981026,), (1358981038,), (1358981060,), (1358981076,), (1358981085,), (1358981169,), (1358981173,), (1358981178,), (1358981248,), (1358981249,), (1358981252,), (1358981254,), (1358981262,), (1358981266,), (1358981296,), (1358981300,), (1358981310,), (1358981317,), (1358981511,), (1358981524,), (1358981525,), (1358981544,), (1358981573,), (1358981579,), (1358981646,), (1358981638,), (1358981642,), (1358981675,), (1358981702,), (1358981845,), (1358981849,), (1358982449,), (1358982471,), (1358982496,), (1358982504,), (1358982516,), (1358982522,), (1358982592,), (1358982618,), (1358982652,), (1358982685,), (1358982714,), (1358982810,), (1358982900,), (1358982903,), (1358982907,), (1358982980,), (1358983013,), (1358983032,), (1358983037,), (1358983040,), (1358983044,), (1358983194,), (1358983239,), (1358983320,), (1358983340,), (1358983359,), (1358983507,), (1358983543,), (1358983575,), (1358983661,), (1358983678,), (1358983712,), (1358983716,), (1358983721,), (1358983726,), (1358983732,), (1358983738,), (1358983765,), (1358983770,), (1358983774,), (1358983777,), (1358983782,), (1358983821,), (1358983827,), (1358983839,), (1358983844,), (1358983904,), (1358983910,), (1358983917,), (1358983944,), (1358983980,), (1358984010,), (1358984895,), (1358984928,), (1358984961,), (1358985139,), (1358985202,), (1358985253,), (1358985281,), (1358985315,), (1358985706,), (1358985584,), (1358985615,), (1358985649,), (1358985673,), (1358985982,), (1358986011,), (1358986019,), (1358986503,), (1358986564,), (1358986647,), (1358986709,), (1358986774,), (1358987188,), (1358987217,), (1358987249,), (1358987279,), (1358987307,), (1358987335,), (1358987574,), (1358987601,), (1358987631,), (1358987662,), (1358987918,), (1358987941,), (1358987945,), (1358987955,), (1358987985,), (1358988034,), (1358988427,), (1358988454,), (1358988467,), (1358988472,), (1358988739,), (1358988773,), (1358988784,), (1358988797,), (1358988869,), (1358988873,), (1358988877,), (1358988939,), (1358988951,), (1358988963,), (1358988968,), (1358988973,), (1358989102,), (1358989119,), (1358989135,), (1358989146,), (1358989177,), (1358989182,), (1358989242,), (1358989246,), (1358989250,), (1358989302,), (1358989307,), (1358989315,), (1358989318,), (1358989323,), (1358989439,), (1358989457,), (1358989477,), (1358989495,), (1358989500,), (1358989505,), (1358989643,), (1358989649,), (1358989664,), (1358989668,), (1358989747,), (1358989725,), (1358989729,), (1358989734,), (1358989737,), (1358989742,), (1358989779,), (1358989788,), (1358989790,), (1358989794,), (1358989831,), (1358989835,), (1358989841,), (1358989845,), (1358989849,), (1358989852,), (1358989883,), (1358989888,), (1358989893,), (1358989897,), (1358989933,), (1358989936,), (1358989939,), (1358989941,), (1358989942,), (1358989991,), (1358989994,), (1358989998,), (1358990000,), (1358990064,), (1358990094,), (1358990128,), (1358990573,), (1358990608,), (1358990655,), (1358990700,), (1358990735,), (1358990786,), (1358991077,), (1358991135,), (1358991199,), (1358991834,), (1358991872,), (1358991903,), (1358991932,), (1358992469,), (1358992531,), (1358992603,), (1358993089,), (1358993100,), (1358993149,), (1358993713,), (1358993725,), (1358993756,), (1358993784,), (1358993826,), (1358994152,), (1358994212,), (1358994264,), (1358994345,), (1358994720,), (1358994737,), (1358994742,), (1358994824,), (1358994799,), (1358994803,), (1358994809,), (1358994814,), (1358994819,), (1358995042,), (1358995045,), (1358995047,), (1358995051,), (1358995055,), (1358995061,), (1358995086,), (1358995089,), (1358995093,), (1358995097,), (1358995134,), (1358995136,), (1358995138,), (1358995139,), (1358995143,), (1358995147,), (1358995178,), (1358995182,), (1358995185,), (1358995190,), (1358995246,), (1358995274,), (1358995300,), (1358995682,), (1358995707,), (1358995738,), (1358995763,), (1358996164,), (1358996189,), (1358996267,), (1358996319,), (1358996408,), (1358996697,), (1358996725,), (1358996758,), (1358997288,), (1358997359,), (1358997405,), (1358997487,), (1358997520,), (1358997758,), (1358997824,), (1358997866,), (1358997905,), (1358998619,), (1358998648,), (1358998676,), (1358999088,), (1358999117,), (1358999147,), (1358999164,), (1358999181,), (1358999615,), (1358999643,), (1358999674,), (1358999701,), (1358999749,), (1359000628,), (1359000664,), (1359000715,), (1359000745,), (1359001057,), (1359000946,), (1359000971,), (1359000998,), (1359001029,), (1359001291,), (1359001296,), (1359001301,), (1359001314,), (1359001344,), (1359001469,), (1359001474,), (1359001508,), (1359001536,), (1359001569,), (1359001755,), (1359001759,), (1359001763,), (1359001766,), (1359001802,), (1359001806,), (1359001807,), (1359001812,), (1359001816,), (1359001911,), (1359001938,), (1359001965,), (1359001993,), (1359002380,), (1359002411,), (1359002415,), (1359002420,), (1359002431,), (1359002459,), (1359002500,), (1359002505,), (1359002509,), (1359002550,), (1359002724,), (1359002735,), (1359002743,), (1359002759,), (1359002762,), (1359002766,), (1359002874,), (1359002878,), (1359002880,), (1359003247,), (1359003306,), (1359003354,), (1359003652,), (1359003678,), (1359003706,), (1359003727,), (1359003730,), (1359003735,), (1359004270,), (1359004334,), (1359004396,), (1359004431,), (1359004475,), (1359004511,), (1359004617,), (1359004655,), (1359004688,), (1359005384,), (1359004989,), (1359005104,), (1359005225,), (1359005304,), (1359005345,), (1359005751,), (1359005805,), (1359005862,), (1359005918,), (1359005985,), (1359006052,), (1359007002,), (1359007088,), (1359007164,), (1359007242,), (1359007646,), (1359007663,), (1359007699,), (1359007753,), (1359008386,), (1359008416,), (1359008465,), (1359008936,), (1359008942,), (1359008957,), (1359008988,), (1359009024,), (1359009228,), (1359009267,), (1359009298,), (1359009660,), (1359009725,), (1359009792,), (1359009835,), (1359010234,), (1359010271,), (1359010305,), (1359010363,), (1359010406,), (1359010435,), (1359010588,), (1359010593,), (1359010616,), (1359010652,), (1359011095,), (1359011210,), (1359011248,), (1359011285,), (1359011326,), (1359011356,), (1359011503,), (1359011531,), (1359011560,), (1359011594,), (1359011599,), (1359011614,), (1359011995,), (1359012029,), (1359012060,), (1359012128,), (1359012318,), (1359012377,), (1359012413,), (1359012428,), (1359012446,), (1359012466,), (1359012636,), (1359012675,), (1359012693,), (1359012699,), (1359012792,), (1359012780,), (1359012785,), (1359012789,), (1359012880,), (1359012884,), (1359012888,), (1359012891,), (1359012895,), (1359012910,), (1359013049,), (1359013056,), (1359013060,), (1359013080,), (1359013109,), (1359013117,), (1359013216,), (1359013233,), (1359013236,), (1359013271,), (1359013274,), (1359013278,), (1359013281,), (1359013317,), (1359013664,), (1359013710,), (1359013739,), (1359013773,), (1359013802,), (1359013832,), (1359014015,), (1359014020,), (1359014028,), (1359014738,), (1359015556,), (1359015615,), (1359015672,), (1359015947,), (1359015952,), (1359015977,), (1359016249,), (1359016322,), (1359016356,), (1359016404,), (1359016426,), (1359016597,), (1359016628,), (1359016904,), (1359016932,), (1359016991,), (1359016996,), (1359017032,), (1359017037,), (1359017045,), (1359017050,), (1359017057,), (1359018085,), (1359020145,), (1359020152,), (1359020157,), (1359020160,), (1359020163,), (1359020297,), (1359020366,), (1359020648,), (1359020655,), (1359020694,), (1359020697,), (1359020700,), (1359020706,), (1359020832,), (1359020860,), (1359020883,), (1359020911,), (1359021751,), (1359021754,), (1359022436,), (1359022474,), (1359022486,), (1359022504,), (1359022573,), (1359022920,), (1359022876,), (1359022880,), (1359022896,), (1359023133,), (1359023167,), (1359023213,), (1359023247,), (1359023265,), (1359023407,), (1359023412,), (1359023439,), (1359023471,), (1359023490,), (1359023528,), (1359023532,), (1359023537,), (1359023540,), (1359023583,), (1359023588,), (1359023596,), (1359023623,), (1359023651,), (1359023843,), (1359023847,), (1359023851,), (1359023891,), (1359023896,), (1359023900,), (1359024018,), (1359024023,), (1359024028,), (1359024077,), (1359024119,), (1359024123,), (1359024127,), (1359024131,), (1359024135,), (1359024137,), (1359024190,), (1359024220,), (1359024236,), (1359024245,), (1359024557,), (1359024610,), (1359024776,), (1359024782,), (1359024788,), (1359024791,), (1359024940,), (1359024975,), (1359025007,), (1359025039,), (1359025070,), (1359025195,), (1359025200,), (1359025206,), (1359025210,), (1359025274,), (1359025261,), (1359025265,), (1359025270,), (1359025310,), (1359025315,), (1359025320,), (1359025324,), (1359025326,), (1359025330,), (1359025451,), (1359025480,), (1359025509,), (1359025536,), (1359025565,), (1359025609,), (1359025749,), (1359025752,), (1359025781,), (1359025916,), (1359025940,), (1359025971,), (1359026002,), (1359026040,), (1359026190,), (1359026195,), (1359026199,), (1359026236,), (1359026239,), (1359026245,), (1359026259,), (1359026435,), (1359026447,), (1359026488,), (1359026502,), (1359026528,), (1359026694,), (1359026705,), (1359026714,), (1359026717,), (1359026811,), (1359026831,), (1359026845,), (1359026850,), (1359026970,), (1359026974,), (1359026979,), (1359026982,), (1359026986,), (1359027070,), (1359027090,), (1359027099,), (1359027111,), (1359027115,), (1359027117,), (1359027157,), (1359027162,), (1359027168,), (1359027171,), (1359027174,), (1359027178,), (1359027311,), (1359027313,), (1359027316,), (1359027351,), (1359027356,), (1359027361,), (1359027366,), (1359027370,), (1359027375,), (1359027422,), (1359027407,), (1359027411,), (1359027415,), (1359027418,), (1359027538,), (1359027540,), (1359027544,), (1359027629,), (1359027633,), (1359027637,), (1359027647,), (1359027683,), (1359027742,), (1359027744,), (1359027746,), (1359027748,), (1359027751,), (1359027753,), (1359027852,), (1359027868,), (1359027874,), (1359027889,), (1359027906,), (1359027916,), (1359027987,), (1359027995,), (1359028001,), (1359028005,), (1359028049,), (1359028057,), (1359028058,), (1359028061,), (1359028063,), (1359028068,), (1359028092,), (1359028094,), (1359028097,), (1359028100,), (1359028105,), (1359028108,), (1359028146,), (1359028166,), (1359028169,), (1359028201,), (1359028205,), (1359028220,), (1359028230,), (1359028236,), (1359028301,), (1359028304,), (1359028309,), (1359028313,), (1359028316,), (1359028350,), (1359028353,), (1359028356,), (1359028545,), (1359028548,), (1359028552,), (1359028555,), (1359028559,), (1359028563,), (1359028716,), (1359028746,), (1359028783,), (1359028815,), (1359028849,), (1359029045,), (1359029048,), (1359029157,), (1359029174,), (1359029932,), (1359029658,), (1359029720,), (1359029761,), (1359029813,), (1359030280,), (1359030312,), (1359030349,), (1359030378,), (1359030415,), (1359031168,), (1359031198,), (1359031241,), (1359032308,), (1359032356,), (1359032394,), (1359033021,), (1359033083,), (1359033139,), (1359033191,), (1359033251,), (1359033793,), (1359033854,), (1359033927,), (1359033967,), (1359034113,), (1359034118,), (1359034122,), (1359034125,), (1359034423,), (1359034459,), (1359034492,), (1359034523,), (1359034556,), (1359034584,), (1359034872,), (1359034905,), (1359034934,), (1359034963,), (1359035367,), (1359035481,), (1359035506,), (1359035540,), (1359035836,), (1359035865,), (1359035896,), (1359035931,), (1359035965,), (1359035973,), (1359036001,), (1359036028,), (1359036069,), (1359036125,), (1359036182,), (1359036235,), (1359036504,), (1359036534,), (1359036544,), (1359036755,), (1359036786,), (1359036827,), (1359036857,), (1359037457,), (1359037489,), (1359037542,), (1359037654,), (1359038097,), (1359038497,), (1359038538,), (1359038554,), (1359038557,), (1359038583,), (1359038587,), (1359038637,), (1359038641,), (1359038645,), (1359038648,), (1359038777,), (1359038790,), (1359038801,), (1359038808,), (1359038934,), (1359038937,), (1359038939,), (1359038942,), (1359038946,), (1359038951,), (1359039007,), (1359039011,), (1359039015,), (1359039018,), (1359039020,), (1359039024,), (1359039048,), (1359039054,), (1359039058,), (1359039061,), (1359039160,), (1359039181,), (1359039194,), (1359039196,), (1359039219,), (1359039224,), (1359039296,), (1359039327,), (1359039356,), (1359039364,), (1359039375,), (1359039379,), (1359039495,), (1359039506,), (1359039511,), (1359039777,), (1359039784,), (1359039806,), (1359039810,), (1359039814,), (1359039816,), (1359039950,), (1359039953,), (1359039957,), (1359039960,), (1359039963,), (1359040083,), (1359040104,), (1359040109,), (1359040216,), (1359040220,), (1359040224,), (1359040227,), (1359040230,), (1359040234,), (1359040285,), (1359040267,), (1359040272,), (1359040277,), (1359040281,), (1359040384,), (1359040388,), (1359040392,), (1359040396,), (1359040433,), (1359040439,), (1359040444,), (1359040457,), (1359040461,), (1359040463,), (1359040488,), (1359040492,), (1359040496,), (1359040499,), (1359040502,), (1359040658,), (1359040696,), (1359040726,), (1359040741,), (1359040955,), (1359040971,), (1359040980,), (1359040990,), (1359041019,), (1359041026,), (1359041171,), (1359041199,), (1359041230,), (1359041976,), (1359042266,), (1359042705,), (1359042637,), (1359042669,), (1359042959,), (1359042962,), (1359042965,), (1359042970,), (1359043244,), (1359043246,), (1359043766,), (1359043767,), (1359043777,), (1359043782,), (1359044417,), (1359045093,), (1359045099,), (1359045120,), (1359045893,), (1359047063,), (1359047141,), (1359047217,), (1359047295,), (1359047372,), (1359048416,), (1359048492,), (1359048550,), (1359049371,), (1359049453,), (1359049508,), (1359049559,), (1359049616,), (1359050050,), (1359050068,), (1359050086,), (1359050098,), (1359050261,), (1359050288,), (1359050317,), (1359050343,), (1359050372,), (1359050559,), (1359050565,), (1359050592,), (1359050626,), (1359050651,), (1359050690,), (1359050992,), (1359051002,), (1359051006,), (1359051022,), (1359051050,), (1359051100,), (1359051102,), (1359051105,), (1359051107,), (1359051113,), (1359051119,), (1359051271,), (1359051284,), (1359051296,), (1359051298,), (1359051364,), (1359051366,), (1359051369,), (1359051372,), (1359051406,), (1359051409,), (1359051413,), (1359051416,), (1359051417,), (1359051521,), (1359051544,), (1359051551,), (1359051570,), (1359051595,), (1359051598,), (1359051603,), (1359051607,), (1359051609,), (1359051843,), (1359051832,), (1359051836,), (1359051839,), (1359051841,), (1359051956,), (1359051963,), (1359051968,), (1359052004,), (1359052008,), (1359052011,), (1359052012,), (1359052016,), (1359052025,), (1359052051,), (1359052053,), (1359052057,), (1359052060,), (1359052062,), (1359052065,), (1359052133,), (1359052158,), (1359052182,), (1359052280,), (1359052283,), (1359052286,), (1359052289,), (1359052296,), (1359052301,), (1359052327,), (1359052330,), (1359052334,), (1359052337,), (1359052340,), (1359052343,), (1359052457,), (1359052470,), (1359052480,), (1359052558,), (1359052561,), (1359052567,), (1359052572,), (1359052576,), (1359052604,), (1359052608,), (1359052612,), (1359052615,), (1359052619,), (1359052719,), (1359052739,), (1359052754,), (1359052757,), (1359052919,), (1359052923,), (1359052928,), (1359052932,), (1359053246,), (1359053279,), (1359053308,), (1359053320,), (1359053324,), (1359053443,), (1359053450,), (1359053468,), (1359053498,), (1359053528,), (1359053632,), (1359053663,), (1359053681,), (1359053726,), (1359053717,), (1359053721,), (1359053843,), (1359053855,), (1359053867,), (1359053886,), (1359053889,), (1359053890,), (1359054114,), (1359054141,), (1359054520,), (1359054550,), (1359054556,), (1359054561,), (1359054564,), (1359054716,), (1359054741,), (1359054768,), (1359054795,), (1359055124,), (1359055140,), (1359055182,), (1359055567,), (1359055575,), (1359055592,), (1359055595,), (1359055599,), (1359055688,), (1359055717,), (1359055745,), (1359055778,), (1359055784,), (1359055786,), (1359055813,), (1359055817,), (1359055821,), (1359055824,), (1359055863,), (1359055904,), (1359055926,), (1359055954,), (1359061752,), (1359062434,), (1359062490,), (1359062530,), (1359062890,), (1359062965,), (1359063001,), (1359063006,), (1359063011,), (1359063086,), (1359063162,), (1359063245,), (1359063250,), (1359063255,), (1359063317,), (1359063322,), (1359063390,), (1359063553,), (1359063698,), (1359063701,), (1359063856,), (1359063848,), (1359063853,), (1359063990,), (1359064114,), (1359064223,), (1359064227,), (1359064295,), (1359064386,), (1359064511,), (1359064514,), (1359064518,), (1359064537,), (1359064540,), (1359064565,), (1359064609,), (1359064612,), (1359064661,), (1359064724,), (1359066020,), (1359066046,), (1359066103,), (1359066133,), (1359066246,), (1359066264,), (1359066286,), (1359066289,), (1359066323,), (1359066418,), (1359066806,), (1359066809,), (1359066833,), (1359067010,), (1359067028,), (1359067056,), (1359067103,), (1359067106,), (1359067369,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16052025': {'nb_upload': 10, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23083052]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] map_info['map_portfolio_photo'] : {23083052: [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245]} final : True mtd_id 4302 list_pids : [1359063856, 1359063701, 1359063698, 1359063553, 1359063390, 1359063322, 1359063317, 1359063255, 1359063250, 1359063245] Looping around the photos to save general results len do output : 1 /23083052Didn'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, '2924650') ('4302', '23083052', '1359063856', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650') ('4302', None, None, None, None, None, None, None, '2924650') ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '23083052', 'None', None, None, None, None, '2924650'), ('4302', '23083052', '1359063856', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063701', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063698', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063553', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063390', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063322', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063317', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063255', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063250', None, None, None, None, None, '2924650'), ('4302', '23083052', '1359063245', None, None, None, None, None, '2924650')] time used for this insertion : 0.019229412078857422 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.77982234954834 time spend to save output : 0.019510746002197266 total time spend for step 5 : 4.799333095550537 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 (2924650) 2.70user 2.68system 0:14.28elapsed 37%CPU (0avgtext+0avgdata 160304maxresident)k 792inputs+9032outputs (6major+75720minor)pagefaults 0swaps