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 : 1904248 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 (2631286) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2631286) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960307 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2631286'] with mtr_portfolio_ids : ['20960307'] and first list_photo_ids : [] new path : /proc/1904248/ Name: python3 Umask: 0002 State: R (running) Tgid: 1904248 Ngid: 0 Pid: 1904248 PPid: 1904231 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1904248 NSpid: 1904248 NSpgid: 1903038 NSsid: 1903038 VmPeak: 943004 kB VmSize: 943004 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98692 kB VmRSS: 98692 kB RssAnon: 59764 kB RssFile: 38928 kB RssShmem: 0 kB VmData: 701752 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 62 nonvoluntary_ctxt_switches: 170 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1904248', 'Ngid': '0', 'Pid': '1904248', 'PPid': '1904231', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1904248', 'NSpid': '1904248', 'NSpgid': '1903038', 'NSsid': '1903038', 'VmPeak': '943004 kB', 'VmSize': '943004 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98692 kB', 'VmRSS': '98692 kB', 'RssAnon': '59764 kB', 'RssFile': '38928 kB', 'RssShmem': '0 kB', 'VmData': '701752 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '62', 'nonvoluntary_ctxt_switches': '170'} ('datou_batch_current', '1904248', '943004', '0', '943004', '701752', '98692', b'', 'marlene', '2631286') 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 (20960307) 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 (2631286 ) ) 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 (20960307) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340579766, 'portfolio_id': 20960307}, {'photo_id': 1340578983, 'portfolio_id': 20960307}, {'photo_id': 1340578967, 'portfolio_id': 20960307}, {'photo_id': 1340578961, 'portfolio_id': 20960307}, {'photo_id': 1340578957, 'portfolio_id': 20960307}, {'photo_id': 1340578932, 'portfolio_id': 20960307}, {'photo_id': 1340578930, 'portfolio_id': 20960307}, {'photo_id': 1340578911, 'portfolio_id': 20960307}, {'photo_id': 1340578909, 'portfolio_id': 20960307}, {'photo_id': 1340578907, 'portfolio_id': 20960307}, {'photo_id': 1340578895, 'portfolio_id': 20960307}, {'photo_id': 1340578892, 'portfolio_id': 20960307}, {'photo_id': 1340578888, 'portfolio_id': 20960307}, {'photo_id': 1340578885, 'portfolio_id': 20960307}, {'photo_id': 1340578882, 'portfolio_id': 20960307}, {'photo_id': 1340578880, 'portfolio_id': 20960307}, {'photo_id': 1340578861, 'portfolio_id': 20960307}, {'photo_id': 1340578858, 'portfolio_id': 20960307}] map_portfolio_id_photo_id: {20960307: [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858]} ##### 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.2507026195526123 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 4 05:34:27 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 (20960307) 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 : 20960307 get user id for portfolio 20960307 get sub ptf for main ptf 20960307, type 3726 and hashtags ['mal_croppe', 'cartonnette', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'flou', 'autre_refus', 'papier', 'Carton_brun', '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`=20960307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','kraft','Carton_gris','Teint_Dans_La_Masse','plastique','metal','flou','autre_refus','papier','Carton_brun','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`=20960307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','kraft','Carton_gris','Teint_Dans_La_Masse','plastique','metal','flou','autre_refus','papier','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20960307, 'sub_port_id': 20960310, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582273, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'Carton_gris': {'main_port_id': 20960307, 'sub_port_id': 20960311, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582274, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'environnement': {'main_port_id': 20960307, 'sub_port_id': 20960312, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582275, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20960307, 'sub_port_id': 20960313, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582276, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'autre_refus': {'main_port_id': 20960307, 'sub_port_id': 20960314, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582277, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'flou': {'main_port_id': 20960307, 'sub_port_id': 20960315, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582278, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'cartonnette': {'main_port_id': 20960307, 'sub_port_id': 20960316, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582279, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'Carton_brun': {'main_port_id': 20960307, 'sub_port_id': 20960317, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582280, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'metal': {'main_port_id': 20960307, 'sub_port_id': 20960318, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582281, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'papier': {'main_port_id': 20960307, 'sub_port_id': 20960319, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582282, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'plastique': {'main_port_id': 20960307, 'sub_port_id': 20960320, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582283, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}, 'kraft': {'main_port_id': 20960307, 'sub_port_id': 20960321, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582284, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20960310 , 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=20960307 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 (20960310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960311 , 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=20960307 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 (20960311) result : ((1340579018,), (1340579031,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960312 , 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=20960307 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 (20960312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960313 , 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=20960307 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 (20960313) result : ((1340578978,), (1340578979,), (1340578980,), (1340578981,), (1340578982,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960314 , 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=20960307 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 (20960314) result : ((1340578962,), (1340578963,), (1340578985,), (1340578986,), (1340578987,), (1340578988,), (1340578989,), (1340579016,), (1340579017,), (1340579023,), (1340579024,), (1340579030,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960315 , 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=20960307 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 (20960315) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960316 , 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=20960307 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 (20960316) result : ((1340578990,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960317 , 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=20960307 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 (20960317) result : ((1340578964,), (1340578991,), (1340578992,), (1340579019,), (1340579020,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960318 , 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=20960307 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 (20960318) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960319 , 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=20960307 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 (20960319) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960320 , 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=20960307 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 (20960320) result : ((1340579021,), (1340579027,), (1340579033,), (1340579034,), (1340579035,), (1340579036,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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 20960321 , 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=20960307 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 (20960321) result : ((1340578994,), (1340578995,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20960307) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,)) 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`=20960307 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','kraft','Carton_gris','Teint_Dans_La_Masse','plastique','metal','flou','autre_refus','papier','Carton_brun','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`=20960307 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','kraft','Carton_gris','Teint_Dans_La_Masse','plastique','metal','flou','autre_refus','papier','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20960307, 'sub_port_id': 20960322, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582285, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'Carton_gris': {'main_port_id': 20960307, 'sub_port_id': 20960323, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582286, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'environnement': {'main_port_id': 20960307, 'sub_port_id': 20960324, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582287, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 20960307, 'sub_port_id': 20960325, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582288, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'autre_refus': {'main_port_id': 20960307, 'sub_port_id': 20960326, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582289, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'flou': {'main_port_id': 20960307, 'sub_port_id': 20960327, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582290, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'cartonnette': {'main_port_id': 20960307, 'sub_port_id': 20960328, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582291, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'Carton_brun': {'main_port_id': 20960307, 'sub_port_id': 20960329, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582292, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'metal': {'main_port_id': 20960307, 'sub_port_id': 20960330, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582293, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'papier': {'main_port_id': 20960307, 'sub_port_id': 20960331, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582294, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'plastique': {'main_port_id': 20960307, 'sub_port_id': 20960332, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582295, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 7), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}, 'kraft': {'main_port_id': 20960307, 'sub_port_id': 20960333, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13582296, 'last_updated_at': datetime.datetime(2025, 3, 3, 5, 34, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 3, 5, 34, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 3, 5, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20960333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20960321 lien utilise dans velours : https://www.fotonower.com/velours/20960322,20960323,20960324,20960325,20960326,20960327,20960328,20960329,20960330,20960331,20960332,20960333?tags=mal_croppe,Carton_gris,environnement,Teint_Dans_La_Masse,autre_refus,flou,cartonnette,Carton_brun,metal,papier,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20960307]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] map_info['map_portfolio_photo'] : {20960307: [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858]} final : False mtd_id 4302 list_pids : [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] Looping around the photos to save general results len do output : 1 /20960307. 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, '2631286') ('4302', '20960307', '1340579766', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '20960307', "{'mal_croppe': 20960310, 'Carton_gris': 20960311, 'environnement': 20960312, 'Teint_Dans_La_Masse': 20960313, 'autre_refus': 20960314, 'flou': 20960315, 'cartonnette': 20960316, 'Carton_brun': 20960317, 'metal': 20960318, 'papier': 20960319, 'plastique': 20960320, 'kraft': 20960321}", None, None, None, None, '2631286'), ('4302', '20960307', '1340579766', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286')] time used for this insertion : 0.22636795043945312 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.433640718460083 time spend to save output : 0.22672104835510254 total time spend for step 1 : 1.6603617668151855 step2:final Tue Mar 4 05:34:29 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 (20960307) 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 20960307 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340578861,1340578858,1340578895,1340578892,1340578888,1340578885,1340578882,1340578880,1340578911,1340578909,1340578907,1340578932,1340578930,1340578967,1340578961,1340578957,1340578983,1340579766); 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([20960307]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} new output for save of step final : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] map_info['map_portfolio_photo'] : {20960307: [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858]} final : False mtd_id 4302 list_pids : [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] Looping around the photos to save general results len do output : 18 /1340579766.Didn't retrieve data . /1340578983.Didn't retrieve data . /1340578967.Didn't retrieve data . /1340578961.Didn't retrieve data . /1340578957.Didn't retrieve data . /1340578932.Didn't retrieve data . /1340578930.Didn't retrieve data . /1340578911.Didn't retrieve data . /1340578909.Didn't retrieve data . /1340578907.Didn't retrieve data . /1340578895.Didn't retrieve data . /1340578892.Didn't retrieve data . /1340578888.Didn't retrieve data . /1340578885.Didn't retrieve data . /1340578882.Didn't retrieve data . /1340578880.Didn't retrieve data . /1340578861.Didn't retrieve data . /1340578858.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, '2631286') ('4302', '20960307', '1340579766', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '20960307', '1340579766', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578983', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578967', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578961', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578957', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578932', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578930', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578911', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578909', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578907', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578895', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578892', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578888', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578885', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578882', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578880', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578861', '0.1163034158505194', None, None, None, None, '2631286'), ('4302', '20960307', '1340578858', '0.1163034158505194', None, None, None, None, '2631286')] time used for this insertion : 0.01898789405822754 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2026805877685547 time spend to save output : 0.020007848739624023 total time spend for step 2 : 0.2226884365081787 step3:velours_tree Tue Mar 4 05:34:29 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 : {20960307: [{'mal_croppe': 20960310, 'Carton_gris': 20960311, 'environnement': 20960312, 'Teint_Dans_La_Masse': 20960313, 'autre_refus': 20960314, 'flou': 20960315, 'cartonnette': 20960316, 'Carton_brun': 20960317, 'metal': 20960318, 'papier': 20960319, 'plastique': 20960320, 'kraft': 20960321}]} input_args_next_step : {20960307: ()} output_args : {20960307: [{'mal_croppe': 20960310, 'Carton_gris': 20960311, 'environnement': 20960312, 'Teint_Dans_La_Masse': 20960313, 'autre_refus': 20960314, 'flou': 20960315, 'cartonnette': 20960316, 'Carton_brun': 20960317, 'metal': 20960318, 'papier': 20960319, 'plastique': 20960320, 'kraft': 20960321}]} args : 20960307 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 : ({'mal_croppe': 20960310, 'Carton_gris': 20960311, 'environnement': 20960312, 'Teint_Dans_La_Masse': 20960313, 'autre_refus': 20960314, 'flou': 20960315, 'cartonnette': 20960316, 'Carton_brun': 20960317, 'metal': 20960318, 'papier': 20960319, 'plastique': 20960320, 'kraft': 20960321},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20960307) 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([20960307]) 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.33580446243286133 time spend to save output : 7.319450378417969e-05 total time spend for step 3 : 0.3358776569366455 step4:send_mail_cod Tue Mar 4 05:34:29 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 : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} input_args_next_step : {1340579766: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340579766 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578983 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578967 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578961 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578957 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578932 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578930 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578911 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578909 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578907 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578895 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578892 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578888 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578885 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578882 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578880 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578861 depend.output_id : 0 input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ()} output_args : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',)} args : 1340578858 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 : {20960307: [{'mal_croppe': 20960310, 'Carton_gris': 20960311, 'environnement': 20960312, 'Teint_Dans_La_Masse': 20960313, 'autre_refus': 20960314, 'flou': 20960315, 'cartonnette': 20960316, 'Carton_brun': 20960317, 'metal': 20960318, 'papier': 20960319, 'plastique': 20960320, 'kraft': 20960321}]} input_args_next_step : {1340579766: ('0.1163034158505194',), 1340578983: ('0.1163034158505194',), 1340578967: ('0.1163034158505194',), 1340578961: ('0.1163034158505194',), 1340578957: ('0.1163034158505194',), 1340578932: ('0.1163034158505194',), 1340578930: ('0.1163034158505194',), 1340578911: ('0.1163034158505194',), 1340578909: ('0.1163034158505194',), 1340578907: ('0.1163034158505194',), 1340578895: ('0.1163034158505194',), 1340578892: ('0.1163034158505194',), 1340578888: ('0.1163034158505194',), 1340578885: ('0.1163034158505194',), 1340578882: ('0.1163034158505194',), 1340578880: ('0.1163034158505194',), 1340578861: ('0.1163034158505194',), 1340578858: ('0.1163034158505194',), 20960307: ()} output_args : {20960307: [{'mal_croppe': 20960310, 'Carton_gris': 20960311, 'environnement': 20960312, 'Teint_Dans_La_Masse': 20960313, 'autre_refus': 20960314, 'flou': 20960315, 'cartonnette': 20960316, 'Carton_brun': 20960317, 'metal': 20960318, 'papier': 20960319, 'plastique': 20960320, 'kraft': 20960321}]} args : 20960307 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 :19, first value : ('0.1163034158505194',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20960307) 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 (1340579766,1340578983,1340578967,1340578961,1340578957,1340578932,1340578930,1340578911,1340578909,1340578907,1340578895,1340578892,1340578888,1340578885,1340578882,1340578880,1340578861,1340578858) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340578858 begin to download photo : 1340578885 begin to download photo : 1340578907 begin to download photo : 1340578932 begin to download photo : 1340578983 download finish for photo 1340578858 begin to download photo : 1340578861 download finish for photo 1340578907 begin to download photo : 1340578909 download finish for photo 1340578885 begin to download photo : 1340578888 download finish for photo 1340578932 begin to download photo : 1340578957 download finish for photo 1340578983 begin to download photo : 1340579766 download finish for photo 1340578861 begin to download photo : 1340578880 download finish for photo 1340578888 begin to download photo : 1340578892 download finish for photo 1340579766 download finish for photo 1340578957 begin to download photo : 1340578961 download finish for photo 1340578909 begin to download photo : 1340578911 download finish for photo 1340578880 begin to download photo : 1340578882 download finish for photo 1340578892 begin to download photo : 1340578895 download finish for photo 1340578961 begin to download photo : 1340578967 download finish for photo 1340578911 begin to download photo : 1340578930 download finish for photo 1340578882 download finish for photo 1340578895 download finish for photo 1340578930 download finish for photo 1340578967 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette209603101741062870/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P20960307_04-03-2025_05_34_30.pdf 20960310 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=20960310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209603101741062870 20960314 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=20960314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340578962: '1740974831_1901345_1340578909_169f51908f3bf2df960ccf29219a4a83_rle_crop_3692126845_0.png', 1340578963: '1740974831_1901345_1340578907_9a97a189773a6c5caeac2f4c10d2a47f_rle_crop_3692126860_0.png', 1340578985: '1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127049_0.png', 1340578986: '1740974851_1901546_1340578892_b70838f59bbbd895378ebb50e9bc069e_rle_crop_3692127059_0.png', 1340578987: '1740974851_1901546_1340578885_780ab9334c13176a77d0eefcc2a842a0_rle_crop_3692127078_0.png', 1340578988: '1740974851_1901546_1340578882_af1da8fbe62a5e83200331ac3e892d4f_rle_crop_3692127106_0.png', 1340578989: '1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127119_0.png', 1340579016: '1740974932_1902514_1340578983_6a6c11fe558ce9502da2a28bf44997ef_rle_crop_3692127257_0.png', 1340579017: '1740974932_1902514_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea_rle_crop_3692127325_0.png', 1340579023: '1740974943_1902650_1340578967_16ff746945985cc27d74c91c66e98203_rle_crop_3692127331_0.png', 1340579024: '1740974943_1902650_1340578930_19b3db246bd05b6da4e364b67a47ee52_rle_crop_3692127340_0.png', 1340579030: '1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127360_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/40bc89c90968621678cc3df137c156e2_13519208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c1229a814704c1f8a77307b72dd298f9_59578056.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/314335f7693686057c10344f9d58c186_95720191.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4a7d569be000646e2b38cba38d18eeea_93370237.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/8338039d578eb9b5e1934d6ac8dfba42_4682250.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/af4cbbe3127259602d8ac34e5ee70c55_28695122.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/12719d86ab22f04849bebb9570c3b0eb_46162274.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/379bbbf86d5962d7656c72a958e3c628_57539526.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/93e80cec32c1173ed9fa08e55ca5460c_10282004.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/e05992aa3a93fa3f215cfe713b861790_69568051.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6bf09a1f1a58ca5147e26a603933e1fd_86939368.png change filename to text .imagette209603141741062870/ imagette209603141741062870/1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127119_0.png.png imagette209603141741062870/1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127049_0.png.png imagette209603141741062870/1740974943_1902650_1340578930_19b3db246bd05b6da4e364b67a47ee52_rle_crop_3692127340_0.png.png imagette209603141741062870/1740974831_1901345_1340578909_169f51908f3bf2df960ccf29219a4a83_rle_crop_3692126845_0.png.png imagette209603141741062870/1740974932_1902514_1340578983_6a6c11fe558ce9502da2a28bf44997ef_rle_crop_3692127257_0.png.png imagette209603141741062870/1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127360_0.png.png imagette209603141741062870/1740974932_1902514_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea_rle_crop_3692127325_0.png.png imagette209603141741062870/1740974831_1901345_1340578907_9a97a189773a6c5caeac2f4c10d2a47f_rle_crop_3692126860_0.png.png imagette209603141741062870/1740974851_1901546_1340578892_b70838f59bbbd895378ebb50e9bc069e_rle_crop_3692127059_0.png.png imagette209603141741062870/1740974943_1902650_1340578967_16ff746945985cc27d74c91c66e98203_rle_crop_3692127331_0.png.png imagette209603141741062870/1740974851_1901546_1340578882_af1da8fbe62a5e83200331ac3e892d4f_rle_crop_3692127106_0.png.png imagette209603141741062870/1740974851_1901546_1340578885_780ab9334c13176a77d0eefcc2a842a0_rle_crop_3692127078_0.png.png imagette209603151741062871/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/6364b976509808a6c6a30ba21e5ecf24_90611034.png imagette209603141741062870 20960315 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=20960315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209603151741062871 20960316 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=20960316 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340578990: '1740974851_1901546_1340578885_780ab9334c13176a77d0eefcc2a842a0_rle_crop_3692127081_0.png'} change filename to text .imagette209603161741062871/ imagette209603161741062871/1740974851_1901546_1340578885_780ab9334c13176a77d0eefcc2a842a0_rle_crop_3692127081_0.png.png imagette209603181741062871/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4b4f05bf8e154d351fc290d596730ca4_22802685.png imagette209603161741062871 20960318 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=20960318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209603181741062871 20960320 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=20960320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340579021: '1740974932_1902514_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea_rle_crop_3692127316_0.png', 1340579027: '1740974943_1902650_1340578930_19b3db246bd05b6da4e364b67a47ee52_rle_crop_3692127338_0.png', 1340579033: '1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127366_0.png', 1340579034: '1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127361_0.png', 1340579035: '1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127365_0.png', 1340579036: '1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127367_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a143ee984ceb39c16d96f75342615141_27575917.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/078a3977f92e7f77c489b6b752ae2578_70498811.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fcd0d223b45df174e3d2d155fcc71f8d_97276408.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/4a9f55f746ff2487f36b12a09a49a2de_9243810.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/403ff358db35848e7eb1eb20506d91cd_90826239.png change filename to text .imagette209603201741062871/ imagette209603201741062871/1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127365_0.png.png imagette209603201741062871/1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127366_0.png.png imagette209603201741062871/1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127367_0.png.png imagette209603201741062871/1740974932_1902514_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea_rle_crop_3692127316_0.png.png imagette209603201741062871/1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127361_0.png.png imagette209603201741062871/1740974943_1902650_1340578930_19b3db246bd05b6da4e364b67a47ee52_rle_crop_3692127338_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d8804b8d46efaf31c7f8ba0276ff6bd8_40962733.png imagette209603201741062871 20960321 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=20960321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340578994: '1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127048_0.png', 1340578995: '1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127122_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b365803623d3bf8d276457082951dbea_89907546.png change filename to text .imagette209603211741062872/ imagette209603211741062872/1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127048_0.png.png imagette209603211741062872/1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127122_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9c1b064273cfc35477d0a4509eaae24c_93881614.png imagette209603211741062872 20960311 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=20960311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340579018: '1740974932_1902514_1340578983_6a6c11fe558ce9502da2a28bf44997ef_rle_crop_3692127248_0.png', 1340579031: '1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127364_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/fe7595d453acf6b5a124a6504a6deb46_8512670.png change filename to text .imagette209603111741062872/ imagette209603111741062872/1740974932_1902514_1340578983_6a6c11fe558ce9502da2a28bf44997ef_rle_crop_3692127248_0.png.png imagette209603111741062872/1740974952_1902864_1340578932_33db1cee3c8da47820a2f1dabb38b904_rle_crop_3692127364_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/94ceb1c30347a1e86d55a921b54ecd06_62454381.png imagette209603111741062872 20960313 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=20960313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340578978: '1740974871_1901781_1340578895_970c1be2ddcef627274b6983dca3b444_rle_crop_3692127091_0.png', 1340578979: '1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127053_0.png', 1340578980: '1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127051_0.png', 1340578981: '1740974851_1901546_1340578882_af1da8fbe62a5e83200331ac3e892d4f_rle_crop_3692127107_0.png', 1340578982: '1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127123_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/d34838f7ccbd9e8a4073f04fd959beda_18981596.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/90ecec6d6265b6d149b2d7004ad9128b_69429191.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9839fd9512ea5cb796d5eb8e100a5f1f_13251502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a2f089e6195f9212bb8a9789a6728239_17749186.png change filename to text .imagette209603131741062873/ imagette209603131741062873/1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127051_0.png.png imagette209603131741062873/1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127123_0.png.png imagette209603131741062873/1740974851_1901546_1340578882_af1da8fbe62a5e83200331ac3e892d4f_rle_crop_3692127107_0.png.png imagette209603131741062873/1740974871_1901781_1340578895_970c1be2ddcef627274b6983dca3b444_rle_crop_3692127091_0.png.png imagette209603131741062873/1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127053_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/ea52c1be2a17a3bb3f6613b66ed955fe_548930.png imagette209603131741062873 20960317 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=20960317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340578964: '1740974831_1901345_1340578907_9a97a189773a6c5caeac2f4c10d2a47f_rle_crop_3692126857_0.png', 1340578991: '1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127052_0.png', 1340578992: '1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127121_0.png', 1340579019: '1740974932_1902514_1340578983_6a6c11fe558ce9502da2a28bf44997ef_rle_crop_3692127256_0.png', 1340579020: '1740974932_1902514_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea_rle_crop_3692127322_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b43275db7ccd17633aa21636bf3080fd_60290425.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/a734582a1542e8d5205f77c5e479d058_93939329.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/11f07aafb7ab347013bea922dc20ff21_13525996.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/5675522a8d15be98dd9ded05910056c1_15184659.png change filename to text .imagette209603171741062873/ imagette209603171741062873/1740974932_1902514_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea_rle_crop_3692127322_0.png.png imagette209603171741062873/1740974831_1901345_1340578907_9a97a189773a6c5caeac2f4c10d2a47f_rle_crop_3692126857_0.png.png imagette209603171741062873/1740974851_1901546_1340578911_324f65f260f4d9ee2fb04bb2d992ba73_rle_crop_3692127052_0.png.png imagette209603171741062873/1740974932_1902514_1340578983_6a6c11fe558ce9502da2a28bf44997ef_rle_crop_3692127256_0.png.png imagette209603171741062873/1740974851_1901546_1340578880_41c29d693399b17575f796e7d2638f63_rle_crop_3692127121_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/c15b2b094b2c3303948fe84a19207cc0_78502929.png imagette209603171741062873 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20960307 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20960322,20960323,20960324,20960325,20960326,20960327,20960328,20960329,20960330,20960331,20960332,20960333?tags=mal_croppe,Carton_gris,environnement,Teint_Dans_La_Masse,autre_refus,flou,cartonnette,Carton_brun,metal,papier,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1340579766] : ('0.1163034158505194',) no score found for photo 1340579766 We are sending mail with results at report@fotonower.com args[1340578983] : ('0.1163034158505194',) no score found for photo 1340578983 We are sending mail with results at report@fotonower.com args[1340578967] : ('0.1163034158505194',) no score found for photo 1340578967 We are sending mail with results at report@fotonower.com args[1340578961] : ('0.1163034158505194',) no score found for photo 1340578961 We are sending mail with results at report@fotonower.com args[1340578957] : ('0.1163034158505194',) no score found for photo 1340578957 We are sending mail with results at report@fotonower.com args[1340578932] : ('0.1163034158505194',) no score found for photo 1340578932 We are sending mail with results at report@fotonower.com args[1340578930] : ('0.1163034158505194',) no score found for photo 1340578930 We are sending mail with results at report@fotonower.com args[1340578911] : ('0.1163034158505194',) no score found for photo 1340578911 We are sending mail with results at report@fotonower.com args[1340578909] : ('0.1163034158505194',) no score found for photo 1340578909 We are sending mail with results at report@fotonower.com args[1340578907] : ('0.1163034158505194',) no score found for photo 1340578907 We are sending mail with results at report@fotonower.com args[1340578895] : ('0.1163034158505194',) no score found for photo 1340578895 We are sending mail with results at report@fotonower.com args[1340578892] : ('0.1163034158505194',) no score found for photo 1340578892 We are sending mail with results at report@fotonower.com args[1340578888] : ('0.1163034158505194',) no score found for photo 1340578888 We are sending mail with results at report@fotonower.com args[1340578885] : ('0.1163034158505194',) no score found for photo 1340578885 We are sending mail with results at report@fotonower.com args[1340578882] : ('0.1163034158505194',) no score found for photo 1340578882 We are sending mail with results at report@fotonower.com args[1340578880] : ('0.1163034158505194',) no score found for photo 1340578880 We are sending mail with results at report@fotonower.com args[1340578861] : ('0.1163034158505194',) no score found for photo 1340578861 We are sending mail with results at report@fotonower.com args[1340578858] : ('0.1163034158505194',) no score found for photo 1340578858 We are sending mail with results at report@fotonower.com refus_total : 0.1163034158505194 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=20960307 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_P20960307_04-03-2025_05_34_30.pdf results_Auto_P20960307_04-03-2025_05_34_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960307_04-03-2025_05_34_30.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','20960307','results_Auto_P20960307_04-03-2025_05_34_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960307_04-03-2025_05_34_30.pdf','pdf','','0.27','0.1163034158505194') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20960307]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] map_info['map_portfolio_photo'] : {20960307: [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858]} final : False mtd_id 4302 list_pids : [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] 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, '2631286') ('4302', '20960307', '1340579766', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '20960307', '1340579766', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286')] time used for this insertion : 0.01893329620361328 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.785400629043579 time spend to save output : 0.019265413284301758 total time spend for step 4 : 5.804666042327881 step5:split_time_score Tue Mar 4 05:34:35 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 : ['20960307'] 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 : [('20960307',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20960307) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340578983: {'path': 'temp/1741062869_1904248_1340578983_6a6c11fe558ce9502da2a28bf44997ef.jpg', 'extension': 'jpg'}, 1340579766: {'path': 'temp/1741062869_1904248_1340579766_16991732f5fb168454f8d82089b3628f.jpg', 'extension': 'jpg'}, 1340578858: {'path': 'temp/1741062869_1904248_1340578858_31720b457accbd425d32eb4de175e7a9.jpg', 'extension': 'jpg'}, 1340578861: {'path': 'temp/1741062869_1904248_1340578861_9eb5cc0eba53774f1c55b96e91e55fb2.jpg', 'extension': 'jpg'}, 1340578880: {'path': 'temp/1741062869_1904248_1340578880_41c29d693399b17575f796e7d2638f63.jpg', 'extension': 'jpg'}, 1340578882: {'path': 'temp/1741062869_1904248_1340578882_af1da8fbe62a5e83200331ac3e892d4f.jpg', 'extension': 'jpg'}, 1340578885: {'path': 'temp/1741062869_1904248_1340578885_780ab9334c13176a77d0eefcc2a842a0.jpg', 'extension': 'jpg'}, 1340578888: {'path': 'temp/1741062869_1904248_1340578888_602333b521503a9da321607fe61e27fc.jpg', 'extension': 'jpg'}, 1340578892: {'path': 'temp/1741062869_1904248_1340578892_b70838f59bbbd895378ebb50e9bc069e.jpg', 'extension': 'jpg'}, 1340578895: {'path': 'temp/1741062869_1904248_1340578895_970c1be2ddcef627274b6983dca3b444.jpg', 'extension': 'jpg'}, 1340578907: {'path': 'temp/1741062869_1904248_1340578907_9a97a189773a6c5caeac2f4c10d2a47f.jpg', 'extension': 'jpg'}, 1340578909: {'path': 'temp/1741062869_1904248_1340578909_169f51908f3bf2df960ccf29219a4a83.jpg', 'extension': 'jpg'}, 1340578911: {'path': 'temp/1741062869_1904248_1340578911_324f65f260f4d9ee2fb04bb2d992ba73.jpg', 'extension': 'jpg'}, 1340578930: {'path': 'temp/1741062869_1904248_1340578930_19b3db246bd05b6da4e364b67a47ee52.jpg', 'extension': 'jpg'}, 1340578932: {'path': 'temp/1741062869_1904248_1340578932_33db1cee3c8da47820a2f1dabb38b904.jpg', 'extension': 'jpg'}, 1340578957: {'path': 'temp/1741062869_1904248_1340578957_98f7d2e0f73c5ace34f8ecc8a384c7ea.jpg', 'extension': 'jpg'}, 1340578961: {'path': 'temp/1741062869_1904248_1340578961_0e950c68ae7e75a1a0828bffc770350c.jpg', 'extension': 'jpg'}, 1340578967: {'path': 'temp/1741062869_1904248_1340578967_16ff746945985cc27d74c91c66e98203.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 = 20960307; (('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 = 20960307 group by h (('05', 18),) 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=20960307 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 (20960307) 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 (20960307) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20960307 Nombre de photos uploadées : 18 / 23040 (0%) 03032025 20960307 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 03032025 20960307 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1340578861, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/9eb5cc0eba53774f1c55b96e91e55fb2.jpg', 'username': None, 'uploaded_at': 1740974599, 'text': 'image_03032025_05_00_14_10217.jpg'}, {'photo_id': 1340578858, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/31720b457accbd425d32eb4de175e7a9.jpg', 'username': None, 'uploaded_at': 1740974599, 'text': 'image_03032025_05_02_24_009128m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340578895, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/970c1be2ddcef627274b6983dca3b444.jpg', 'username': None, 'uploaded_at': 1740974658, 'text': 'image_03032025_05_02_54_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340578892, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/3/b70838f59bbbd895378ebb50e9bc069e.jpg', 'username': None, 'uploaded_at': 1740974658, 'text': 'image_03032025_05_03_04_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009937286376953125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20960307, '2025-03-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1634063,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02804255485534668 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= 1634063 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20960307, 'dashboard_result_id': 9186121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960307_03-03-2025_05_34_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960321, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20960513, 'dashboard_result_id': 9186122, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960513_03-03-2025_05_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960527, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20960900, 'dashboard_result_id': 9186123, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960900_03-03-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960913, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20961064, 'dashboard_result_id': 9186124, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961064_03-03-2025_06_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20961066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961077, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20961514, 'dashboard_result_id': 9186125, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961514_03-03-2025_06_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961529, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20961943, 'dashboard_result_id': 9186126, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20961946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961957, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20962435, 'dashboard_result_id': 9186127, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962435_03-03-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20962438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20962439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20962440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20962441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20962442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20962443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20962444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20962445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20962446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20962447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20962448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20962449, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20962794, 'dashboard_result_id': 9186128, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962794_03-03-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20962824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20962825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20962826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20962827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20962828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20962829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20962830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20962831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20962832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20962833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20962834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20962835, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20963307, 'dashboard_result_id': 9186129, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963307_03-03-2025_07_23_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20963335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20963336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20963337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20963338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20963339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20963340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20963341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20963342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20963343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20963344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20963345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20963346, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20963628, 'dashboard_result_id': 9186130, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963628_03-03-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20963684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20963685, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20963686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20963687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20963688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20963689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20963690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20963691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20963692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20963693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20963694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20963695, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20964476, 'dashboard_result_id': 9186131, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20964476_03-03-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20964482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20964483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20964484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20964485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20964486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20964487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20964488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20964489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20964490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20964491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20964492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20964493, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20965022, 'dashboard_result_id': 9186132, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965022_03-03-2025_08_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20965027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20965028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20965029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20965030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20965031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20965032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20965033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20965034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20965035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20965036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20965037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20965038, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20965512, 'dashboard_result_id': 9186133, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965512_03-03-2025_08_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20965541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20965542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20965543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20965544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20965545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20965546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20965547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20965548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20965549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20965550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20965551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20965552, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20966655, 'dashboard_result_id': 9186134, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966655_03-03-2025_09_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20966660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20966665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966671, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20966718, 'dashboard_result_id': 9186135, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966718_03-03-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20966750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20966752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966761, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20967368, 'dashboard_result_id': 9186136, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967368_03-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967407, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20967705, 'dashboard_result_id': 9186137, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967737, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20968187, 'dashboard_result_id': 9186138, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968187_03-03-2025_10_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20968196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20968197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20968198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20968199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20968200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20968201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20968202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20968203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20968204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20968205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20968206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20968207, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20968779, 'dashboard_result_id': 9186139, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968779_03-03-2025_10_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20968790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20968791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20968792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20968793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20968794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20968795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20968796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20968797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20968798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20968799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20968800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20968801, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20969496, 'dashboard_result_id': 9186140, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20969496_03-03-2025_10_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20969550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20969551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20969552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20969553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20969554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20969555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20969556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20969557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20969558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20969559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20969560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20969561, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20970176, 'dashboard_result_id': 9186141, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970176_03-03-2025_11_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20970250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20970251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20970252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20970253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20970254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20970255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20970256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20970257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20970258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20970259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20970260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20970261, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20970772, 'dashboard_result_id': 9186142, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970772_03-03-2025_11_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20970823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20970824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20970825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20970826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20970827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20970828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20970829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20970830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20970831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20970832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20970833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20970834, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20971287, 'dashboard_result_id': 9186143, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971287_03-03-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20971358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20971359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20971360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20971361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20971362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20971363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20971364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20971365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20971366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20971367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20971368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20971369, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20971841, 'dashboard_result_id': 9186144, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971841_03-03-2025_11_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20971850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20971851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20971852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20971853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20971854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20971855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20971856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20971857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20971858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20971859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20971860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20971861, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20972467, 'dashboard_result_id': 9186145, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20972467_03-03-2025_12_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20972563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20972564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20972565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20972566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20972567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20972568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20972569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20972570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20972571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20972572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20972573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20972574, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20973314, 'dashboard_result_id': 9186146, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20973314_03-03-2025_12_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20973320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20973321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20973322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20973323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20973324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20973325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20973326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20973327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20973328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20973329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20973330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20973331, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20974054, 'dashboard_result_id': 9186147, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974096, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20974829, 'dashboard_result_id': 9186148, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974829_03-03-2025_13_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974845, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20976058, 'dashboard_result_id': 9186149, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976058_03-03-2025_13_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20976061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976070, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20976515, 'dashboard_result_id': 9186150, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976515_03-03-2025_13_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20976525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976530, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20976807, 'dashboard_result_id': 9186151, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976807_03-03-2025_13_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20976810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976821, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20977087, 'dashboard_result_id': 9186152, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977087_03-03-2025_14_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20977089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20977090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20977091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20977092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20977093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20977094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20977095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20977096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20977097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20977098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20977099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20977100, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20977626, 'dashboard_result_id': 9186153, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977626_03-03-2025_14_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20977629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20977630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20977631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20977632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20977633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20977634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20977635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20977636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20977637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20977638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20977639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20977640, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20978006, 'dashboard_result_id': 9186154, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978006_03-03-2025_14_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20978008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20978009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20978010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20978011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20978012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20978013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20978014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20978015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20978016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20978017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20978018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20978019, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20978650, 'dashboard_result_id': 9186155, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978650_03-03-2025_14_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20978653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20978654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20978655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20978656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20978657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20978658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20978659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20978660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20978661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20978662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20978663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20978664, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20979220, 'dashboard_result_id': 9186156, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979220_03-03-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979269, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20979676, 'dashboard_result_id': 9186157, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20980311, 'dashboard_result_id': 9186158, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20980858, 'dashboard_result_id': 9186159, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20981321, 'dashboard_result_id': 9186160, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20981351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20981355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20981358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981362, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20981988, 'dashboard_result_id': 9186161, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981988_03-03-2025_16_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982002, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20982201, 'dashboard_result_id': 9186162, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20982201_03-03-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20982251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20982254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20982255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20982256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20982257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20982259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20982260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20982261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20982262, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20983052, 'dashboard_result_id': 9186163, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983052_03-03-2025_16_48_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983114, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20983803, 'dashboard_result_id': 9186164, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983803_03-03-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983817, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20984411, 'dashboard_result_id': 9186165, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984425, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20984700, 'dashboard_result_id': 9186166, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984700_03-03-2025_18_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984790, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20986044, 'dashboard_result_id': 9186167, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986044_03-03-2025_18_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986058, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20986474, 'dashboard_result_id': 9186168, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986487, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20987003, 'dashboard_result_id': 9186169, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987003_03-03-2025_18_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20987006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20987007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20987008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20987009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20987010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20987011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20987012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20987013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20987014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20987015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20987016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20987017, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20987472, 'dashboard_result_id': 9186170, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987472_03-03-2025_19_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20987516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20987517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20987518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20987519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20987520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20987521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20987522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20987523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20987524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20987525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20987526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20987527, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20988119, 'dashboard_result_id': 9186171, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988119_03-03-2025_19_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20988182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20988183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20988184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20988185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20988186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20988187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20988188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20988189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20988190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20988191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20988192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20988193, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20988613, 'dashboard_result_id': 9186172, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988613_03-03-2025_19_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20988616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20988617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20988618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20988619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20988620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20988621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20988622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20988623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20988624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20988625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20988626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20988627, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20989064, 'dashboard_result_id': 9186173, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989064_03-03-2025_19_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20989067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20989068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20989069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20989070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20989071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20989072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20989073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20989074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20989075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20989076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20989077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20989078, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20989548, 'dashboard_result_id': 9186174, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989548_03-03-2025_20_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20989578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20989579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20989580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20989581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20989582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20989583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20989584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20989585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20989586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20989587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20989588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20989589, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20990317, 'dashboard_result_id': 9186175, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990317_03-03-2025_20_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20990343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20990344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20990345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20990346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20990347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20990348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20990349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20990350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20990351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20990352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20990353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20990354, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20990909, 'dashboard_result_id': 9186176, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990909_03-03-2025_20_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20990941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20990942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20990943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20990944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20990945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20990946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20990947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20990948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20990949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20990950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20990951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20990952, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20991546, 'dashboard_result_id': 9186177, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20991546_03-03-2025_21_06_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20991576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20991577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20991578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20991579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20991580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20991581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20991582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20991583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20991584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20991585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20991586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20991587, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20992705, 'dashboard_result_id': 9186178, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20992705_03-03-2025_21_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20992749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20992750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20992751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20992752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20992753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20992754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20992755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20992756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20992757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20992758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20992759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20992760, 'pht': 3726}}"}, {'dashboat_entry_day': 1634063, 'dashboard_run_id': 1644248, 'mtr_portfolio_id': 20994599, 'dashboard_result_id': 9186179, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20994599_03-03-2025_23_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20994600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20994601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20994602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20994603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20994604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20994605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20994606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20994607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20994608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20994609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20994610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20994611, '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 = 20960307 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2631286, 'mtr_portfolio_id': 20960307, 'created_at': datetime.datetime(2025, 3, 4, 5, 34, 29), 'result': '0.1163034158505194', 'result_long': None, 'result_double': None}] Qualite : 0.1163034158505194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20960307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960307_04-03-2025_05_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20960307 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960307_04-03-2025_05_34_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960321, 'pht': 3726}}" where mtr_portfolio_id = 20960307 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20960307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186121, 0.1163034158505194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960307_04-03-2025_05_34_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960321, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20960513 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627833, 'mtr_portfolio_id': 20960513, 'created_at': datetime.datetime(2025, 3, 3, 5, 34, 58), 'result': '0.08153974591842779', 'result_long': None, 'result_double': None}] Qualite : 0.08153974591842779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20960513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960513_03-03-2025_05_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20960513 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960513_03-03-2025_05_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960527, 'pht': 3726}}" where mtr_portfolio_id = 20960513 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20960513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186122, 0.08153974591842779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960513_03-03-2025_05_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960527, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20960900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627845, 'mtr_portfolio_id': 20960900, 'created_at': datetime.datetime(2025, 3, 3, 5, 48, 58), 'result': '0.07449202000538592', 'result_long': None, 'result_double': None}] Qualite : 0.07449202000538592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20960900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960900_03-03-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20960900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960900_03-03-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960913, 'pht': 3726}}" where mtr_portfolio_id = 20960900 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20960900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186123, 0.07449202000538592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20960900_03-03-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20960902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20960903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20960904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20960905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20960906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20960907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20960908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20960909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20960910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20960911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20960912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20960913, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20961064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627854, 'mtr_portfolio_id': 20961064, 'created_at': datetime.datetime(2025, 3, 3, 6, 2, 31), 'result': '0.07413185946192856', 'result_long': None, 'result_double': None}] Qualite : 0.07413185946192856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20961064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961064_03-03-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20961064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961064_03-03-2025_06_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20961066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961077, 'pht': 3726}}" where mtr_portfolio_id = 20961064 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20961064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186124, 0.07413185946192856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961064_03-03-2025_06_02_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20961066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961077, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20961514 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627897, 'mtr_portfolio_id': 20961514, 'created_at': datetime.datetime(2025, 3, 3, 6, 19), 'result': '0.08101553880303618', 'result_long': None, 'result_double': None}] Qualite : 0.08101553880303618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20961514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961514_03-03-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20961514 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961514_03-03-2025_06_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961529, 'pht': 3726}}" where mtr_portfolio_id = 20961514 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20961514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186125, 0.08101553880303618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961514_03-03-2025_06_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20961519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961529, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20961943 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627927, 'mtr_portfolio_id': 20961943, 'created_at': datetime.datetime(2025, 3, 3, 6, 33), 'result': '0.08629344349280765', 'result_long': None, 'result_double': None}] Qualite : 0.08629344349280765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20961943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20961943 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20961946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961957, 'pht': 3726}}" where mtr_portfolio_id = 20961943 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20961943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186126, 0.08629344349280765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20961943_03-03-2025_06_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20961946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20961947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20961948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20961949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20961950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20961951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20961952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20961953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20961954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20961955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20961956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20961957, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20962435 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627961, 'mtr_portfolio_id': 20962435, 'created_at': datetime.datetime(2025, 3, 3, 6, 48, 58), 'result': '0.07598818990451599', 'result_long': None, 'result_double': None}] Qualite : 0.07598818990451599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20962435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962435_03-03-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20962435 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962435_03-03-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20962438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20962439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20962440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20962441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20962442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20962443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20962444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20962445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20962446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20962447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20962448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20962449, 'pht': 3726}}" where mtr_portfolio_id = 20962435 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20962435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186127, 0.07598818990451599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962435_03-03-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20962438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20962439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20962440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20962441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20962442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20962443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20962444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20962445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20962446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20962447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20962448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20962449, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20962794 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2627993, 'mtr_portfolio_id': 20962794, 'created_at': datetime.datetime(2025, 3, 3, 7, 2, 59), 'result': '0.08758858604116916', 'result_long': None, 'result_double': None}] Qualite : 0.08758858604116916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20962794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962794_03-03-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20962794 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962794_03-03-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20962824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20962825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20962826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20962827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20962828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20962829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20962830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20962831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20962832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20962833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20962834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20962835, 'pht': 3726}}" where mtr_portfolio_id = 20962794 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20962794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186128, 0.08758858604116916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20962794_03-03-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20962824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20962825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20962826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20962827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20962828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20962829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20962830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20962831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20962832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20962833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20962834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20962835, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20963307 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628040, 'mtr_portfolio_id': 20963307, 'created_at': datetime.datetime(2025, 3, 3, 7, 22, 59), 'result': '0.08807340759621919', 'result_long': None, 'result_double': None}] Qualite : 0.08807340759621919 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20963307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963307_03-03-2025_07_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20963307 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963307_03-03-2025_07_23_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20963335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20963336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20963337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20963338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20963339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20963340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20963341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20963342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20963343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20963344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20963345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20963346, 'pht': 3726}}" where mtr_portfolio_id = 20963307 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20963307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186129, 0.08807340759621919, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963307_03-03-2025_07_23_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20963335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20963336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20963337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20963338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20963339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20963340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20963341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20963342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20963343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20963344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20963345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20963346, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20963628 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628067, 'mtr_portfolio_id': 20963628, 'created_at': datetime.datetime(2025, 3, 3, 7, 32, 59), 'result': '0.08763056227087454', 'result_long': None, 'result_double': None}] Qualite : 0.08763056227087454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20963628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963628_03-03-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20963628 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963628_03-03-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20963684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20963685, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20963686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20963687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20963688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20963689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20963690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20963691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20963692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20963693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20963694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20963695, 'pht': 3726}}" where mtr_portfolio_id = 20963628 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20963628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186130, 0.08763056227087454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20963628_03-03-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20963684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20963685, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20963686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20963687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20963688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20963689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20963690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20963691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20963692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20963693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20963694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20963695, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20964476 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628121, 'mtr_portfolio_id': 20964476, 'created_at': datetime.datetime(2025, 3, 3, 7, 48, 59), 'result': '0.10103129527015965', 'result_long': None, 'result_double': None}] Qualite : 0.10103129527015965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20964476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20964476_03-03-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20964476 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20964476_03-03-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20964482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20964483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20964484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20964485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20964486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20964487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20964488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20964489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20964490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20964491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20964492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20964493, 'pht': 3726}}" where mtr_portfolio_id = 20964476 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20964476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186131, 0.10103129527015965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20964476_03-03-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20964482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20964483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20964484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20964485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20964486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20964487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20964488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20964489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20964490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20964491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20964492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20964493, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20965022 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628161, 'mtr_portfolio_id': 20965022, 'created_at': datetime.datetime(2025, 3, 3, 8, 2, 58), 'result': '0.07044275293222388', 'result_long': None, 'result_double': None}] Qualite : 0.07044275293222388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20965022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965022_03-03-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20965022 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965022_03-03-2025_08_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20965027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20965028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20965029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20965030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20965031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20965032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20965033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20965034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20965035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20965036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20965037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20965038, 'pht': 3726}}" where mtr_portfolio_id = 20965022 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20965022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186132, 0.07044275293222388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965022_03-03-2025_08_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20965027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20965028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20965029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20965030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20965031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20965032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20965033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20965034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20965035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20965036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20965037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20965038, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20965512 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628207, 'mtr_portfolio_id': 20965512, 'created_at': datetime.datetime(2025, 3, 3, 8, 16, 58), 'result': '0.07832189923318113', 'result_long': None, 'result_double': None}] Qualite : 0.07832189923318113 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20965512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965512_03-03-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20965512 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965512_03-03-2025_08_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20965541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20965542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20965543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20965544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20965545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20965546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20965547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20965548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20965549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20965550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20965551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20965552, 'pht': 3726}}" where mtr_portfolio_id = 20965512 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20965512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186133, 0.07832189923318113, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965512_03-03-2025_08_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20965541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20965542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20965543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20965544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20965545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20965546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20965547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20965548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20965549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20965550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20965551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20965552, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20966655 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628380, 'mtr_portfolio_id': 20966655, 'created_at': datetime.datetime(2025, 3, 3, 9, 18, 58), 'result': '0.06487079031904448', 'result_long': None, 'result_double': None}] Qualite : 0.06487079031904448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20966655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966655_03-03-2025_09_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20966655 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966655_03-03-2025_09_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20966660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20966665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966671, 'pht': 3726}}" where mtr_portfolio_id = 20966655 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20966655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186134, 0.06487079031904448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966655_03-03-2025_09_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20966660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20966665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966671, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20966718 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628395, 'mtr_portfolio_id': 20966718, 'created_at': datetime.datetime(2025, 3, 3, 9, 32, 58), 'result': '0.06516843503892028', 'result_long': None, 'result_double': None}] Qualite : 0.06516843503892028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20966718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966718_03-03-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20966718 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966718_03-03-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20966750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20966752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966761, 'pht': 3726}}" where mtr_portfolio_id = 20966718 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20966718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186135, 0.06516843503892028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20966718_03-03-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20966750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20966751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20966752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20966753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20966754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20966755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20966756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20966757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20966758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20966759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20966760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20966761, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20967368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628450, 'mtr_portfolio_id': 20967368, 'created_at': datetime.datetime(2025, 3, 3, 9, 49), 'result': '0.06210593380412685', 'result_long': None, 'result_double': None}] Qualite : 0.06210593380412685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20967368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967368_03-03-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20967368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967368_03-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967407, 'pht': 3726}}" where mtr_portfolio_id = 20967368 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20967368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186136, 0.06210593380412685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967368_03-03-2025_09_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967407, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20967705 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628480, 'mtr_portfolio_id': 20967705, 'created_at': datetime.datetime(2025, 3, 3, 10, 3, 1), 'result': '0.07446306357603778', 'result_long': None, 'result_double': None}] Qualite : 0.07446306357603778 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20967705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20967705 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967737, 'pht': 3726}}" where mtr_portfolio_id = 20967705 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20967705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186137, 0.07446306357603778, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20967705_03-03-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20967726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20967727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20967728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20967729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20967730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20967731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20967732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20967733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20967734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20967735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20967736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20967737, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20968187 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628551, 'mtr_portfolio_id': 20968187, 'created_at': datetime.datetime(2025, 3, 3, 10, 18, 58), 'result': '0.06887623549918691', 'result_long': None, 'result_double': None}] Qualite : 0.06887623549918691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20968187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968187_03-03-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20968187 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968187_03-03-2025_10_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20968196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20968197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20968198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20968199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20968200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20968201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20968202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20968203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20968204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20968205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20968206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20968207, 'pht': 3726}}" where mtr_portfolio_id = 20968187 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20968187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186138, 0.06887623549918691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968187_03-03-2025_10_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20968196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20968197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20968198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20968199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20968200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20968201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20968202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20968203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20968204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20968205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20968206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20968207, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20968779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628618, 'mtr_portfolio_id': 20968779, 'created_at': datetime.datetime(2025, 3, 3, 10, 32, 57), 'result': '0.07817607794462622', 'result_long': None, 'result_double': None}] Qualite : 0.07817607794462622 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20968779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968779_03-03-2025_10_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20968779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968779_03-03-2025_10_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20968790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20968791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20968792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20968793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20968794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20968795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20968796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20968797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20968798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20968799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20968800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20968801, 'pht': 3726}}" where mtr_portfolio_id = 20968779 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20968779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186139, 0.07817607794462622, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20968779_03-03-2025_10_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20968790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20968791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20968792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20968793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20968794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20968795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20968796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20968797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20968798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20968799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20968800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20968801, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20969496 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628689, 'mtr_portfolio_id': 20969496, 'created_at': datetime.datetime(2025, 3, 3, 10, 48, 57), 'result': '0.07712366135998554', 'result_long': None, 'result_double': None}] Qualite : 0.07712366135998554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20969496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20969496_03-03-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20969496 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20969496_03-03-2025_10_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20969550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20969551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20969552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20969553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20969554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20969555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20969556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20969557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20969558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20969559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20969560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20969561, 'pht': 3726}}" where mtr_portfolio_id = 20969496 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20969496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186140, 0.07712366135998554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20969496_03-03-2025_10_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20969550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20969551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20969552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20969553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20969554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20969555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20969556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20969557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20969558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20969559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20969560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20969561, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20970176 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628736, 'mtr_portfolio_id': 20970176, 'created_at': datetime.datetime(2025, 3, 3, 11, 2, 59), 'result': '0.06443929168367313', 'result_long': None, 'result_double': None}] Qualite : 0.06443929168367313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20970176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970176_03-03-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20970176 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970176_03-03-2025_11_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20970250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20970251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20970252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20970253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20970254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20970255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20970256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20970257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20970258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20970259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20970260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20970261, 'pht': 3726}}" where mtr_portfolio_id = 20970176 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20970176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186141, 0.06443929168367313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970176_03-03-2025_11_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20970250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20970251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20970252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20970253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20970254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20970255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20970256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20970257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20970258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20970259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20970260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20970261, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20970772 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628784, 'mtr_portfolio_id': 20970772, 'created_at': datetime.datetime(2025, 3, 3, 11, 18, 58), 'result': '0.1014984168363235', 'result_long': None, 'result_double': None}] Qualite : 0.1014984168363235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20970772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970772_03-03-2025_11_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20970772 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970772_03-03-2025_11_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20970823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20970824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20970825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20970826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20970827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20970828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20970829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20970830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20970831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20970832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20970833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20970834, 'pht': 3726}}" where mtr_portfolio_id = 20970772 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20970772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186142, 0.1014984168363235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20970772_03-03-2025_11_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20970823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20970824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20970825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20970826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20970827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20970828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20970829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20970830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20970831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20970832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20970833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20970834, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20971287 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628824, 'mtr_portfolio_id': 20971287, 'created_at': datetime.datetime(2025, 3, 3, 11, 33), 'result': '0.08545377329131142', 'result_long': None, 'result_double': None}] Qualite : 0.08545377329131142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20971287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971287_03-03-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20971287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971287_03-03-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20971358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20971359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20971360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20971361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20971362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20971363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20971364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20971365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20971366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20971367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20971368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20971369, 'pht': 3726}}" where mtr_portfolio_id = 20971287 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20971287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186143, 0.08545377329131142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971287_03-03-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20971358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20971359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20971360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20971361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20971362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20971363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20971364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20971365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20971366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20971367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20971368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20971369, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20971841 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2628910, 'mtr_portfolio_id': 20971841, 'created_at': datetime.datetime(2025, 3, 3, 11, 48, 59), 'result': '0.08530765634694021', 'result_long': None, 'result_double': None}] Qualite : 0.08530765634694021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20971841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971841_03-03-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20971841 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971841_03-03-2025_11_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20971850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20971851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20971852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20971853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20971854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20971855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20971856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20971857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20971858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20971859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20971860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20971861, 'pht': 3726}}" where mtr_portfolio_id = 20971841 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20971841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186144, 0.08530765634694021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20971841_03-03-2025_11_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20971850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20971851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20971852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20971853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20971854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20971855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20971856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20971857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20971858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20971859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20971860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20971861, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20972467 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629013, 'mtr_portfolio_id': 20972467, 'created_at': datetime.datetime(2025, 3, 3, 12, 2, 30), 'result': '0.09038174805835421', 'result_long': None, 'result_double': None}] Qualite : 0.09038174805835421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20972467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20972467_03-03-2025_12_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20972467 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20972467_03-03-2025_12_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20972563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20972564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20972565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20972566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20972567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20972568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20972569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20972570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20972571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20972572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20972573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20972574, 'pht': 3726}}" where mtr_portfolio_id = 20972467 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20972467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186145, 0.09038174805835421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20972467_03-03-2025_12_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20972563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20972564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20972565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20972566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20972567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20972568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20972569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20972570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20972571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20972572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20972573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20972574, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20973314 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629118, 'mtr_portfolio_id': 20973314, 'created_at': datetime.datetime(2025, 3, 3, 12, 19), 'result': '0.07410755076568899', 'result_long': None, 'result_double': None}] Qualite : 0.07410755076568899 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20973314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20973314_03-03-2025_12_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20973314 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20973314_03-03-2025_12_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20973320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20973321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20973322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20973323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20973324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20973325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20973326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20973327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20973328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20973329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20973330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20973331, 'pht': 3726}}" where mtr_portfolio_id = 20973314 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20973314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186146, 0.07410755076568899, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20973314_03-03-2025_12_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20973320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20973321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20973322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20973323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20973324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20973325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20973326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20973327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20973328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20973329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20973330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20973331, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20974054 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629176, 'mtr_portfolio_id': 20974054, 'created_at': datetime.datetime(2025, 3, 3, 12, 32, 58), 'result': '0.08204976479670828', 'result_long': None, 'result_double': None}] Qualite : 0.08204976479670828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20974054 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20974054 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974096, 'pht': 3726}}" where mtr_portfolio_id = 20974054 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20974054 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186147, 0.08204976479670828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974054_03-03-2025_12_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974096, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20974829 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629232, 'mtr_portfolio_id': 20974829, 'created_at': datetime.datetime(2025, 3, 3, 13, 2, 57), 'result': '0.07671519515001313', 'result_long': None, 'result_double': None}] Qualite : 0.07671519515001313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20974829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974829_03-03-2025_13_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20974829 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974829_03-03-2025_13_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974845, 'pht': 3726}}" where mtr_portfolio_id = 20974829 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20974829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186148, 0.07671519515001313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20974829_03-03-2025_13_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20974834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20974835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20974836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20974837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20974838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20974839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20974840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20974841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20974842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20974843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20974844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20974845, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20976058 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629323, 'mtr_portfolio_id': 20976058, 'created_at': datetime.datetime(2025, 3, 3, 13, 18, 59), 'result': '0.07844725751883969', 'result_long': None, 'result_double': None}] Qualite : 0.07844725751883969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20976058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976058_03-03-2025_13_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20976058 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976058_03-03-2025_13_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20976061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976070, 'pht': 3726}}" where mtr_portfolio_id = 20976058 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20976058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186149, 0.07844725751883969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976058_03-03-2025_13_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20976061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976070, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20976515 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629350, 'mtr_portfolio_id': 20976515, 'created_at': datetime.datetime(2025, 3, 3, 13, 32, 59), 'result': '0.10877688685399486', 'result_long': None, 'result_double': None}] Qualite : 0.10877688685399486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20976515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976515_03-03-2025_13_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20976515 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976515_03-03-2025_13_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20976525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976530, 'pht': 3726}}" where mtr_portfolio_id = 20976515 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20976515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186150, 0.10877688685399486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976515_03-03-2025_13_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20976525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976530, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20976807 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629380, 'mtr_portfolio_id': 20976807, 'created_at': datetime.datetime(2025, 3, 3, 13, 48, 58), 'result': '0.0900793258143767', 'result_long': None, 'result_double': None}] Qualite : 0.0900793258143767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20976807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976807_03-03-2025_13_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20976807 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976807_03-03-2025_13_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20976810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976821, 'pht': 3726}}" where mtr_portfolio_id = 20976807 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20976807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186151, 0.0900793258143767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20976807_03-03-2025_13_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20976810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20976811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20976812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20976813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20976814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20976815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20976816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20976817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20976818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20976819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20976820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20976821, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20977087 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629401, 'mtr_portfolio_id': 20977087, 'created_at': datetime.datetime(2025, 3, 3, 14, 5, 2), 'result': '0.06824509417650314', 'result_long': None, 'result_double': None}] Qualite : 0.06824509417650314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20977087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977087_03-03-2025_14_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20977087 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977087_03-03-2025_14_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20977089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20977090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20977091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20977092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20977093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20977094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20977095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20977096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20977097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20977098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20977099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20977100, 'pht': 3726}}" where mtr_portfolio_id = 20977087 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20977087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186152, 0.06824509417650314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977087_03-03-2025_14_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20977089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20977090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20977091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20977092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20977093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20977094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20977095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20977096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20977097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20977098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20977099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20977100, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20977626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629446, 'mtr_portfolio_id': 20977626, 'created_at': datetime.datetime(2025, 3, 3, 14, 19, 4), 'result': '0.07522308413469062', 'result_long': None, 'result_double': None}] Qualite : 0.07522308413469062 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20977626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977626_03-03-2025_14_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20977626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977626_03-03-2025_14_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20977629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20977630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20977631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20977632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20977633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20977634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20977635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20977636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20977637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20977638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20977639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20977640, 'pht': 3726}}" where mtr_portfolio_id = 20977626 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20977626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186153, 0.07522308413469062, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20977626_03-03-2025_14_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20977629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20977630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20977631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20977632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20977633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20977634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20977635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20977636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20977637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20977638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20977639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20977640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20978006 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629473, 'mtr_portfolio_id': 20978006, 'created_at': datetime.datetime(2025, 3, 3, 14, 33), 'result': '0.08037834486638563', 'result_long': None, 'result_double': None}] Qualite : 0.08037834486638563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20978006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978006_03-03-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20978006 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978006_03-03-2025_14_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20978008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20978009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20978010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20978011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20978012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20978013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20978014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20978015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20978016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20978017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20978018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20978019, 'pht': 3726}}" where mtr_portfolio_id = 20978006 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20978006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186154, 0.08037834486638563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978006_03-03-2025_14_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20978008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20978009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20978010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20978011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20978012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20978013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20978014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20978015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20978016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20978017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20978018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20978019, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20978650 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629522, 'mtr_portfolio_id': 20978650, 'created_at': datetime.datetime(2025, 3, 3, 14, 47, 1), 'result': '0.09551209943738781', 'result_long': None, 'result_double': None}] Qualite : 0.09551209943738781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20978650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978650_03-03-2025_14_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20978650 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978650_03-03-2025_14_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20978653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20978654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20978655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20978656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20978657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20978658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20978659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20978660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20978661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20978662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20978663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20978664, 'pht': 3726}}" where mtr_portfolio_id = 20978650 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20978650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186155, 0.09551209943738781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20978650_03-03-2025_14_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20978653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20978654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20978655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20978656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20978657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20978658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20978659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20978660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20978661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20978662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20978663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20978664, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20979220 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629560, 'mtr_portfolio_id': 20979220, 'created_at': datetime.datetime(2025, 3, 3, 15, 2, 59), 'result': '0.08360492160908141', 'result_long': None, 'result_double': None}] Qualite : 0.08360492160908141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20979220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979220_03-03-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20979220 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979220_03-03-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979269, 'pht': 3726}}" where mtr_portfolio_id = 20979220 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20979220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186156, 0.08360492160908141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979220_03-03-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20979676 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629616, 'mtr_portfolio_id': 20979676, 'created_at': datetime.datetime(2025, 3, 3, 15, 18, 58), 'result': '0.08385893980639138', 'result_long': None, 'result_double': None}] Qualite : 0.08385893980639138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20979676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20979676 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}" where mtr_portfolio_id = 20979676 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20979676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186157, 0.08385893980639138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20979676_03-03-2025_15_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20979703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20979704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20979705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20979706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20979707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20979708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20979709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20979710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20979711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20979712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20979713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20979714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20980311 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629661, 'mtr_portfolio_id': 20980311, 'created_at': datetime.datetime(2025, 3, 3, 15, 35, 1), 'result': '0.07414809706872667', 'result_long': None, 'result_double': None}] Qualite : 0.07414809706872667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20980311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20980311 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}" where mtr_portfolio_id = 20980311 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20980311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186158, 0.07414809706872667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980311_03-03-2025_15_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980386, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20980858 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629706, 'mtr_portfolio_id': 20980858, 'created_at': datetime.datetime(2025, 3, 3, 15, 48, 58), 'result': '0.0915386185828911', 'result_long': None, 'result_double': None}] Qualite : 0.0915386185828911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20980858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20980858 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}" where mtr_portfolio_id = 20980858 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20980858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186159, 0.0915386185828911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20980858_03-03-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20980861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20980862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20980863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20980864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20980865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20980866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20980867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20980868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20980869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20980870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20980871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20980872, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20981321 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629742, 'mtr_portfolio_id': 20981321, 'created_at': datetime.datetime(2025, 3, 3, 16, 2, 58), 'result': '0.08870205105641564', 'result_long': None, 'result_double': None}] Qualite : 0.08870205105641564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20981321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20981321 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20981351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20981355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20981358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981362, 'pht': 3726}}" where mtr_portfolio_id = 20981321 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20981321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186160, 0.08870205105641564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981321_03-03-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20981351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20981355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20981358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981362, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20981988 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629801, 'mtr_portfolio_id': 20981988, 'created_at': datetime.datetime(2025, 3, 3, 16, 19), 'result': '0.09634269055842802', 'result_long': None, 'result_double': None}] Qualite : 0.09634269055842802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20981988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981988_03-03-2025_16_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20981988 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981988_03-03-2025_16_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982002, 'pht': 3726}}" where mtr_portfolio_id = 20981988 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20981988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186161, 0.09634269055842802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20981988_03-03-2025_16_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20981991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20981992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20981993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20981994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20981995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20981996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20981997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20981998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20981999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982002, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20982201 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629822, 'mtr_portfolio_id': 20982201, 'created_at': datetime.datetime(2025, 3, 3, 16, 32, 58), 'result': '0.07702628148387156', 'result_long': None, 'result_double': None}] Qualite : 0.07702628148387156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20982201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20982201_03-03-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20982201 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20982201_03-03-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20982251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20982254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20982255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20982256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20982257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20982259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20982260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20982261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20982262, 'pht': 3726}}" where mtr_portfolio_id = 20982201 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20982201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186162, 0.07702628148387156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20982201_03-03-2025_16_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20982251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20982252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20982253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20982254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20982255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20982256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20982257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20982258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20982259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20982260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20982261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20982262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20983052 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629864, 'mtr_portfolio_id': 20983052, 'created_at': datetime.datetime(2025, 3, 3, 16, 48, 28), 'result': '0.08338843090317972', 'result_long': None, 'result_double': None}] Qualite : 0.08338843090317972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20983052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983052_03-03-2025_16_48_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20983052 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983052_03-03-2025_16_48_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983114, 'pht': 3726}}" where mtr_portfolio_id = 20983052 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20983052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186163, 0.08338843090317972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983052_03-03-2025_16_48_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983114, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20983803 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629902, 'mtr_portfolio_id': 20983803, 'created_at': datetime.datetime(2025, 3, 3, 17, 3), 'result': '0.07000998584327799', 'result_long': None, 'result_double': None}] Qualite : 0.07000998584327799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20983803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983803_03-03-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20983803 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983803_03-03-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983817, 'pht': 3726}}" where mtr_portfolio_id = 20983803 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20983803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186164, 0.07000998584327799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20983803_03-03-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20983806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20983807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20983808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20983809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20983810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20983811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20983812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20983813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20983814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20983815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20983816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20983817, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20984411 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629962, 'mtr_portfolio_id': 20984411, 'created_at': datetime.datetime(2025, 3, 3, 17, 18, 58), 'result': '0.08428888685402029', 'result_long': None, 'result_double': None}] Qualite : 0.08428888685402029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20984411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20984411 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984425, 'pht': 3726}}" where mtr_portfolio_id = 20984411 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20984411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186165, 0.08428888685402029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984411_03-03-2025_17_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20984700 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2629989, 'mtr_portfolio_id': 20984700, 'created_at': datetime.datetime(2025, 3, 3, 18, 3), 'result': '0.07436729197493754', 'result_long': None, 'result_double': None}] Qualite : 0.07436729197493754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20984700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984700_03-03-2025_18_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20984700 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984700_03-03-2025_18_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984790, 'pht': 3726}}" where mtr_portfolio_id = 20984700 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20984700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186166, 0.07436729197493754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20984700_03-03-2025_18_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20984779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20984780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20984781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20984782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20984783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20984784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20984785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20984786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20984787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20984788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20984789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20984790, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20986044 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630102, 'mtr_portfolio_id': 20986044, 'created_at': datetime.datetime(2025, 3, 3, 18, 18, 58), 'result': '0.11375549327867752', 'result_long': None, 'result_double': None}] Qualite : 0.11375549327867752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20986044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986044_03-03-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20986044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986044_03-03-2025_18_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986058, 'pht': 3726}}" where mtr_portfolio_id = 20986044 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20986044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186167, 0.11375549327867752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986044_03-03-2025_18_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986058, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20986474 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630133, 'mtr_portfolio_id': 20986474, 'created_at': datetime.datetime(2025, 3, 3, 18, 32, 57), 'result': '0.10235095238348706', 'result_long': None, 'result_double': None}] Qualite : 0.10235095238348706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20986474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20986474 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986487, 'pht': 3726}}" where mtr_portfolio_id = 20986474 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20986474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186168, 0.10235095238348706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20986474_03-03-2025_18_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20986476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20986477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20986478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20986479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20986480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20986481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20986482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20986483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20986484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20986485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20986486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20986487, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20987003 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630175, 'mtr_portfolio_id': 20987003, 'created_at': datetime.datetime(2025, 3, 3, 18, 48, 57), 'result': '0.06581388734402092', 'result_long': None, 'result_double': None}] Qualite : 0.06581388734402092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20987003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987003_03-03-2025_18_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20987003 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987003_03-03-2025_18_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20987006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20987007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20987008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20987009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20987010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20987011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20987012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20987013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20987014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20987015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20987016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20987017, 'pht': 3726}}" where mtr_portfolio_id = 20987003 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20987003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186169, 0.06581388734402092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987003_03-03-2025_18_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20987006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20987007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20987008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20987009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20987010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20987011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20987012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20987013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20987014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20987015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20987016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20987017, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20987472 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630206, 'mtr_portfolio_id': 20987472, 'created_at': datetime.datetime(2025, 3, 3, 19, 3), 'result': '0.09470820648957376', 'result_long': None, 'result_double': None}] Qualite : 0.09470820648957376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20987472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987472_03-03-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20987472 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987472_03-03-2025_19_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20987516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20987517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20987518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20987519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20987520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20987521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20987522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20987523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20987524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20987525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20987526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20987527, 'pht': 3726}}" where mtr_portfolio_id = 20987472 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20987472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186170, 0.09470820648957376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20987472_03-03-2025_19_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20987516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20987517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20987518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20987519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20987520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20987521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20987522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20987523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20987524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20987525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20987526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20987527, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20988119 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630257, 'mtr_portfolio_id': 20988119, 'created_at': datetime.datetime(2025, 3, 3, 19, 18, 58), 'result': '0.07103409973223107', 'result_long': None, 'result_double': None}] Qualite : 0.07103409973223107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20988119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988119_03-03-2025_19_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20988119 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988119_03-03-2025_19_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20988182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20988183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20988184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20988185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20988186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20988187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20988188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20988189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20988190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20988191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20988192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20988193, 'pht': 3726}}" where mtr_portfolio_id = 20988119 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20988119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186171, 0.07103409973223107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988119_03-03-2025_19_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20988182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20988183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20988184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20988185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20988186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20988187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20988188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20988189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20988190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20988191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20988192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20988193, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20988613 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630288, 'mtr_portfolio_id': 20988613, 'created_at': datetime.datetime(2025, 3, 3, 19, 33), 'result': '0.07971415676808818', 'result_long': None, 'result_double': None}] Qualite : 0.07971415676808818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20988613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988613_03-03-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20988613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988613_03-03-2025_19_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20988616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20988617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20988618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20988619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20988620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20988621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20988622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20988623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20988624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20988625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20988626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20988627, 'pht': 3726}}" where mtr_portfolio_id = 20988613 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20988613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186172, 0.07971415676808818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20988613_03-03-2025_19_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20988616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20988617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20988618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20988619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20988620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20988621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20988622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20988623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20988624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20988625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20988626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20988627, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20989064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630331, 'mtr_portfolio_id': 20989064, 'created_at': datetime.datetime(2025, 3, 3, 19, 48, 57), 'result': '0.08738803319697101', 'result_long': None, 'result_double': None}] Qualite : 0.08738803319697101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20989064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989064_03-03-2025_19_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20989064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989064_03-03-2025_19_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20989067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20989068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20989069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20989070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20989071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20989072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20989073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20989074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20989075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20989076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20989077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20989078, 'pht': 3726}}" where mtr_portfolio_id = 20989064 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20989064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186173, 0.08738803319697101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989064_03-03-2025_19_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20989067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20989068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20989069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20989070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20989071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20989072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20989073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20989074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20989075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20989076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20989077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20989078, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20989548 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630367, 'mtr_portfolio_id': 20989548, 'created_at': datetime.datetime(2025, 3, 3, 20, 2, 59), 'result': '0.09049298749239297', 'result_long': None, 'result_double': None}] Qualite : 0.09049298749239297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20989548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989548_03-03-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20989548 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989548_03-03-2025_20_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20989578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20989579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20989580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20989581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20989582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20989583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20989584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20989585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20989586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20989587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20989588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20989589, 'pht': 3726}}" where mtr_portfolio_id = 20989548 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20989548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186174, 0.09049298749239297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20989548_03-03-2025_20_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20989578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20989579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20989580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20989581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20989582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20989583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20989584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20989585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20989586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20989587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20989588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20989589, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20990317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630415, 'mtr_portfolio_id': 20990317, 'created_at': datetime.datetime(2025, 3, 3, 20, 18, 58), 'result': '0.07164252609311128', 'result_long': None, 'result_double': None}] Qualite : 0.07164252609311128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20990317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990317_03-03-2025_20_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20990317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990317_03-03-2025_20_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20990343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20990344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20990345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20990346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20990347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20990348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20990349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20990350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20990351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20990352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20990353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20990354, 'pht': 3726}}" where mtr_portfolio_id = 20990317 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20990317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186175, 0.07164252609311128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990317_03-03-2025_20_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20990343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20990344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20990345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20990346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20990347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20990348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20990349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20990350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20990351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20990352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20990353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20990354, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20990909 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630450, 'mtr_portfolio_id': 20990909, 'created_at': datetime.datetime(2025, 3, 3, 20, 32, 30), 'result': '0.07162443114301377', 'result_long': None, 'result_double': None}] Qualite : 0.07162443114301377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20990909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990909_03-03-2025_20_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20990909 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990909_03-03-2025_20_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20990941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20990942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20990943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20990944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20990945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20990946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20990947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20990948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20990949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20990950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20990951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20990952, 'pht': 3726}}" where mtr_portfolio_id = 20990909 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20990909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186176, 0.07162443114301377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20990909_03-03-2025_20_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20990941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20990942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20990943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20990944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20990945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20990946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20990947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20990948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20990949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20990950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20990951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20990952, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20991546 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630495, 'mtr_portfolio_id': 20991546, 'created_at': datetime.datetime(2025, 3, 3, 21, 6, 29), 'result': '0.07562956002035343', 'result_long': None, 'result_double': None}] Qualite : 0.07562956002035343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20991546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20991546_03-03-2025_21_06_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20991546 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20991546_03-03-2025_21_06_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20991576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20991577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20991578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20991579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20991580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20991581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20991582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20991583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20991584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20991585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20991586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20991587, 'pht': 3726}}" where mtr_portfolio_id = 20991546 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20991546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186177, 0.07562956002035343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20991546_03-03-2025_21_06_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20991576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20991577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20991578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20991579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20991580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20991581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20991582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20991583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20991584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20991585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20991586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20991587, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20992705 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630588, 'mtr_portfolio_id': 20992705, 'created_at': datetime.datetime(2025, 3, 3, 21, 19, 1), 'result': '0.05266484115808631', 'result_long': None, 'result_double': None}] Qualite : 0.05266484115808631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20992705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20992705_03-03-2025_21_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20992705 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20992705_03-03-2025_21_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20992749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20992750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20992751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20992752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20992753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20992754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20992755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20992756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20992757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20992758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20992759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20992760, 'pht': 3726}}" where mtr_portfolio_id = 20992705 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20992705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186178, 0.05266484115808631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20992705_03-03-2025_21_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20992749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20992750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20992751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20992752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20992753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20992754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20992755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20992756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20992757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20992758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20992759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20992760, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20994599 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2630828, 'mtr_portfolio_id': 20994599, 'created_at': datetime.datetime(2025, 3, 3, 23, 32, 59), 'result': '0.19586530500412477', 'result_long': None, 'result_double': None}] Qualite : 0.19586530500412477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20994599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20994599_03-03-2025_23_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20994599 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20994599_03-03-2025_23_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20994600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20994601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20994602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20994603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20994604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20994605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20994606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20994607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20994608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20994609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20994610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20994611, 'pht': 3726}}" where mtr_portfolio_id = 20994599 and dashboard_run_id = 1644248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20994599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9186179, 0.19586530500412477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20994599_03-03-2025_23_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20994600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20994601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20994602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20994603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20994604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20994605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20994606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20994607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20994608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20994609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20994610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20994611, '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 (20960307,20960513,20960900,20961064,20961514,20961943,20962435,20962794,20963307,20963628,20964476,20965022,20965512,20966655,20966718,20967368,20967705,20968187,20968779,20969496,20970176,20970772,20971287,20971841,20972467,20973314,20974054,20974829,20976058,20976515,20976807,20977087,20977626,20978006,20978650,20979220,20979676,20980311,20980858,20981321,20981988,20982201,20983052,20983803,20984411,20984700,20986044,20986474,20987003,20987472,20988119,20988613,20989064,20989548,20990317,20990909,20991546,20992705,20994599) result : ((1340578858,), (1340578861,), (1340578880,), (1340578882,), (1340578885,), (1340578888,), (1340578892,), (1340578895,), (1340578907,), (1340578909,), (1340578911,), (1340578930,), (1340578932,), (1340578957,), (1340578961,), (1340578967,), (1340578983,), (1340579766,), (1340579748,), (1340579750,), (1340579901,), (1340579902,), (1340579904,), (1340579905,), (1340579924,), (1340579926,), (1340579947,), (1340579949,), (1340579956,), (1340579964,), (1340579992,), (1340579994,), (1340579996,), (1340579997,), (1340580016,), (1340580018,), (1340580020,), (1340580021,), (1340580034,), (1340580039,), (1340580053,), (1340580056,), (1340580057,), (1340580058,), (1340580077,), (1340580079,), (1340580082,), (1340580120,), (1340580123,), (1340580126,), (1340580127,), (1340580130,), (1340580133,), (1340580149,), (1340580153,), (1340580154,), (1340580158,), (1340580192,), (1340580194,), (1340580196,), (1340580197,), (1340580201,), (1340580205,), (1340580218,), (1340580221,), (1340580227,), (1340580230,), (1340580254,), (1340580263,), (1340580268,), (1340580269,), (1340580273,), (1340580277,), (1340580763,), (1340580832,), (1340580906,), (1340580981,), (1340581021,), (1340581066,), (1340581068,), (1340581070,), (1340581071,), (1340581075,), (1340581079,), (1340581101,), (1340581092,), (1340581095,), (1340581380,), (1340581381,), (1340581386,), (1340581403,), (1340581404,), (1340581405,), (1340581406,), (1340581410,), (1340581416,), (1340581429,), (1340581430,), (1340581432,), (1340581433,), (1340581438,), (1340581456,), (1340581457,), (1340581459,), (1340581460,), (1340581465,), (1340581636,), (1340581625,), (1340581626,), (1340581627,), (1340581628,), (1340581633,), (1340581652,), (1340581658,), (1340581664,), (1340581693,), (1340581694,), (1340581716,), (1340581717,), (1340581724,), (1340581729,), (1340581734,), (1340581751,), (1340581752,), (1340581753,), (1340581754,), (1340581777,), (1340581778,), (1340581779,), (1340581780,), (1340581791,), (1340581797,), (1340581819,), (1340581830,), (1340581836,), (1340581838,), (1340581856,), (1340581858,), (1340581860,), (1340581862,), (1340581866,), (1340581877,), (1340581904,), (1340581906,), (1340581908,), (1340581909,), (1340581913,), (1340581932,), (1340581934,), (1340581937,), (1340581938,), (1340581942,), (1340581976,), (1340581987,), (1340581993,), (1340581994,), (1340581998,), (1340582002,), (1340582019,), (1340582021,), (1340582024,), (1340582025,), (1340582066,), (1340582070,), (1340582073,), (1340582074,), (1340582077,), (1340582079,), (1340582126,), (1340582137,), (1340582142,), (1340582147,), (1340582149,), (1340582152,), (1340582154,), (1340582155,), (1340582157,), (1340582184,), (1340582168,), (1340582172,), (1340582175,), (1340582180,), (1340582486,), (1340582511,), (1340582514,), (1340582547,), (1340582567,), (1340582571,), (1340582572,), (1340582574,), (1340582580,), (1340582586,), (1340582609,), (1340582622,), (1340582627,), (1340582629,), (1340582635,), (1340582658,), (1340582659,), (1340582661,), (1340582663,), (1340582713,), (1340582714,), (1340582717,), (1340582719,), (1340582724,), (1340582741,), (1340582744,), (1340582745,), (1340582750,), (1340582781,), (1340582794,), (1340582801,), (1340582805,), (1340582809,), (1340582813,), (1340582828,), (1340582831,), (1340582834,), (1340582839,), (1340582853,), (1340582883,), (1340582885,), (1340582887,), (1340582890,), (1340582894,), (1340582912,), (1340582914,), (1340582915,), (1340582917,), (1340582923,), (1340582954,), (1340582956,), (1340582958,), (1340582962,), (1340583004,), (1340583005,), (1340583007,), (1340583009,), (1340583014,), (1340583021,), (1340583049,), (1340583053,), (1340583055,), (1340583057,), (1340583062,), (1340583080,), (1340583081,), (1340583084,), (1340583087,), (1340583093,), (1340583097,), (1340583139,), (1340583133,), (1340583135,), (1340583138,), (1340583163,), (1340583164,), (1340583167,), (1340583169,), (1340583174,), (1340583635,), (1340583697,), (1340583699,), (1340583830,), (1340583832,), (1340583834,), (1340583836,), (1340583844,), (1340583884,), (1340583893,), (1340583894,), (1340583920,), (1340583923,), (1340583925,), (1340583930,), (1340583936,), (1340583940,), (1340583969,), (1340583972,), (1340583974,), (1340583976,), (1340583999,), (1340584000,), (1340584002,), (1340584004,), (1340584010,), (1340584016,), (1340584036,), (1340584047,), (1340584055,), (1340584057,), (1340584082,), (1340584084,), (1340584085,), (1340584087,), (1340584093,), (1340584135,), (1340584136,), (1340584139,), (1340584143,), (1340584165,), (1340584167,), (1340584168,), (1340584173,), (1340584179,), (1340584207,), (1340584208,), (1340584210,), (1340584212,), (1340584218,), (1340584224,), (1340584254,), (1340584256,), (1340584259,), (1340584261,), (1340584265,), (1340584315,), (1340584319,), (1340584325,), (1340584329,), (1340584333,), (1340584376,), (1340584348,), (1340584352,), (1340584358,), (1340584360,), (1340584365,), (1340584415,), (1340584419,), (1340584423,), (1340584437,), (1340584448,), (1340584484,), (1340584488,), (1340584504,), (1340584511,), (1340584580,), (1340584582,), (1340584587,), (1340584591,), (1340584595,), (1340584612,), (1340584615,), (1340584620,), (1340584623,), (1340584627,), (1340584660,), (1340584662,), (1340584666,), (1340584669,), (1340584695,), (1340584697,), (1340584700,), (1340584702,), (1340584707,), (1340584712,), (1340584746,), (1340584748,), (1340584751,), (1340584753,), (1340584758,), (1340584777,), (1340584781,), (1340584782,), (1340584784,), (1340584789,), (1340584793,), (1340584826,), (1340584833,), (1340584837,), (1340584839,), (1340584859,), (1340584912,), (1340584915,), (1340584918,), (1340584920,), (1340584925,), (1340584945,), (1340584948,), (1340584951,), (1340584953,), (1340584958,), (1340584963,), (1340584985,), (1340584987,), (1340584989,), (1340584991,), (1340584997,), (1340585019,), (1340585021,), (1340585025,), (1340585027,), (1340585081,), (1340585069,), (1340585071,), (1340585073,), (1340585075,), (1340585103,), (1340585106,), (1340585116,), (1340585118,), (1340585123,), (1340585176,), (1340585178,), (1340585181,), (1340585183,), (1340585188,), (1340585232,), (1340585257,), (1340585269,), (1340585274,), (1340585278,), (1340585325,), (1340585327,), (1340585330,), (1340585338,), (1340585347,), (1340585366,), (1340585368,), (1340585371,), (1340585373,), (1340585378,), (1340585413,), (1340585424,), (1340585429,), (1340585431,), (1340585436,), (1340585450,), (1340585455,), (1340585459,), (1340585465,), (1340585470,), (1340585500,), (1340585504,), (1340585506,), (1340585510,), (1340585513,), (1340585517,), (1340585533,), (1340585537,), (1340585538,), (1340585540,), (1340585545,), (1340585584,), (1340585590,), (1340585592,), (1340585594,), (1340585599,), (1340585619,), (1340585621,), (1340585624,), (1340585626,), (1340585630,), (1340585633,), (1340585689,), (1340585691,), (1340585694,), (1340585696,), (1340585753,), (1340585760,), (1340585773,), (1340585780,), (1340585783,), (1340585787,), (1340585789,), (1340585792,), (1340585796,), (1340585800,), (1340585830,), (1340585817,), (1340585821,), (1340585824,), (1340585857,), (1340585860,), (1340585865,), (1340585868,), (1340585873,), (1340585878,), (1340585897,), (1340586041,), (1340586196,), (1340586413,), (1340586422,), (1340586442,), (1340586452,), (1340586458,), (1340586463,), (1340586492,), (1340586494,), (1340586497,), (1340586499,), (1340586554,), (1340586556,), (1340586560,), (1340586563,), (1340586569,), (1340586588,), (1340586636,), (1340586640,), (1340586657,), (1340586717,), (1340586723,), (1340586729,), (1340586732,), (1340586737,), (1340586743,), (1340586769,), (1340586773,), (1340586777,), (1340586792,), (1340586799,), (1340586822,), (1340586828,), (1340586834,), (1340586839,), (1340586845,), (1340586855,), (1340586889,), (1340586892,), (1340586899,), (1340586911,), (1340586917,), (1340586922,), (1340586929,), (1340586934,), (1340586943,), (1340587045,), (1340587049,), (1340587057,), (1340587060,), (1340587061,), (1340587065,), (1340587069,), (1340587076,), (1340587159,), (1340587177,), (1340587182,), (1340587188,), (1340587194,), (1340587198,), (1340587203,), (1340587258,), (1340587286,), (1340586878,), (1340586881,), (1340586885,), (1340586957,), (1340586960,), (1340586964,), (1340586967,), (1340586969,), (1340586974,), (1340586988,), (1340586998,), (1340587010,), (1340587029,), (1340587129,), (1340587143,), (1340587147,), (1340587151,), (1340587153,), (1340587234,), (1340587242,), (1340587247,), (1340587252,), (1340587255,), (1340587305,), (1340587317,), (1340587323,), (1340587328,), (1340587332,), (1340587575,), (1340587686,), (1340587697,), (1340587702,), (1340587706,), (1340587769,), (1340587772,), (1340587776,), (1340587778,), (1340587783,), (1340587788,), (1340587838,), (1340587843,), (1340587847,), (1340587849,), (1340587901,), (1340587906,), (1340587910,), (1340587914,), (1340587919,), (1340587924,), (1340587986,), (1340587988,), (1340587993,), (1340587996,), (1340588051,), (1340588053,), (1340588058,), (1340588061,), (1340588066,), (1340588071,), (1340588110,), (1340588123,), (1340588129,), (1340588131,), (1340588136,), (1340588172,), (1340588175,), (1340588182,), (1340588185,), (1340588193,), (1340588249,), (1340588251,), (1340588259,), (1340588263,), (1340588269,), (1340588274,), (1340588321,), (1340588298,), (1340588300,), (1340588305,), (1340588308,), (1340588380,), (1340588383,), (1340588386,), (1340588388,), (1340588394,), (1340588443,), (1340588453,), (1340588457,), (1340588460,), (1340588532,), (1340588548,), (1340588560,), (1340588564,), (1340588571,), (1340588579,), (1340588629,), (1340588635,), (1340588640,), (1340588643,), (1340588708,), (1340588712,), (1340588719,), (1340588726,), (1340588741,), (1340588749,), (1340588794,), (1340588801,), (1340588812,), (1340588821,), (1340588900,), (1340588904,), (1340588909,), (1340588913,), (1340588920,), (1340588925,), (1340588956,), (1340588960,), (1340588966,), (1340588971,), (1340588977,), (1340589027,), (1340589036,), (1340589052,), (1340589059,), (1340589066,), (1340589071,), (1340589104,), (1340589108,), (1340589115,), (1340589118,), (1340589163,), (1340589170,), (1340589177,), (1340589183,), (1340589199,), (1340589209,), (1340589244,), (1340589250,), (1340589257,), (1340589261,), (1340589301,), (1340589305,), (1340589311,), (1340589323,), (1340589337,), (1340589345,), (1340589379,), (1340589384,), (1340589390,), (1340589394,), (1340589492,), (1340589436,), (1340589443,), (1340589458,), (1340589478,), (1340589483,), (1340589533,), (1340589540,), (1340589545,), (1340589552,), (1340589556,), (1340589614,), (1340589618,), (1340589625,), (1340589672,), (1340589675,), (1340589679,), (1340589682,), (1340589701,), (1340589765,), (1340589779,), (1340589783,), (1340589786,), (1340589846,), (1340589850,), (1340589855,), (1340589858,), (1340589862,), (1340589922,), (1340589927,), (1340589931,), (1340589936,), (1340589942,), (1340589985,), (1340589991,), (1340590052,), (1340590061,), (1340590067,), (1340590073,), (1340590117,), (1340590121,), (1340590125,), (1340590130,), (1340590137,), (1340590142,), (1340590183,), (1340590185,), (1340590190,), (1340590194,), (1340590234,), (1340590236,), (1340590239,), (1340590242,), (1340590248,), (1340590255,), (1340590297,), (1340590300,), (1340590304,), (1340590308,), (1340590769,), (1340590857,), (1340590862,), (1340590867,), (1340590897,), (1340591142,), (1340591147,), (1340591154,), (1340591178,), (1340591187,), (1340591189,), (1340591129,), (1340591135,), (1340591140,), (1340591217,), (1340591222,), (1340591228,), (1340591233,), (1340591237,), (1340591240,), (1340591291,), (1340591297,), (1340591303,), (1340591307,), (1340591398,), (1340591402,), (1340591407,), (1340591411,), (1340591423,), (1340591496,), (1340591500,), (1340591505,), (1340591508,), (1340591548,), (1340591551,), (1340591558,), (1340591561,), (1340591576,), (1340591582,), (1340591762,), (1340591842,), (1340591950,), (1340591972,), (1340591978,), (1340592017,), (1340592028,), (1340592043,), (1340592061,), (1340592067,), (1340592072,), (1340592094,), (1340592097,), (1340592102,), (1340592105,), (1340592170,), (1340592179,), (1340592187,), (1340592190,), (1340592194,), (1340592226,), (1340592229,), (1340592234,), (1340592238,), (1340592242,), (1340592310,), (1340592377,), (1340592380,), (1340592453,), (1340592495,), (1340592740,), (1340596464,), (1340596466,), (1340596472,), (1340596475,), (1340596540,), (1340596545,), (1340596555,), (1340596613,), (1340596616,), (1340596619,), (1340596623,), (1340596630,), (1340596635,), (1340596665,), (1340596669,), (1340596674,), (1340596679,), (1340596684,), (1340596689,), (1340596732,), (1340596735,), (1340596781,), (1340596839,), (1340596846,), (1340596853,), (1340596860,), (1340596866,), (1340596870,), (1340596921,), (1340596898,), (1340596903,), (1340596910,), (1340596916,), (1340596952,), (1340596956,), (1340596961,), (1340596966,), (1340596973,), (1340597301,), (1340597305,), (1340597311,), (1340597361,), (1340597374,), (1340597378,), (1340597546,), (1340597550,), (1340597557,), (1340597562,), (1340597570,), (1340597577,), (1340597632,), (1340597637,), (1340597642,), (1340597647,), (1340597685,), (1340597690,), (1340597694,), (1340597704,), (1340598027,), (1340598031,), (1340598036,), (1340598053,), (1340598060,), (1340598066,), (1340598111,), (1340598116,), (1340598122,), (1340598127,), (1340598133,), (1340598142,), (1340598182,), (1340598186,), (1340598192,), (1340598205,), (1340598213,), (1340598263,), (1340598272,), (1340598328,), (1340598336,), (1340598343,), (1340598345,), (1340598359,), (1340598364,), (1340598388,), (1340598394,), (1340598400,), (1340598576,), (1340598580,), (1340598584,), (1340598591,), (1340598613,), (1340598623,), (1340598662,), (1340598667,), (1340598671,), (1340598677,), (1340598684,), (1340598688,), (1340598746,), (1340598750,), (1340598778,), (1340598887,), (1340598861,), (1340598865,), (1340598871,), (1340598874,), (1340598881,), (1340599001,), (1340599005,), (1340599012,), (1340599014,), (1340599020,), (1340599059,), (1340599063,), (1340599070,), (1340599080,), (1340599121,), (1340599124,), (1340599132,), (1340599142,), (1340599158,), (1340599166,), (1340599366,), (1340599372,), (1340599380,), (1340599428,), (1340599431,), (1340599440,), (1340599446,), (1340599451,), (1340599456,), (1340599492,), (1340599497,), (1340599503,), (1340599510,), (1340599548,), (1340599709,), (1340600081,), (1340600084,), (1340600154,), (1340600135,), (1340600138,), (1340600142,), (1340600147,), (1340600339,), (1340600341,), (1340600346,), (1340600349,), (1340600423,), (1340600426,), (1340600432,), (1340600470,), (1340600476,), (1340600506,), (1340600508,), (1340600513,), (1340600518,), (1340600525,), (1340600529,), (1340600564,), (1340600567,), (1340600573,), (1340600578,), (1340600584,), (1340600588,), (1340600627,), (1340600636,), (1340600643,), (1340600743,), (1340600753,), (1340600757,), (1340600766,), (1340600774,), (1340600787,), (1340600857,), (1340600886,), (1340600888,), (1340600941,), (1340600946,), (1340600954,), (1340600957,), (1340600963,), (1340600996,), (1340600998,), (1340601003,), (1340601018,), (1340601023,), (1340601028,), (1340601064,), (1340601074,), (1340601080,), (1340601083,), (1340601120,), (1340601127,), (1340601133,), (1340601135,), (1340601140,), (1340601143,), (1340601302,), (1340601340,), (1340601345,), (1340601360,), (1340601368,), (1340601374,), (1340601442,), (1340601451,), (1340601459,), (1340601466,), (1340601484,), (1340601488,), (1340601492,), (1340601494,), (1340601500,), (1340601532,), (1340601521,), (1340601528,), (1340601580,), (1340601586,), (1340601592,), (1340601608,), (1340601617,), (1340601621,), (1340601666,), (1340601671,), (1340601677,), (1340601681,), (1340601769,), (1340601773,), (1340601780,), (1340601786,), (1340601791,), (1340601795,), (1340601817,), (1340601821,), (1340601870,), (1340602116,), (1340602485,), (1340602516,), (1340602525,), (1340602531,), (1340602546,), (1340602549,), (1340602708,), (1340602715,), (1340602718,), (1340602723,), (1340602729,), (1340602775,), (1340602786,), (1340602800,), (1340602808,), (1340602883,), (1340602891,), (1340602895,), (1340602899,), (1340602905,), (1340602910,), (1340602963,), (1340602969,), (1340602975,), (1340603029,), (1340603034,), (1340603152,), (1340603156,), (1340603189,), (1340603193,), (1340603199,), (1340603209,), (1340603248,), (1340603253,), (1340603258,), (1340603265,), (1340603292,), (1340603296,), (1340603304,), (1340603312,), (1340603317,), (1340603322,), (1340603368,), (1340603373,), (1340603379,), (1340603441,), (1340603445,), (1340603448,), (1340603450,), (1340603453,), (1340603455,), (1340603494,), (1340603474,), (1340603480,), (1340603484,), (1340603665,), (1340603672,), (1340603676,), (1340603680,), (1340603692,), (1340603699,), (1340603727,), (1340603733,), (1340603738,), (1340603741,), (1340603794,), (1340603800,), (1340603805,), (1340603834,), (1340603841,), (1340603847,), (1340603937,), (1340603942,), (1340603950,), (1340603954,), (1340603960,), (1340604097,), (1340604104,), (1340604111,), (1340604125,), (1340604308,), (1340604313,), (1340604321,), (1340604324,), (1340604329,), (1340604336,), (1340604716,), (1340604736,), (1340604751,), (1340604799,), (1340604861,), (1340604868,), (1340604872,), (1340604876,), (1340604882,), (1340604887,), (1340604926,), (1340604930,), (1340604942,), (1340604951,), (1340604958,), (1340605025,), (1340605034,), (1340605039,), (1340605044,), (1340605050,), (1340605056,), (1340605081,), (1340605088,), (1340605091,), (1340605100,), (1340605172,), (1340605177,), (1340605185,), (1340605189,), (1340605243,), (1340605310,), (1340605327,), (1340605333,), (1340605353,), (1340605362,), (1340605371,), (1340605548,), (1340605551,), (1340605576,), (1340605583,), (1340605670,), (1340605640,), (1340605643,), (1340605651,), (1340605659,), (1340605665,), (1340605692,), (1340605695,), (1340605701,), (1340605705,), (1340605742,), (1340605746,), (1340605749,), (1340605753,), (1340605763,), (1340605768,), (1340605800,), (1340605804,), (1340605814,), (1340605829,), (1340605838,), (1340605885,), (1340605890,), (1340605896,), (1340605901,), (1340605906,), (1340605911,), (1340605958,), (1340605963,), (1340605975,), (1340605980,), (1340606035,), (1340606045,), (1340606051,), (1340606055,), (1340606061,), (1340606065,), (1340606087,), (1340606102,), (1340606108,), (1340606115,), (1340606119,), (1340606157,), (1340606179,), (1340606193,), (1340606201,), (1340606226,), (1340606235,), (1340606245,), (1340606252,), (1340606258,), (1340606261,), (1340606284,), (1340606292,), (1340606295,), (1340606301,), (1340606349,), (1340606352,), (1340606357,), (1340606365,), (1340606372,), (1340606377,), (1340606401,), (1340606404,), (1340606409,), (1340606426,), (1340606437,), (1340606472,), (1340606477,), (1340606486,), (1340606487,), (1340606492,), (1340606537,), (1340606542,), (1340606546,), (1340606549,), (1340606555,), (1340606667,), (1340606642,), (1340606653,), (1340606657,), (1340606739,), (1340606783,), (1340606786,), (1340606791,), (1340606796,), (1340606801,), (1340606882,), (1340606888,), (1340606898,), (1340606900,), (1340606905,), (1340606958,), (1340606961,), (1340606968,), (1340606976,), (1340606981,), (1340606986,), (1340607030,), (1340607034,), (1340607038,), (1340607074,), (1340607077,), (1340607082,), (1340607086,), (1340607091,), (1340607097,), (1340607131,), (1340607140,), (1340607145,), (1340607148,), (1340607154,), (1340607217,), (1340607243,), (1340607249,), (1340607267,), (1340607273,), (1340607333,), (1340607394,), (1340607399,), (1340607401,), (1340607442,), (1340607445,), (1340607450,), (1340607588,), (1340607652,), (1340607656,), (1340607657,), (1340607663,), (1340607668,), (1340607672,), (1340607696,), (1340607699,), (1340607705,), (1340607730,), (1340607838,), (1340607872,), (1340607875,), (1340607878,), (1340607913,), (1340607919,), (1340607982,), (1340607989,), (1340608000,), (1340608009,), (1340608018,), (1340608066,), (1340608045,), (1340608052,), (1340608059,), (1340608214,), (1340608220,), (1340608247,), (1340608264,), (1340608276,), (1340608335,), (1340608340,), (1340608554,), (1340608846,), (1340609087,), (1340609136,), (1340609145,), (1340609148,), (1340609164,), (1340609181,), (1340609188,), (1340609501,), (1340609509,), (1340609519,), (1340609521,), (1340609525,), (1340609570,), (1340609574,), (1340609578,), (1340609590,), (1340609639,), (1340609645,), (1340609649,), (1340609654,), (1340609658,), (1340609664,), (1340609684,), (1340609688,), (1340609694,), (1340609697,), (1340609702,), (1340609753,), (1340609756,), (1340609761,), (1340609763,), (1340609768,), (1340609820,), (1340609822,), (1340609827,), (1340609829,), (1340609833,), (1340609911,), (1340609915,), (1340609917,), (1340609922,), (1340609926,), (1340609955,), (1340609958,), (1340609961,), (1340609972,), (1340609980,), (1340610014,), (1340610021,), (1340610029,), (1340610031,), (1340610044,), (1340610079,), (1340610083,), (1340610088,), (1340610090,), (1340610095,), (1340610139,), (1340610143,), (1340610147,), (1340610162,), (1340610167,), (1340610208,), (1340610190,), (1340610195,), (1340610199,), (1340610202,), (1340610415,), (1340610419,), (1340610422,), (1340610432,), (1340610447,), (1340610452,), (1340610490,), (1340610492,), (1340610496,), (1340610501,), (1340610777,), (1340610781,), (1340610784,), (1340610786,), (1340610822,), (1340610825,), (1340610828,), (1340610832,), (1340610836,), (1340610843,), (1340610868,), (1340610871,), (1340610874,), (1340610909,), (1340610913,), (1340610917,), (1340610922,), (1340610925,), (1340610929,), (1340611010,), (1340611016,), (1340611022,), (1340611029,), (1340611092,), (1340611095,), (1340611098,), (1340611101,), (1340611105,), (1340611130,), (1340611132,), (1340611137,), (1340611141,), (1340611146,), (1340611189,), (1340611192,), (1340611195,), (1340611199,), (1340611222,), (1340611232,), (1340611248,), (1340611269,), (1340611304,), (1340611309,), (1340611332,), (1340611335,), (1340611340,), (1340611343,), (1340611371,), (1340611374,), (1340611377,), (1340611526,), (1340611537,), (1340611542,), (1340611569,), (1340611573,), (1340611577,), (1340611579,), (1340611723,), (1340611678,), (1340611684,), (1340611688,), (1340611694,), (1340611717,), (1340611786,), (1340611789,), (1340611800,), (1340611812,), (1340611817,), (1340611893,), (1340611899,), (1340611902,), (1340611905,), (1340611955,), (1340611957,), (1340611960,), (1340611963,), (1340611970,), (1340611993,), (1340611996,), (1340611998,), (1340612002,), (1340612006,), (1340612010,), (1340612031,), (1340612033,), (1340612036,), (1340612038,), (1340612042,), (1340612078,), (1340612090,), (1340612100,), (1340612110,), (1340612176,), (1340612181,), (1340612184,), (1340612190,), (1340612196,), (1340612208,), (1340612250,), (1340612259,), (1340612266,), (1340612272,), (1340612309,), (1340612311,), (1340612314,), (1340612316,), (1340612322,), (1340612329,), (1340612352,), (1340612355,), (1340612358,), (1340612363,), (1340612421,), (1340612424,), (1340612426,), (1340612429,), (1340612437,), (1340612502,), (1340612504,), (1340612515,), (1340612518,), (1340612529,), (1340612591,), (1340612602,), (1340612606,), (1340612616,), (1340612632,), (1340612670,), (1340612672,), (1340612675,), (1340612677,), (1340612956,), (1340612758,), (1340612759,), (1340612772,), (1340612775,), (1340612788,), (1340613218,), (1340613273,), (1340613300,), (1340613302,), (1340613411,), (1340613414,), (1340613417,), (1340613421,), (1340613429,), (1340613440,), (1340613481,), (1340613483,), (1340613486,), (1340613489,), (1340613551,), (1340613558,), (1340613563,), (1340613566,), (1340613601,), (1340613606,), (1340613609,), (1340613615,), (1340613621,), (1340613627,), (1340613653,), (1340613656,), (1340613660,), (1340613664,), (1340613727,), (1340613734,), (1340613740,), (1340613745,), (1340613750,), (1340613756,), (1340613793,), (1340613806,), (1340613814,), (1340613850,), (1340613853,), (1340613859,), (1340613863,), (1340613875,), (1340613913,), (1340613918,), (1340613932,), (1340613949,), (1340613958,), (1340613972,), (1340614155,), (1340614165,), (1340614186,), (1340614193,), (1340614199,), (1340614204,), (1340614378,), (1340614399,), (1340614412,), (1340614421,), (1340614637,), (1340614649,), (1340614658,), (1340614666,), (1340614738,), (1340614724,), (1340614727,), (1340614733,), (1340614784,), (1340614787,), (1340614789,), (1340614802,), (1340614814,), (1340614822,), (1340614963,), (1340614967,), (1340614969,), (1340614976,), (1340615033,), (1340615037,), (1340615075,), (1340615104,), (1340615110,), (1340615143,), (1340615151,), (1340615162,), (1340615172,), (1340615177,), (1340615217,), (1340615221,), (1340615226,), (1340615230,), (1340615236,), (1340615264,), (1340615268,), (1340615270,), (1340615275,), (1340615281,), (1340615287,), (1340615337,), (1340615353,), (1340615365,), (1340615374,), (1340615394,), (1340615441,), (1340615445,), (1340615451,), (1340615458,), (1340615467,), (1340615503,), (1340615509,), (1340615517,), (1340615523,), (1340615549,), (1340615557,), (1340615604,), (1340615607,), (1340615610,), (1340615615,), (1340615622,), (1340615678,), (1340615685,), (1340615695,), (1340615705,), (1340615709,), (1340615731,), (1340615734,), (1340615737,), (1340615742,), (1340615744,), (1340615754,), (1340615795,), (1340615799,), (1340615806,), (1340615818,), (1340615835,), (1340615880,), (1340615883,), (1340615888,), (1340615891,), (1340615982,), (1340615952,), (1340615956,), (1340615968,), (1340615972,), (1340615978,), (1340616168,), (1340616171,), (1340616175,), (1340616179,), (1340616186,), (1340616242,), (1340616256,), (1340616264,), (1340616272,), (1340616310,), (1340616320,), (1340616322,), (1340616334,), (1340616350,), (1340616358,), (1340616390,), (1340616400,), (1340616408,), (1340616418,), (1340616431,), (1340616463,), (1340616469,), (1340616475,), (1340616527,), (1340616540,), (1340616608,), (1340616619,), (1340616623,), (1340616627,), (1340616633,), (1340616638,), (1340616661,), (1340616663,), (1340616668,), (1340616674,), (1340616733,), (1340616739,), (1340616744,), (1340616748,), (1340616762,), (1340616805,), (1340616808,), (1340616813,), (1340616817,), (1340616826,), (1340616874,), (1340616886,), (1340616895,), (1340616899,), (1340616938,), (1340616943,), (1340616945,), (1340616950,), (1340616956,), (1340617023,), (1340617026,), (1340617029,), (1340617033,), (1340617039,), (1340617043,), (1340617106,), (1340617112,), (1340617119,), (1340617129,), (1340617310,), (1340617313,), (1340617316,), (1340617321,), (1340617327,), (1340617417,), (1340617357,), (1340617360,), (1340617364,), (1340617745,), (1340617754,), (1340617763,), (1340617770,), (1340617775,), (1340617801,), (1340617805,), (1340617811,), (1340617831,), (1340617837,), (1340617841,), (1340617870,), (1340617886,), (1340617892,), (1340617900,), (1340617903,), (1340617907,), (1340617929,), (1340617940,), (1340617947,), (1340617952,), (1340617961,), (1340618016,), (1340618094,), (1340618168,), (1340618171,), (1340618178,), (1340618211,), (1340618218,), (1340618220,), (1340618223,), (1340618302,), (1340618331,), (1340618357,), (1340618371,), (1340618383,), (1340618401,), (1340618458,), (1340618460,), (1340618464,), (1340618470,), (1340618474,), (1340618565,), (1340618576,), (1340618585,), (1340618588,), (1340618593,), (1340618638,), (1340618650,), (1340618659,), (1340618989,), (1340620789,), (1340621136,), (1340621154,), (1340621164,), (1340621174,), (1340621310,), (1340621313,), (1340621369,), (1340621404,), (1340621458,), (1340621465,), (1340621539,), (1340621544,), (1340621551,), (1340621553,), (1340621588,), (1340621591,), (1340621648,), (1340621707,), (1340621710,), (1340621757,), (1340621810,), (1340621812,), (1340622102,), (1340622170,), (1340622176,), (1340622187,), (1340622197,), (1340622693,), (1340622746,), (1340622886,), (1340622897,), (1340622900,), (1340622903,), (1340622991,), (1340622996,), (1340622998,), (1340623002,), (1340623006,), (1340623172,), (1340623174,), (1340623177,), (1340623181,), (1340623259,), (1340623468,), (1340624186,), (1340624237,), (1340624613,), (1340624615,), (1340624619,), (1340624759,), (1340624894,), (1340624936,), (1340624939,), (1340624945,), (1340625125,), (1340625130,), (1340625135,), (1340625139,), (1340625142,), (1340625148,), (1340625170,), (1340625173,), (1340625177,), (1340625178,), (1340625282,), (1340625339,), (1340625348,), (1340626249,), (1340626253,), (1340626256,), (1340626259,), (1340626286,), (1340626507,), (1340626486,), (1340626490,), (1340626493,), (1340626495,), (1340626501,), (1340626532,), (1340626535,), (1340626538,), (1340626542,), (1340626597,), (1340626601,), (1340626604,), (1340626608,), (1340626614,), (1340626646,), (1340626649,), (1340626651,), (1340626657,), (1340626662,), (1340626669,), (1340626889,), (1340626891,), (1340626899,), (1340626903,), (1340626938,), (1340626940,), (1340626944,), (1340626946,), (1340626951,), (1340626972,), (1340626975,), (1340626979,), (1340626982,), (1340627039,), (1340627043,), (1340627047,), (1340627051,), (1340627102,), (1340627107,), (1340627112,), (1340627113,), (1340627128,), (1340627165,), (1340627182,), (1340627193,), (1340627198,), (1340627203,), (1340627210,), (1340627243,), (1340627249,), (1340627253,), (1340627277,), (1340627332,), (1340627339,), (1340627342,), (1340627347,), (1340627352,), (1340627356,), (1340627539,), (1340627543,), (1340627546,), (1340627547,), (1340627551,), (1340627604,), (1340627625,), (1340627877,), (1340627872,), (1340627910,), (1340627917,), (1340627922,), (1340627926,), (1340627931,), (1340627951,), (1340627958,), (1340627964,), (1340627972,), (1340627979,), (1340628026,), (1340628031,), (1340628034,), (1340628038,), (1340628043,), (1340628071,), (1340628076,), (1340628079,), (1340628082,), (1340628088,), (1340628092,), (1340628134,), (1340628140,), (1340628145,), (1340628147,), (1340628176,), (1340628181,), (1340628186,), (1340628189,), (1340628196,), (1340628258,), (1340628265,), (1340628267,), (1340628271,), (1340628305,), (1340628310,), (1340628321,), (1340628341,), (1340628344,), (1340628380,), (1340628383,), (1340628388,), (1340628390,), (1340628394,), (1340628427,), (1340628431,), (1340628434,), (1340628443,), (1340628454,), (1340628461,), (1340628506,), (1340628510,), (1340628514,), (1340628554,), (1340628565,), (1340628576,), (1340628579,), (1340628585,), (1340628590,), (1340628661,), (1340628638,), (1340628643,), (1340628648,), (1340628654,), (1340628658,), (1340628699,), (1340628704,), (1340628717,), (1340628727,), (1340628770,), (1340628775,), (1340628780,), (1340628783,), (1340628787,), (1340628792,), (1340629343,), (1340629347,), (1340629351,), (1340629397,), (1340629580,), (1340629588,), (1340629591,), (1340629596,), (1340629603,), (1340629610,), (1340629636,), (1340629640,), (1340629646,), (1340629649,), (1340629655,), (1340629775,), (1340629871,), (1340629896,), (1340629909,), (1340629921,), (1340629928,), (1340630164,), (1340630167,), (1340630173,), (1340630248,), (1340630252,), (1340630256,), (1340630261,), (1340630267,), (1340630273,), (1340630300,), (1340630303,), (1340630310,), (1340630317,), (1340630370,), (1340630373,), (1340630375,), (1340630379,), (1340630385,), (1340630390,), (1340630414,), (1340630418,), (1340630423,), (1340630427,), (1340630469,), (1340630474,), (1340630477,), (1340630481,), (1340630487,), (1340630532,), (1340630536,), (1340630541,), (1340630544,), (1340630550,), (1340630556,), (1340630596,), (1340630604,), (1340630610,), (1340630615,), (1340630734,), (1340630710,), (1340630714,), (1340630721,), (1340630726,), (1340630731,), (1340630795,), (1340630801,), (1340630805,), (1340630814,), (1340630897,), (1340630902,), (1340630906,), (1340630909,), (1340630914,), (1340630919,), (1340630977,), (1340630985,), (1340630990,), (1340631585,), (1340631592,), (1340631597,), (1340631601,), (1340631606,), (1340631609,), (1340631848,), (1340631853,), (1340631858,), (1340631951,), (1340632161,), (1340632167,), (1340632172,), (1340632177,), (1340632181,), (1340632239,), (1340632255,), (1340632273,), (1340632276,), (1340632281,), (1340632297,), (1340632332,), (1340632338,), (1340632344,), (1340632348,), (1340632409,), (1340632417,), (1340632424,), (1340632429,), (1340632480,), (1340632487,), (1340632496,), (1340632501,), (1340632515,), (1340632553,), (1340632560,), (1340632581,), (1340632625,), (1340632632,), (1340632652,), (1340632659,), (1340632666,), (1340632701,), (1340632705,), (1340632711,), (1340632717,), (1340632732,), (1340632735,), (1340632758,), (1340632765,), (1340632769,), (1340632775,), (1340632814,), (1340632807,), (1340632884,), (1340632899,), (1340632905,), (1340632908,), (1340632914,), (1340633391,), (1340633397,), (1340633400,), (1340633714,), (1340633761,), (1340633765,), (1340633770,), (1340633806,), (1340633812,), (1340633818,), (1340633821,), (1340633866,), (1340633872,), (1340633877,), (1340633947,), (1340633952,), (1340633955,), (1340633956,), (1340633960,), (1340633964,), (1340634001,), (1340634006,), (1340634010,), (1340634016,), (1340634059,), (1340634071,), (1340634079,), (1340634084,), (1340634088,), (1340634092,), (1340634125,), (1340634132,), (1340634135,), (1340634139,), (1340634143,), (1340634208,), (1340634216,), (1340634232,), (1340634239,), (1340634250,), (1340634255,), (1340634260,), (1340634296,), (1340634285,), (1340634291,), (1340634526,), (1340634532,), (1340634537,), (1340634556,), (1340634608,), (1340634611,), (1340634619,), (1340634635,), (1340634701,), (1340634710,), (1340634718,), (1340634721,), (1340634728,), (1340634768,), (1340634781,), (1340634794,), (1340634812,), (1340634851,), (1340634855,), (1340634858,), (1340634862,), (1340634867,), (1340634906,), (1340634910,), (1340634917,), (1340634920,), (1340634991,), (1340635012,), (1340635016,), (1340635063,), (1340635067,), (1340635076,), (1340635081,), (1340635132,), (1340635138,), (1340635143,), (1340635146,), (1340635151,), (1340635155,), (1340635182,), (1340635186,), (1340635192,), (1340635196,), (1340635200,), (1340635207,), (1340635247,), (1340635255,), (1340635259,), (1340635291,), (1340635296,), (1340635305,), (1340635310,), (1340635361,), (1340635367,), (1340635370,), (1340635373,), (1340635426,), (1340635430,), (1340635436,), (1340635442,), (1340635566,), (1340635551,), (1340635561,), (1340636009,), (1340636016,), (1340636018,), (1340636045,), (1340636201,), (1340636210,), (1340636212,), (1340636220,), (1340636233,), (1340636239,), (1340636296,), (1340636307,), (1340636315,), (1340636318,), (1340636363,), (1340636365,), (1340636368,), (1340636371,), (1340636376,), (1340636382,), (1340636426,), (1340636428,), (1340636434,), (1340636505,), (1340636525,), (1340636629,), (1340636630,), (1340636632,), (1340636637,), (1340636668,), (1340636669,), (1340636672,), (1340636675,), (1340636722,), (1340636730,), (1340636736,), (1340636792,), (1340637316,), (1340637280,), (1340637290,), (1340637303,), (1340637306,), (1340637311,), (1340637355,), (1340637360,), (1340637366,), (1340637368,), (1340637372,), (1340637375,), (1340637400,), (1340637404,), (1340637407,), (1340637408,), (1340637413,), (1340637418,), (1340637439,), (1340637444,), (1340637449,), (1340637452,), (1340637878,), (1340637881,), (1340637892,), (1340637901,), (1340638052,), (1340638156,), (1340638161,), (1340638163,), (1340638168,), (1340638446,), (1340638462,), (1340638469,), (1340638508,), (1340638512,), (1340638516,), (1340638519,), (1340638577,), (1340638590,), (1340638598,), (1340638603,), (1340638608,), (1340638613,), (1340638638,), (1340638642,), (1340638648,), (1340638654,), (1340638658,), (1340638695,), (1340638699,), (1340638703,), (1340638705,), (1340638712,), (1340638761,), (1340638768,), (1340638772,), (1340638775,), (1340638828,), (1340638832,), (1340638835,), (1340638839,), (1340638876,), (1340638878,), (1340638883,), (1340639118,), (1340639045,), (1340639062,), (1340639065,), (1340639113,), (1340639532,), (1340639544,), (1340639559,), (1340639568,), (1340639573,), (1340639581,), (1340639609,), (1340639611,), (1340639616,), (1340639654,), (1340639658,), (1340639660,), (1340639664,), (1340639670,), (1340639675,), (1340639741,), (1340639754,), (1340639762,), (1340639767,), (1340639802,), (1340639818,), (1340639822,), (1340639825,), (1340639830,), (1340639835,), (1340639883,), (1340639887,), (1340639888,), (1340639892,), (1340639899,), (1340639926,), (1340639930,), (1340639935,), (1340639939,), (1340639945,), (1340639950,), (1340639981,), (1340639991,), (1340639998,), (1340640002,), (1340640008,), (1340640013,), (1340640041,), (1340640046,), (1340640051,), (1340640111,), (1340640128,), (1340640136,), (1340640141,), (1340640146,), (1340640150,), (1340640172,), (1340640175,), (1340640182,), (1340640243,), (1340640246,), (1340640251,), (1340640254,), (1340640259,), (1340640264,), (1340640323,), (1340640330,), (1340640337,), (1340640343,), (1340640405,), (1340640401,), (1340640607,), (1340640822,), (1340641590,), (1340641593,), (1340641648,), (1340641653,), (1340641658,), (1340641663,), (1340641667,), (1340641672,), (1340641701,), (1340641709,), (1340641713,), (1340641744,), (1340641749,), (1340641754,), (1340641807,), (1340641811,), (1340641816,), (1340641820,), (1340641824,), (1340641827,), (1340641856,), (1340641861,), (1340641866,), (1340641869,), (1340641922,), (1340641925,), (1340641931,), (1340641935,), (1340641941,), (1340641943,), (1340641970,), (1340641973,), (1340641979,), (1340641982,), (1340642039,), (1340642021,), (1340642026,), (1340642030,), (1340642034,), (1340642379,), (1340642404,), (1340642416,), (1340642420,), (1340642427,), (1340642432,), (1340642476,), (1340642482,), (1340642495,), (1340642500,), (1340642505,), (1340642564,), (1340642576,), (1340642579,), (1340642585,), (1340642591,), (1340642603,), (1340642629,), (1340642668,), (1340642920,), (1340643243,), (1340643252,), (1340643351,), (1340643355,), (1340643403,), (1340643458,), (1340643551,), (1340643609,), (1340643624,), (1340643631,), (1340643812,), (1340643816,), (1340643821,), (1340643826,), (1340643875,), (1340643877,), (1340643881,), (1340643884,), (1340643890,), (1340643895,), (1340643922,), (1340643926,), (1340643928,), (1340643934,), (1340643937,), (1340643986,), (1340643989,), (1340644005,), (1340644094,), (1340644101,), (1340644213,), (1340644218,), (1340644220,), (1340644224,), (1340644267,), (1340644271,), (1340644275,), (1340644278,), (1340644283,), (1340644287,), (1340644333,), (1340644335,), (1340644339,), (1340644345,), (1340644392,), (1340644396,), (1340644400,), (1340644404,), (1340644412,), (1340644418,), (1340644593,), (1340644487,), (1340644491,), (1340644514,), (1340644587,), (1340644752,), (1340644753,), (1340644755,), (1340644757,), (1340644763,), (1340644769,), (1340644804,), (1340644806,), (1340644808,), (1340644819,), (1340644891,), (1340644893,), (1340644897,), (1340644905,), (1340644917,), (1340644924,), (1340644967,), (1340644973,), (1340644986,), (1340644991,), (1340645026,), (1340645029,), (1340645031,), (1340645033,), (1340645050,), (1340645059,), (1340645290,), (1340645293,), (1340645305,), (1340645497,), (1340645500,), (1340645511,), (1340645520,), (1340645558,), (1340645560,), (1340645563,), (1340645567,), (1340645571,), (1340645607,), (1340645617,), (1340645629,), (1340645640,), (1340645676,), (1340645678,), (1340645682,), (1340645685,), (1340645690,), (1340645695,), (1340645933,), (1340645962,), (1340645976,), (1340645986,), (1340646108,), (1340646112,), (1340646114,), (1340646118,), (1340646125,), (1340646130,), (1340646165,), (1340646175,), (1340646179,), (1340646181,), (1340646188,), (1340646192,), (1340646213,), (1340646217,), (1340646222,), (1340646225,), (1340646232,), (1340646393,), (1340646379,), (1340646384,), (1340646443,), (1340646447,), (1340646450,), (1340646459,), (1340646473,), (1340646523,), (1340646526,), (1340646528,), (1340646530,), (1340646541,), (1340646586,), (1340646590,), (1340646595,), (1340646598,), (1340646610,), (1340646623,), (1340646681,), (1340646685,), (1340646689,), (1340646721,), (1340646725,), (1340646772,), (1340646820,), (1340646824,), (1340646875,), (1340646880,), (1340646884,), (1340646887,), (1340646892,), (1340646932,), (1340646939,), (1340646943,), (1340646958,), (1340646986,), (1340646991,), (1340646998,), (1340647001,), (1340647006,), (1340647010,), (1340647030,), (1340647035,), (1340647038,), (1340647043,), (1340647053,), (1340647083,), (1340647097,), (1340647099,), (1340647102,), (1340647107,), (1340647169,), (1340647175,), (1340647184,), (1340647191,), (1340647376,), (1340647351,), (1340647520,), (1340647525,), (1340647531,), (1340647534,), (1340647544,), (1340647566,), (1340647612,), (1340647615,), (1340647620,), (1340647623,), (1340647691,), (1340647703,), (1340647707,), (1340647712,), (1340647717,), (1340647722,), (1340647762,), (1340647766,), (1340647771,), (1340647773,), (1340647777,), (1340647781,), (1340647805,), (1340647810,), (1340647813,), (1340647815,), (1340647877,), (1340647888,), (1340647896,), (1340647904,), (1340647909,), (1340647940,), (1340647945,), (1340647949,), (1340647952,), (1340647958,), (1340648006,), (1340648012,), (1340648017,), (1340648025,), (1340648030,), (1340648070,), (1340648082,), (1340648085,), (1340648295,), (1340648301,), (1340648500,), (1340648346,), (1340648349,), (1340648353,), (1340648359,), (1340648495,), (1340648676,), (1340648681,), (1340648683,), (1340648689,), (1340648769,), (1340648773,), (1340648792,), (1340648804,), (1340648813,), (1340648844,), (1340648847,), (1340648854,), (1340648863,), (1340648874,), (1340648918,), (1340648923,), (1340648928,), (1340648935,), (1340648947,), (1340648952,), (1340648982,), (1340648985,), (1340648989,), (1340648995,), (1340649064,), (1340649070,), (1340649073,), (1340649075,), (1340649084,), (1340649095,), (1340649156,), (1340649161,), (1340649174,), (1340649178,), (1340649185,), (1340649248,), (1340649252,), (1340649256,), (1340649292,), (1340649314,), (1340649326,), (1340649416,), (1340649424,), (1340649430,), (1340649434,), (1340649567,), (1340649573,), (1340649577,), (1340649582,), (1340649586,), (1340649588,), (1340649610,), (1340649615,), (1340649621,), (1340649668,), (1340649673,), (1340649684,), (1340649694,), (1340649699,), (1340653679,), (1340653674,), (1340654425,), (1340654484,), (1340654509,), (1340654522,), (1340654524,), (1340654817,), (1340654822,), (1340654826,), (1340654871,), (1340654909,), (1340654912,), (1340654914,), (1340654918,), (1340654972,), (1340654975,), (1340654978,), (1340654980,), (1340654985,), (1340654989,), (1340655010,), (1340655015,), (1340655018,), (1340655020,), (1340655025,), (1340655045,), (1340655085,), (1340655089,), (1340655092,), (1340655095,), (1340655127,), (1340655132,), (1340655139,), (1340655145,), (1340655160,), (1340655165,), (1340655194,), (1340655198,), (1340655200,), (1340655205,), (1340656383,), (1340657382,), (1340657377,), (1340657557,), (1340657560,), (1340657563,), (1340657570,), (1340657575,), (1340657579,), (1340657614,), (1340657617,), (1340657621,), (1340657654,), (1340657657,), (1340657695,), (1340657697,), (1340657705,), (1340657718,), (1340657730,), (1340657825,), (1340657840,), (1340657851,), (1340657872,), (1340657896,), (1340657901,), (1340658048,), (1340658091,), (1340658096,), (1340658100,), (1340658104,), (1340658108,), (1340658126,), (1340658130,), (1340658134,), (1340658143,), (1340658157,), (1340658170,), (1340658192,), (1340658207,), (1340658219,), (1340658223,), (1340658255,), (1340658315,), (1340658698,), (1340658735,), (1340658739,), (1340658857,), (1340658862,), (1340658866,), (1340658908,), (1340658916,), (1340658920,), (1340658927,), (1340658933,), (1340658937,), (1340659144,), (1340658969,), (1340659056,), (1340659099,), (1340659247,), (1340659253,), (1340659554,), (1340659557,), (1340659846,), (1340659892,), (1340659899,), (1340659900,), (1340659935,), (1340659938,), (1340659941,), (1340659947,), (1340659975,), (1340659982,), (1340660020,), (1340660024,), (1340660027,), (1340660031,), (1340660077,), (1340660079,), (1340660084,), (1340660125,), (1340660128,), (1340660131,), (1340660134,), (1340660171,), (1340660177,), (1340660181,), (1340660195,), (1340660199,), (1340660244,), (1340660246,), (1340660251,), (1340660254,), (1340660260,), (1340660559,), (1340660564,), (1340660573,), (1340660755,), (1340660767,), (1340660771,), (1340660775,), (1340660779,), (1340660782,), (1340660811,), (1340660815,), (1340660821,), (1340660829,), (1340660836,), (1340661084,), (1340660996,), (1340661021,), (1340661026,), (1340661078,), (1340661273,), (1340661277,), (1340661327,), (1340661332,), (1340661362,), (1340661367,), (1340661459,), (1340661463,), (1340661466,), (1340661504,), (1340661515,), (1340661521,), (1340661526,), (1340661530,), (1340661557,), (1340661562,), (1340661567,), (1340661573,), (1340661581,), (1340661605,), (1340661609,), (1340661614,), (1340661662,), (1340661671,), (1340661674,), (1340661680,), (1340661741,), (1340661828,), (1340661919,), (1340662006,), (1340662211,), (1340662268,), (1340662282,), (1340662297,), (1340662489,), (1340662494,), (1340662502,), (1340662564,), (1340662569,), (1340662574,), (1340662605,), (1340662674,), (1340662678,), (1340662767,), (1340662771,), (1340662775,), (1340662780,), (1340662828,), (1340662834,), (1340662836,), (1340662841,), (1340662888,), (1340662896,), (1340662903,), (1340662910,), (1340662921,), (1340662923,), (1340662925,), (1340662927,), (1340662974,), (1340662961,), (1340662965,), (1340662970,), (1340663038,), (1340663042,), (1340663051,), (1340663063,), (1340663088,), (1340663098,), (1340663432,), (1340663436,), (1340663440,), (1340663443,), (1340663484,), (1340663488,), (1340663491,), (1340663496,), (1340663531,), (1340663535,), (1340663539,), (1340663544,), (1340663550,), (1340663590,), (1340663600,), (1340663605,), (1340663612,), (1340663640,), (1340663645,), (1340663651,), (1340663699,), (1340663718,), (1340663726,), (1340663763,), (1340663766,), (1340663770,), (1340663775,), (1340663787,), (1340663805,), (1340663823,), (1340663827,), (1340663830,), (1340663837,), (1340663844,), (1340663850,), (1340663883,), (1340663886,), (1340663889,), (1340663893,), (1340663899,), (1340663905,), (1340663941,), (1340663944,), (1340663948,), (1340663954,), (1340663981,), (1340663985,), (1340663989,), (1340663993,), (1340663998,), (1340664002,), (1340664053,), (1340664057,), (1340664060,), (1340664064,), (1340664096,), (1340664100,), (1340664102,), (1340664106,), (1340664111,), (1340664348,), (1340664287,), (1340664291,), (1340664321,), (1340664323,), (1340664329,), (1340664368,), (1340664373,), (1340664376,), (1340664380,), (1340664443,), (1340664447,), (1340664451,), (1340664456,), (1340664460,), (1340664464,), (1340664486,), (1340664491,), (1340664533,), (1340664538,), (1340664541,), (1340664543,), (1340664548,), (1340664772,), (1340664991,), (1340664996,), (1340665023,), (1340665028,), (1340665033,), (1340665038,), (1340665055,), (1340665098,), (1340665103,), (1340665107,), (1340665112,), (1340665116,), (1340665159,), (1340665163,), (1340665167,), (1340665352,), (1340665368,), (1340665371,), (1340665373,), (1340665378,), (1340665560,), (1340665534,), (1340665543,), (1340665545,), (1340665551,), (1340665555,), (1340665597,), (1340665602,), (1340665605,), (1340665609,), (1340665612,), (1340665675,), (1340665679,), (1340665693,), (1340665696,), (1340665705,), (1340665714,), (1340665737,), (1340665754,), (1340665760,), (1340665763,), (1340665769,), (1340665772,), (1340665793,), (1340665799,), (1340665805,), (1340665810,), (1340665840,), (1340665858,), (1340665863,), (1340665869,), (1340665876,), (1340665895,), (1340665899,), (1340665905,), (1340665911,), (1340665916,), (1340666617,), (1340666629,), (1340666761,), (1340666921,), (1340666924,), (1340666928,), (1340667173,), (1340667176,), (1340667181,), (1340667184,), (1340667188,), (1340667280,), (1340667422,), (1340667425,), (1340667430,), (1340667434,), (1340667439,), (1340667471,), (1340667475,), (1340667478,), (1340667482,), (1340667487,), (1340667541,), (1340667545,), (1340667548,), (1340667554,), (1340667560,), (1340667567,), (1340667595,), (1340667597,), (1340667600,), (1340667605,), (1340667647,), (1340667651,), (1340667654,), (1340667658,), (1340667787,), (1340667692,), (1340667698,), (1340667735,), (1340667926,), (1340667935,), (1340667941,), (1340667950,), (1340667961,), (1340668033,), (1340668432,), (1340668435,), (1340668445,), (1340668574,), (1340668584,), (1340668588,), (1340668592,), (1340668626,), (1340668630,), (1340668636,), (1340668649,), (1340668653,), (1340668659,), (1340668700,), (1340668705,), (1340668712,), (1340668719,), (1340668758,), (1340668821,), (1340668954,), (1340668958,), (1340668962,), (1340669003,), (1340669030,), (1340669036,), (1340669047,), (1340669050,), (1340669074,), (1340669077,), (1340669080,), (1340669085,), (1340669132,), (1340669135,), (1340669138,), (1340669140,), (1340669149,), (1340669184,), (1340669187,), (1340669190,), (1340669248,), (1340669250,), (1340669252,), (1340669255,), (1340669314,), (1340669316,), (1340669318,), (1340669383,), (1340669458,), (1340669521,), (1340669910,), (1340669941,), (1340670044,), (1340670085,), (1340670090,), (1340670139,), (1340670122,), (1340670127,), (1340670131,), (1340670134,), (1340670282,), (1340670300,), (1340670373,), (1340670378,), (1340670802,), (1340670833,), (1340670837,), (1340670866,), (1340670900,), (1340670904,), (1340670909,), (1340670950,), (1340670955,), (1340670958,), (1340671004,), (1340671009,), (1340671013,), (1340671016,), (1340671020,), (1340671092,), (1340671194,), (1340671201,), (1340671206,), (1340671211,), (1340671246,), (1340671250,), (1340671253,), (1340671265,), (1340671317,), (1340671320,), (1340671377,), (1340671381,), (1340671384,), (1340671386,), (1340671391,), (1340671415,), (1340671420,), (1340671469,), (1340671488,), (1340671498,), (1340671500,), (1340671553,), (1340671565,), (1340671570,), (1340671575,), (1340671577,), (1340671580,), (1340671598,), (1340671603,), (1340671605,), (1340671688,), (1340671696,), (1340671798,), (1340671728,), (1340671732,), (1340671735,), (1340671745,), (1340672167,), (1340672170,), (1340672172,), (1340672177,), (1340672181,), (1340672185,), (1340672223,), (1340672234,), (1340672235,), (1340672285,), (1340672297,), (1340672309,), (1340672313,), (1340672319,), (1340672384,), (1340672392,), (1340672405,), (1340672416,), (1340672423,), (1340672429,), (1340672466,), (1340672470,), (1340672477,), (1340672490,), (1340672501,), (1340672539,), (1340672553,), (1340672566,), (1340672600,), (1340672605,), (1340672608,), (1340672610,), (1340672615,), (1340672654,), (1340672662,), (1340672666,), (1340672669,), (1340672673,), (1340672678,), (1340672701,), (1340672705,), (1340672710,), (1340672753,), (1340672758,), (1340672762,), (1340672767,), (1340672772,), (1340672792,), (1340672797,), (1340672801,), (1340672804,), (1340672837,), (1340672841,), (1340672845,), (1340672857,), (1340672888,), (1340672893,), (1340672897,), (1340672950,), (1340672963,), (1340672967,), (1340672971,), (1340672974,), (1340673207,), (1340673114,), (1340673144,), (1340673161,), (1340673164,), (1340673264,), (1340673268,), (1340673271,), (1340673273,), (1340673277,), (1340673327,), (1340673333,), (1340673342,), (1340673391,), (1340673402,), (1340673405,), (1340673407,), (1340673411,), (1340673472,), (1340673480,), (1340673484,), (1340673488,), (1340673494,), (1340673539,), (1340673543,), (1340673546,), (1340673549,), (1340673554,), (1340673588,), (1340673598,), (1340673608,), (1340673694,), (1340673697,), (1340673706,), (1340673710,), (1340673715,), (1340673736,), (1340673748,), (1340673752,), (1340673759,), (1340673797,), (1340673801,), (1340673805,), (1340673810,), (1340673835,), (1340673841,), (1340673846,), (1340676114,), (1340676408,), (1340676413,), (1340676578,), (1340676659,), (1340676746,), (1340677048,), (1340677083,), (1340677086,), (1340677092,), (1340677120,), (1340677126,), (1340677130,), (1340677357,), (1340694633,), (1340695689,), (1340695785,), (1340695878,), (1340696125,), (1340697207,), (1340697213,), (1340698355,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20960307]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] map_info['map_portfolio_photo'] : {20960307: [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858]} final : True mtd_id 4302 list_pids : [1340579766, 1340578983, 1340578967, 1340578961, 1340578957, 1340578932, 1340578930, 1340578911, 1340578909, 1340578907, 1340578895, 1340578892, 1340578888, 1340578885, 1340578882, 1340578880, 1340578861, 1340578858] Looping around the photos to save general results len do output : 1 /20960307Didn'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, '2631286') ('4302', '20960307', '1340579766', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286') ('4302', None, None, None, None, None, None, None, '2631286') ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '20960307', 'None', None, None, None, None, '2631286'), ('4302', '20960307', '1340579766', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578983', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578967', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578961', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578957', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578932', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578930', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578911', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578909', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578907', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578895', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578892', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578888', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578885', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578882', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578880', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578861', None, None, None, None, None, '2631286'), ('4302', '20960307', '1340578858', None, None, None, None, None, '2631286')] time used for this insertion : 0.019181251525878906 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.8289549350738525 time spend to save output : 0.0195009708404541 total time spend for step 5 : 7.848455905914307 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 (2631286) 2.76user 1.86system 0:19.09elapsed 24%CPU (0avgtext+0avgdata 161680maxresident)k 1752inputs+17680outputs (16major+77464minor)pagefaults 0swaps