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 : 1376910 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 (2574692) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2574692) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422277 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2574692'] with mtr_portfolio_ids : ['20422277'] and first list_photo_ids : [] new path : /proc/1376910/ Name: python3 Umask: 0002 State: R (running) Tgid: 1376910 Ngid: 0 Pid: 1376910 PPid: 1376908 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1376910 NSpid: 1376910 NSpgid: 1376044 NSsid: 1376044 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98324 kB VmRSS: 98324 kB RssAnon: 59732 kB RssFile: 38592 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 41 nonvoluntary_ctxt_switches: 217 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1376910', 'Ngid': '0', 'Pid': '1376910', 'PPid': '1376908', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1376910', 'NSpid': '1376910', 'NSpgid': '1376044', 'NSsid': '1376044', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98324 kB', 'VmRSS': '98324 kB', 'RssAnon': '59732 kB', 'RssFile': '38592 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '41', 'nonvoluntary_ctxt_switches': '217'} ('datou_batch_current', '1376910', '1106660', '0', '1106660', '865412', '98324', b'', 'marlene', '2574692') 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 (20422277) 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 (2574692 ) ) 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 (20422277) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336604274, 'portfolio_id': 20422277}, {'photo_id': 1336603737, 'portfolio_id': 20422277}, {'photo_id': 1336603735, 'portfolio_id': 20422277}, {'photo_id': 1336602810, 'portfolio_id': 20422277}, {'photo_id': 1336601606, 'portfolio_id': 20422277}, {'photo_id': 1336601604, 'portfolio_id': 20422277}, {'photo_id': 1336601578, 'portfolio_id': 20422277}, {'photo_id': 1336600312, 'portfolio_id': 20422277}] map_portfolio_id_photo_id: {20422277: [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312]} ##### 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.2985968589782715 #### 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 Feb 11 06:20: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20422277) 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 : 20422277 get user id for portfolio 20422277 get sub ptf for main ptf 20422277, type 3726 and hashtags ['plastique', 'flou', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'environnement', 'Carton_gris', 'kraft', 'cartonnette', 'autre_refus', 'Carton_brun', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20422277 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','mal_croppe','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','cartonnette','autre_refus','Carton_brun','papier')) 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`=20422277 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','mal_croppe','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','cartonnette','autre_refus','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20422277, 'sub_port_id': 20422278, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099272, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'plastique': {'main_port_id': 20422277, 'sub_port_id': 20422279, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099273, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'mal_croppe': {'main_port_id': 20422277, 'sub_port_id': 20422280, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099274, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'flou': {'main_port_id': 20422277, 'sub_port_id': 20422281, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099275, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'cartonnette': {'main_port_id': 20422277, 'sub_port_id': 20422282, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099276, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'autre_refus': {'main_port_id': 20422277, 'sub_port_id': 20422283, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099277, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20422277, 'sub_port_id': 20422284, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099278, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'kraft': {'main_port_id': 20422277, 'sub_port_id': 20422285, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099279, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'environnement': {'main_port_id': 20422277, 'sub_port_id': 20422286, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099280, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'Carton_brun': {'main_port_id': 20422277, 'sub_port_id': 20422287, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099281, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'metal': {'main_port_id': 20422277, 'sub_port_id': 20422288, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099282, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}, 'papier': {'main_port_id': 20422277, 'sub_port_id': 20422289, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099283, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20422278 , 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=20422277 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 (20422278) result : ((1336604319,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422279 , 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=20422277 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 (20422279) result : ((1336604321,), (1336604322,), (1336604323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422280 , 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=20422277 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 (20422280) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422281 , 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=20422277 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 (20422281) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422282 , 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=20422277 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 (20422282) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422283 , 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=20422277 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 (20422283) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422284 , 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=20422277 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 (20422284) result : ((1336604318,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422285 , 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=20422277 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 (20422285) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422286 , 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=20422277 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 (20422286) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422287 , 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=20422277 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 (20422287) result : ((1336603892,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422288 , 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=20422277 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 (20422288) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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 20422289 , 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=20422277 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 (20422289) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20422277) result : ((1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) 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`=20422277 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','mal_croppe','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','cartonnette','autre_refus','Carton_brun','papier')) 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`=20422277 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','mal_croppe','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','cartonnette','autre_refus','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20422277, 'sub_port_id': 20422290, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099284, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'plastique': {'main_port_id': 20422277, 'sub_port_id': 20422291, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099285, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'mal_croppe': {'main_port_id': 20422277, 'sub_port_id': 20422292, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099286, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'flou': {'main_port_id': 20422277, 'sub_port_id': 20422293, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099287, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'cartonnette': {'main_port_id': 20422277, 'sub_port_id': 20422294, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099288, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'autre_refus': {'main_port_id': 20422277, 'sub_port_id': 20422295, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099289, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20422277, 'sub_port_id': 20422296, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099290, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'kraft': {'main_port_id': 20422277, 'sub_port_id': 20422297, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099291, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'environnement': {'main_port_id': 20422277, 'sub_port_id': 20422298, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099292, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'Carton_brun': {'main_port_id': 20422277, 'sub_port_id': 20422299, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099293, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'metal': {'main_port_id': 20422277, 'sub_port_id': 20422300, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099294, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}, 'papier': {'main_port_id': 20422277, 'sub_port_id': 20422301, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13099295, 'last_updated_at': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 22, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 22, 20, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20422301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20422289 lien utilise dans velours : https://www.fotonower.com/velours/20422290,20422291,20422292,20422293,20422294,20422295,20422296,20422297,20422298,20422299,20422300,20422301?tags=Carton_gris,plastique,mal_croppe,flou,cartonnette,autre_refus,Teint_Dans_La_Masse,kraft,environnement,Carton_brun,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20422277]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] map_info['map_portfolio_photo'] : {20422277: [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312]} final : False mtd_id 4302 list_pids : [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] Looping around the photos to save general results len do output : 1 /20422277. 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, '2574692') ('4302', '20422277', '1336604274', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20422277', "{'Carton_gris': 20422278, 'plastique': 20422279, 'mal_croppe': 20422280, 'flou': 20422281, 'cartonnette': 20422282, 'autre_refus': 20422283, 'Teint_Dans_La_Masse': 20422284, 'kraft': 20422285, 'environnement': 20422286, 'Carton_brun': 20422287, 'metal': 20422288, 'papier': 20422289}", None, None, None, None, '2574692'), ('4302', '20422277', '1336604274', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692')] time used for this insertion : 0.16899371147155762 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4434950351715088 time spend to save output : 0.16925477981567383 total time spend for step 1 : 1.6127498149871826 step2:final Tue Feb 11 06:20:31 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 (20422277) 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 20422277 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336601578,1336600312,1336601606,1336601604,1336603737,1336602810,1336603735,1336604274); 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([20422277]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} new output for save of step final : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] map_info['map_portfolio_photo'] : {20422277: [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312]} final : False mtd_id 4302 list_pids : [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] Looping around the photos to save general results len do output : 8 /1336604274.Didn't retrieve data . /1336603737.Didn't retrieve data . /1336603735.Didn't retrieve data . /1336602810.Didn't retrieve data . /1336601606.Didn't retrieve data . /1336601604.Didn't retrieve data . /1336601578.Didn't retrieve data . /1336600312.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, '2574692') ('4302', '20422277', '1336604274', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '20422277', '1336604274', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336603737', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336603735', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336602810', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336601606', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336601604', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336601578', '0.037946831322499805', None, None, None, None, '2574692'), ('4302', '20422277', '1336600312', '0.037946831322499805', None, None, None, None, '2574692')] time used for this insertion : 0.20328569412231445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06933140754699707 time spend to save output : 0.2037520408630371 total time spend for step 2 : 0.2730834484100342 step3:velours_tree Tue Feb 11 06:20:31 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 : {20422277: [{'Carton_gris': 20422278, 'plastique': 20422279, 'mal_croppe': 20422280, 'flou': 20422281, 'cartonnette': 20422282, 'autre_refus': 20422283, 'Teint_Dans_La_Masse': 20422284, 'kraft': 20422285, 'environnement': 20422286, 'Carton_brun': 20422287, 'metal': 20422288, 'papier': 20422289}]} input_args_next_step : {20422277: ()} output_args : {20422277: [{'Carton_gris': 20422278, 'plastique': 20422279, 'mal_croppe': 20422280, 'flou': 20422281, 'cartonnette': 20422282, 'autre_refus': 20422283, 'Teint_Dans_La_Masse': 20422284, 'kraft': 20422285, 'environnement': 20422286, 'Carton_brun': 20422287, 'metal': 20422288, 'papier': 20422289}]} args : 20422277 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20422278, 'plastique': 20422279, 'mal_croppe': 20422280, 'flou': 20422281, 'cartonnette': 20422282, 'autre_refus': 20422283, 'Teint_Dans_La_Masse': 20422284, 'kraft': 20422285, 'environnement': 20422286, 'Carton_brun': 20422287, 'metal': 20422288, 'papier': 20422289},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20422277) 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([20422277]) 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.3020648956298828 time spend to save output : 6.079673767089844e-05 total time spend for step 3 : 0.3021256923675537 step4:send_mail_cod Tue Feb 11 06:20:31 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 : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} input_args_next_step : {1336604274: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336604274 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336603737 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336603735 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336602810 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336601606 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336601604 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336601578 depend.output_id : 0 input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ()} output_args : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',)} args : 1336600312 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 : {20422277: [{'Carton_gris': 20422278, 'plastique': 20422279, 'mal_croppe': 20422280, 'flou': 20422281, 'cartonnette': 20422282, 'autre_refus': 20422283, 'Teint_Dans_La_Masse': 20422284, 'kraft': 20422285, 'environnement': 20422286, 'Carton_brun': 20422287, 'metal': 20422288, 'papier': 20422289}]} input_args_next_step : {1336604274: ('0.037946831322499805',), 1336603737: ('0.037946831322499805',), 1336603735: ('0.037946831322499805',), 1336602810: ('0.037946831322499805',), 1336601606: ('0.037946831322499805',), 1336601604: ('0.037946831322499805',), 1336601578: ('0.037946831322499805',), 1336600312: ('0.037946831322499805',), 20422277: ()} output_args : {20422277: [{'Carton_gris': 20422278, 'plastique': 20422279, 'mal_croppe': 20422280, 'flou': 20422281, 'cartonnette': 20422282, 'autre_refus': 20422283, 'Teint_Dans_La_Masse': 20422284, 'kraft': 20422285, 'environnement': 20422286, 'Carton_brun': 20422287, 'metal': 20422288, 'papier': 20422289}]} args : 20422277 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 :9, first value : ('0.037946831322499805',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20422277) 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 (1336604274,1336603737,1336603735,1336602810,1336601606,1336601604,1336601578,1336600312) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336600312 begin to download photo : 1336601604 begin to download photo : 1336602810 begin to download photo : 1336603737 download finish for photo 1336603737 begin to download photo : 1336604274 download finish for photo 1336600312 begin to download photo : 1336601578 download finish for photo 1336601604 begin to download photo : 1336601606 download finish for photo 1336604274 download finish for photo 1336601578 download finish for photo 1336602810 begin to download photo : 1336603735 download finish for photo 1336601606 download finish for photo 1336603735 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P20422277_11-02-2025_06_20_32.pdf 20422279 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=20422279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336604321: '1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625355_0.png', 1336604322: '1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625360_0.png', 1336604323: '1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625361_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1871cd70070748f0ba1f5ec70f0e2b48_23197810.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d7ab19c12bbbe63ac3a783c637193206_67778734.png change filename to text .imagette204222791739251232/ imagette204222791739251232/1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625361_0.png.png imagette204222791739251232/1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625355_0.png.png imagette204222791739251232/1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625360_0.png.png imagette204222801739251232/ imagette204222811739251232/ imagette204222821739251232/ imagette204222831739251232/ imagette204222851739251232/ imagette204222881739251232/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a139fc4ad2915b40a3aa5f231b057685_56845244.png imagette204222791739251232 20422280 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=20422280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204222801739251232 20422281 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=20422281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204222811739251232 20422282 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=20422282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204222821739251232 20422283 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=20422283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204222831739251232 20422285 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=20422285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204222851739251232 20422288 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=20422288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204222881739251232 20422278 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=20422278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336604319: '1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625352_0.png'} change filename to text .imagette204222781739251232/ imagette204222781739251232/1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625352_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/af0a3665a472ea8969ebe9355e86b910_66763072.png imagette204222781739251232 20422284 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=20422284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336604318: '1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625358_0.png'} change filename to text .imagette204222841739251232/ imagette204222841739251232/1739222434_961429_1336604274_9edb64d29a006d856faeebd7d3d777f0_rle_crop_3668625358_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6b8a52d49d4997d0a8b761d978c5d027_67462377.png imagette204222841739251232 20422287 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=20422287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336603892: '1739222193_955105_1336603737_011cb5ef174ee8be20c4a37f425f7c13_rle_crop_3668610854_0.png'} change filename to text .imagette204222871739251232/ imagette204222871739251232/1739222193_955105_1336603737_011cb5ef174ee8be20c4a37f425f7c13_rle_crop_3668610854_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3951eaf789d5f69454dcfeb953079234_52480624.png imagette204222871739251232 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20422277 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20422290,20422291,20422292,20422293,20422294,20422295,20422296,20422297,20422298,20422299,20422300,20422301?tags=Carton_gris,plastique,mal_croppe,flou,cartonnette,autre_refus,Teint_Dans_La_Masse,kraft,environnement,Carton_brun,metal,papier your option no_mail is active, we will not send the real mail to your client args[1336604274] : ('0.037946831322499805',) no score found for photo 1336604274 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336603737] : ('0.037946831322499805',) no score found for photo 1336603737 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336603735] : ('0.037946831322499805',) no score found for photo 1336603735 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336602810] : ('0.037946831322499805',) no score found for photo 1336602810 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336601606] : ('0.037946831322499805',) no score found for photo 1336601606 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336601604] : ('0.037946831322499805',) no score found for photo 1336601604 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336601578] : ('0.037946831322499805',) no score found for photo 1336601578 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com args[1336600312] : ('0.037946831322499805',) no score found for photo 1336600312 apple ('0.037946831322499805',) We are sending mail with results at report@fotonower.com refus_total : 0.037946831322499805 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=20422277 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_P20422277_11-02-2025_06_20_32.pdf results_Auto_P20422277_11-02-2025_06_20_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20422277_11-02-2025_06_20_32.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','20422277','results_Auto_P20422277_11-02-2025_06_20_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20422277_11-02-2025_06_20_32.pdf','pdf','','0.1','0.037946831322499805') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20422277]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] map_info['map_portfolio_photo'] : {20422277: [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312]} final : False mtd_id 4302 list_pids : [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] 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, '2574692') ('4302', '20422277', '1336604274', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '20422277', '1336604274', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692')] time used for this insertion : 0.01994180679321289 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3612027168273926 time spend to save output : 0.02032613754272461 total time spend for step 4 : 2.381528854370117 step5:split_time_score Tue Feb 11 06:20:34 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 : ['20422277'] 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 : [('20422277',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20422277) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336603737: {'path': 'temp/1739251232_1376910_1336603737_011cb5ef174ee8be20c4a37f425f7c13.jpg', 'extension': 'jpg'}, 1336604274: {'path': 'temp/1739251232_1376910_1336604274_9edb64d29a006d856faeebd7d3d777f0.jpg', 'extension': 'jpg'}, 1336600312: {'path': 'temp/1739251232_1376910_1336600312_21d15bdc7af28facda3520ed141a9f53.jpg', 'extension': 'jpg'}, 1336601578: {'path': 'temp/1739251232_1376910_1336601578_eed26178402cfab83e82d995babf3f46.jpg', 'extension': 'jpg'}, 1336601604: {'path': 'temp/1739251232_1376910_1336601604_8d15d254f74fc641a1192050bea9fcdd.jpg', 'extension': 'jpg'}, 1336601606: {'path': 'temp/1739251232_1376910_1336601606_8c6a61d55d747726977f6826f81e979d.jpg', 'extension': 'jpg'}, 1336602810: {'path': 'temp/1739251232_1376910_1336602810_b988415469963cb7ada783223d9ea244.jpg', 'extension': 'jpg'}, 1336603735: {'path': 'temp/1739251232_1376910_1336603735_82ff8006a9b7914af5e39ea73458df3d.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 = 20422277; (('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 = 20422277 group by h (('22', 8),) 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=20422277 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 (20422277) 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 (20422277) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10022025 20422277 Nombre de photos uploadées : 8 / 23040 (0%) 10022025 20422277 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 10022025 20422277 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1336601578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/eed26178402cfab83e82d995babf3f46.jpg', 'username': None, 'uploaded_at': 1739221627, 'text': 'image_10022025_22_01_04_10169.jpg'}, {'photo_id': 1336600312, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/21d15bdc7af28facda3520ed141a9f53.jpg', 'username': None, 'uploaded_at': 1739221382, 'text': 'image_10022025_22_02_14_10155.jpg'}, {'photo_id': 1336601606, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8c6a61d55d747726977f6826f81e979d.jpg', 'username': None, 'uploaded_at': 1739221688, 'text': 'image_10022025_22_06_44_10144.jpg'}, {'photo_id': 1336601604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8d15d254f74fc641a1192050bea9fcdd.jpg', 'username': None, 'uploaded_at': 1739221688, 'text': 'image_10022025_22_07_23_009127m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.000518798828125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20422277, '2025-02-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1590566,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028436660766601562 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= 1590566 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20385910, 'dashboard_result_id': 8807159, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20385910_11-02-2025_05_34_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20385912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20385913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20385914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20385915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20385916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20385917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20385918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20385919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20385920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20385921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20385922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20385923, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20386506, 'dashboard_result_id': 8807160, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20386506_11-02-2025_05_35_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20386510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20386511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20386512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20386514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20386515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20386516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20386517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20386518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20386519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20386520, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20387155, 'dashboard_result_id': 8807161, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387155_11-02-2025_05_36_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387170, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20387604, 'dashboard_result_id': 8807162, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_11-02-2025_05_36_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387668, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20388339, 'dashboard_result_id': 8807163, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388339_11-02-2025_05_37_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20388366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20388367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20388368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20388369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20388370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20388371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20388372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20388373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20388374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20388375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20388376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20388377, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20388900, 'dashboard_result_id': 8807164, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388900_11-02-2025_05_38_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20388925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20388926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20388927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20388928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20388929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20388930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20388931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20388932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20388933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20388934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20388935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20388936, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20389401, 'dashboard_result_id': 8807165, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20389401_11-02-2025_05_38_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20389453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20389454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20389455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20389456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20389457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20389458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20389459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20389460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20389461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20389462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20389463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20389464, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20390022, 'dashboard_result_id': 8807166, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390022_11-02-2025_05_40_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20390028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20390029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20390030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20390031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20390032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20390033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20390034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20390035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20390036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20390037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20390038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20390039, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20390450, 'dashboard_result_id': 8807167, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390450_11-02-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20390461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20390462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20390463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20390464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20390465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20390466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20390467, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20390468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20390469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20390470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20390471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20390472, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20391351, 'dashboard_result_id': 8807168, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20391351_11-02-2025_05_41_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20391352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20391353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20391354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20391355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20391356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20391357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20391358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20391359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20391360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20391361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20391362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20391363, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20392040, 'dashboard_result_id': 8807169, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392040_11-02-2025_05_42_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20392044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392055, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20392465, 'dashboard_result_id': 8807170, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392465_11-02-2025_05_42_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20392474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392479, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20392797, 'dashboard_result_id': 8807171, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392797_11-02-2025_05_43_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20392803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392811, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20393489, 'dashboard_result_id': 8807172, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393489_11-02-2025_05_45_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20393490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20393491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20393492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20393493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20393494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20393495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20393496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20393497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20393498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20393499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20393500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20393501, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20393752, 'dashboard_result_id': 8807173, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393752_11-02-2025_05_46_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20393761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20393762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20393763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20393764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20393765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20393766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20393767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20393768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20393769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20393770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20393771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20393772, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20395726, 'dashboard_result_id': 8807174, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20395726_11-02-2025_05_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20395730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20395731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20395732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20395733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20395734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20395735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20395736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20395737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20395738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20395739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20395740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20395741, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20396366, 'dashboard_result_id': 8807175, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396366_11-02-2025_05_47_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396380, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20396893, 'dashboard_result_id': 8807176, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396893_11-02-2025_05_48_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396906, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20397393, 'dashboard_result_id': 8807177, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20397393_11-02-2025_05_50_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20397424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20397425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20397426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20397427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20397428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20397429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20397430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20397431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20397432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20397433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20397434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20397435, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20398181, 'dashboard_result_id': 8807178, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_11-02-2025_05_50_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398196, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20398877, 'dashboard_result_id': 8807179, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398877_11-02-2025_05_51_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398905, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20399462, 'dashboard_result_id': 8807180, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20399462_11-02-2025_05_52_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20399519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20399520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20399521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20399522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20399523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20399524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20399525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20399526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20399527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20399528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20399529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20399530, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20400361, 'dashboard_result_id': 8807181, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20400361_11-02-2025_05_52_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20400393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20400394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20400395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20400396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20400397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20400398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20400399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20400400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20400401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20400402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20400403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20400404, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20401190, 'dashboard_result_id': 8807182, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401190_11-02-2025_05_57_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20401254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20401255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20401256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20401257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20401258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20401259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20401260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20401261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20401262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20401263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20401264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20401265, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20401831, 'dashboard_result_id': 8807183, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401831_11-02-2025_05_58_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20401836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20401837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20401838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20401839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20401840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20401841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20401842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20401843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20401844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20401845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20401846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20401847, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20403638, 'dashboard_result_id': 8807184, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403638_11-02-2025_05_58_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403652, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20403826, 'dashboard_result_id': 8807185, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403826_11-02-2025_05_59_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403839, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20404290, 'dashboard_result_id': 8807186, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404290_11-02-2025_06_00_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20404317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404328, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20404797, 'dashboard_result_id': 8807187, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404797_11-02-2025_06_00_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20404854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404859, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20405423, 'dashboard_result_id': 8807188, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_11-02-2025_06_01_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20405432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20405433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20405434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20405435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20405436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20405437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20405438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20405439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20405440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20405441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20405442, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20406133, 'dashboard_result_id': 8807189, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406133_11-02-2025_06_02_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20406136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20406137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20406138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20406139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20406140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20406141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20406142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20406143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20406144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20406145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20406146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20406147, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20406258, 'dashboard_result_id': 8807190, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406258_11-02-2025_06_02_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20406330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20406331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20406332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20406333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20406334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20406335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20406336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20406337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20406338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20406339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20406340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20406341, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20407074, 'dashboard_result_id': 8807191, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407074_11-02-2025_06_07_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20407180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20407181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20407182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20407183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20407184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20407185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20407186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20407187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20407188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20407189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20407190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20407191, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20407690, 'dashboard_result_id': 8807192, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407690_11-02-2025_06_08_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20407699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20407700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20407701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20407702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20407703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20407704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20407705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20407706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20407707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20407708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20407709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20407710, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20408229, 'dashboard_result_id': 8807193, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408229_11-02-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20408256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20408257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20408258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20408259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20408260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20408261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20408262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20408263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20408264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20408265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20408266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20408267, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20408781, 'dashboard_result_id': 8807194, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408781_11-02-2025_06_09_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20408791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20408792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20408793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20408794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20408795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20408796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20408797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20408798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20408799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20408800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20408801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20408802, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20409344, 'dashboard_result_id': 8807195, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20409344_11-02-2025_06_10_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20409351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20409352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20409353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20409354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20409355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20409356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20409357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20409358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20409359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20409360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20409361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20409362, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20410281, 'dashboard_result_id': 8807196, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410281_11-02-2025_06_10_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410296, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20410712, 'dashboard_result_id': 8807197, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410712_11-02-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410754, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20411318, 'dashboard_result_id': 8807198, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411318_11-02-2025_06_12_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411330, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20411932, 'dashboard_result_id': 8807199, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_11-02-2025_06_13_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411950, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20413473, 'dashboard_result_id': 8807200, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413473_11-02-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20413476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20413477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20413478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20413479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20413480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20413481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20413482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20413483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20413484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20413485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20413486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20413487, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20413963, 'dashboard_result_id': 8807201, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413963_11-02-2025_06_14_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20414015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414016, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20414667, 'dashboard_result_id': 8807202, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_11-02-2025_06_14_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20414707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414718, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20415179, 'dashboard_result_id': 8807203, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415179_11-02-2025_06_15_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20415210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20415211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20415212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20415213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20415214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20415215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20415216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20415217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20415218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20415219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20415220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20415221, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20415816, 'dashboard_result_id': 8807204, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415816_11-02-2025_06_16_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20415821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20415822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20415823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20415824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20415825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20415826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20415827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20415828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20415829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20415830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20415831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20415832, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20416196, 'dashboard_result_id': 8807205, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20416196_11-02-2025_06_16_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20416205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20416206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20416207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20416208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20416209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20416210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20416211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20416212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20416213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20416214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20416215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20416216, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20417130, 'dashboard_result_id': 8807206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417130_11-02-2025_06_17_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20417159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20417160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20417161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20417162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20417163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20417164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20417165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20417166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20417167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20417168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20417169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20417170, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20417760, 'dashboard_result_id': 8807207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417760_11-02-2025_06_18_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20417765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20417766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20417767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20417768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20417769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20417770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20417771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20417772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20417773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20417774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20417775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20417776, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20418372, 'dashboard_result_id': 8807208, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20418372_11-02-2025_06_18_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20418403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20418404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20418405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20418406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20418407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20418408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20418409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20418410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20418411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20418412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20418413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20418414, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20419018, 'dashboard_result_id': 8807209, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419018_11-02-2025_06_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20419074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20419075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20419076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20419077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20419078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20419079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20419080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20419081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20419082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20419083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20419084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20419085, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20419716, 'dashboard_result_id': 8807210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419716_11-02-2025_06_19_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20419748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20419749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20419750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20419751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20419752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20419753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20419754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20419755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20419756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20419757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20419758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20419759, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20421491, 'dashboard_result_id': 8807211, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20421491_11-02-2025_06_20_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20421506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20421507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20421508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20421509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20421510, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20421511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20421512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20421513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20421514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20421515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20421516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20421517, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1601614, 'mtr_portfolio_id': 20422277, 'dashboard_result_id': 8807212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20422277_10-02-2025_22_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20422278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20422279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20422280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20422281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20422282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20422283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20422284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20422285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20422286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20422287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20422288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20422289, '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 = 20385910 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574639, 'mtr_portfolio_id': 20385910, 'created_at': datetime.datetime(2025, 2, 11, 5, 34, 35), 'result': '0.053970389572486226', 'result_long': None, 'result_double': None}] Qualite : 0.053970389572486226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20385910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20385910_11-02-2025_05_34_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20385910 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20385910_11-02-2025_05_34_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20385912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20385913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20385914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20385915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20385916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20385917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20385918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20385919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20385920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20385921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20385922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20385923, 'pht': 3726}}" where mtr_portfolio_id = 20385910 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20385910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807159, 0.053970389572486226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20385910_11-02-2025_05_34_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20385912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20385913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20385914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20385915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20385916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20385917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20385918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20385919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20385920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20385921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20385922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20385923, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20386506 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574640, 'mtr_portfolio_id': 20386506, 'created_at': datetime.datetime(2025, 2, 11, 5, 35, 35), 'result': '0.04705470882551621', 'result_long': None, 'result_double': None}] Qualite : 0.04705470882551621 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20386506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20386506_11-02-2025_05_35_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20386506 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20386506_11-02-2025_05_35_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20386510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20386511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20386512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20386514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20386515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20386516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20386517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20386518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20386519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20386520, 'pht': 3726}}" where mtr_portfolio_id = 20386506 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20386506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807160, 0.04705470882551621, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20386506_11-02-2025_05_35_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20386510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20386511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20386512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20386514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20386515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20386516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20386517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20386518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20386519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20386520, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20387155 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574641, 'mtr_portfolio_id': 20387155, 'created_at': datetime.datetime(2025, 2, 11, 5, 36, 1), 'result': '0.05573003707830726', 'result_long': None, 'result_double': None}] Qualite : 0.05573003707830726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20387155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387155_11-02-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20387155 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387155_11-02-2025_05_36_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387170, 'pht': 3726}}" where mtr_portfolio_id = 20387155 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20387155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807161, 0.05573003707830726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387155_11-02-2025_05_36_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387170, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20387604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574642, 'mtr_portfolio_id': 20387604, 'created_at': datetime.datetime(2025, 2, 11, 5, 36, 34), 'result': '0.04451128947450273', 'result_long': None, 'result_double': None}] Qualite : 0.04451128947450273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20387604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_11-02-2025_05_36_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20387604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_11-02-2025_05_36_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387668, 'pht': 3726}}" where mtr_portfolio_id = 20387604 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20387604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807162, 0.04451128947450273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_11-02-2025_05_36_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387668, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20388339 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574643, 'mtr_portfolio_id': 20388339, 'created_at': datetime.datetime(2025, 2, 11, 5, 37, 32), 'result': '0.048056128363145705', 'result_long': None, 'result_double': None}] Qualite : 0.048056128363145705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20388339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388339_11-02-2025_05_37_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20388339 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388339_11-02-2025_05_37_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20388366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20388367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20388368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20388369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20388370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20388371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20388372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20388373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20388374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20388375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20388376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20388377, 'pht': 3726}}" where mtr_portfolio_id = 20388339 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20388339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807163, 0.048056128363145705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388339_11-02-2025_05_37_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20388366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20388367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20388368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20388369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20388370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20388371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20388372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20388373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20388374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20388375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20388376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20388377, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20388900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574644, 'mtr_portfolio_id': 20388900, 'created_at': datetime.datetime(2025, 2, 11, 5, 37, 59), 'result': '0.028910117098467258', 'result_long': None, 'result_double': None}] Qualite : 0.028910117098467258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20388900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388900_11-02-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20388900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388900_11-02-2025_05_38_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20388925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20388926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20388927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20388928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20388929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20388930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20388931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20388932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20388933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20388934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20388935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20388936, 'pht': 3726}}" where mtr_portfolio_id = 20388900 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20388900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807164, 0.028910117098467258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20388900_11-02-2025_05_38_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20388925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20388926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20388927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20388928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20388929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20388930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20388931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20388932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20388933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20388934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20388935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20388936, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20389401 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574645, 'mtr_portfolio_id': 20389401, 'created_at': datetime.datetime(2025, 2, 11, 5, 38, 33), 'result': '0.03957474964184917', 'result_long': None, 'result_double': None}] Qualite : 0.03957474964184917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20389401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20389401_11-02-2025_05_38_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20389401 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20389401_11-02-2025_05_38_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20389453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20389454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20389455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20389456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20389457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20389458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20389459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20389460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20389461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20389462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20389463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20389464, 'pht': 3726}}" where mtr_portfolio_id = 20389401 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20389401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807165, 0.03957474964184917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20389401_11-02-2025_05_38_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20389453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20389454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20389455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20389456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20389457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20389458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20389459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20389460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20389461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20389462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20389463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20389464, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20390022 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574646, 'mtr_portfolio_id': 20390022, 'created_at': datetime.datetime(2025, 2, 11, 5, 40, 3), 'result': '0.06131837507242148', 'result_long': None, 'result_double': None}] Qualite : 0.06131837507242148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20390022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390022_11-02-2025_05_40_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20390022 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390022_11-02-2025_05_40_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20390028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20390029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20390030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20390031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20390032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20390033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20390034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20390035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20390036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20390037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20390038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20390039, 'pht': 3726}}" where mtr_portfolio_id = 20390022 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20390022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807166, 0.06131837507242148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390022_11-02-2025_05_40_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20390028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20390029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20390030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20390031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20390032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20390033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20390034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20390035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20390036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20390037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20390038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20390039, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20390450 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574647, 'mtr_portfolio_id': 20390450, 'created_at': datetime.datetime(2025, 2, 11, 5, 41), 'result': '0.04242257140230641', 'result_long': None, 'result_double': None}] Qualite : 0.04242257140230641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20390450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390450_11-02-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20390450 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390450_11-02-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20390461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20390462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20390463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20390464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20390465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20390466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20390467, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20390468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20390469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20390470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20390471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20390472, 'pht': 3726}}" where mtr_portfolio_id = 20390450 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20390450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807167, 0.04242257140230641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20390450_11-02-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20390461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20390462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20390463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20390464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20390465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20390466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20390467, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20390468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20390469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20390470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20390471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20390472, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20391351 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574648, 'mtr_portfolio_id': 20391351, 'created_at': datetime.datetime(2025, 2, 11, 5, 41, 32), 'result': '0.043758493974067635', 'result_long': None, 'result_double': None}] Qualite : 0.043758493974067635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20391351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20391351_11-02-2025_05_41_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20391351 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20391351_11-02-2025_05_41_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20391352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20391353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20391354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20391355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20391356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20391357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20391358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20391359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20391360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20391361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20391362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20391363, 'pht': 3726}}" where mtr_portfolio_id = 20391351 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20391351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807168, 0.043758493974067635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20391351_11-02-2025_05_41_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20391352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20391353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20391354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20391355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20391356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20391357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20391358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20391359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20391360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20391361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20391362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20391363, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20392040 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574649, 'mtr_portfolio_id': 20392040, 'created_at': datetime.datetime(2025, 2, 11, 5, 42), 'result': '0.03176252321470962', 'result_long': None, 'result_double': None}] Qualite : 0.03176252321470962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20392040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392040_11-02-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20392040 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392040_11-02-2025_05_42_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20392044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392055, 'pht': 3726}}" where mtr_portfolio_id = 20392040 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20392040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807169, 0.03176252321470962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392040_11-02-2025_05_42_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20392044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392055, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20392465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574650, 'mtr_portfolio_id': 20392465, 'created_at': datetime.datetime(2025, 2, 11, 5, 42, 33), 'result': '0.0320804437710543', 'result_long': None, 'result_double': None}] Qualite : 0.0320804437710543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20392465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392465_11-02-2025_05_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20392465 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392465_11-02-2025_05_42_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20392474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392479, 'pht': 3726}}" where mtr_portfolio_id = 20392465 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20392465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807170, 0.0320804437710543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392465_11-02-2025_05_42_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20392474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392479, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20392797 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574651, 'mtr_portfolio_id': 20392797, 'created_at': datetime.datetime(2025, 2, 11, 5, 43, 37), 'result': '0.04895375776130195', 'result_long': None, 'result_double': None}] Qualite : 0.04895375776130195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20392797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392797_11-02-2025_05_43_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20392797 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392797_11-02-2025_05_43_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20392803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392811, 'pht': 3726}}" where mtr_portfolio_id = 20392797 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20392797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807171, 0.04895375776130195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20392797_11-02-2025_05_43_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20392800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20392801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20392802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20392803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20392804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20392805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20392806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20392807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20392808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20392809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20392810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20392811, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20393489 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574652, 'mtr_portfolio_id': 20393489, 'created_at': datetime.datetime(2025, 2, 11, 5, 45, 29), 'result': '0.041267085411415376', 'result_long': None, 'result_double': None}] Qualite : 0.041267085411415376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20393489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393489_11-02-2025_05_45_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20393489 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393489_11-02-2025_05_45_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20393490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20393491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20393492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20393493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20393494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20393495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20393496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20393497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20393498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20393499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20393500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20393501, 'pht': 3726}}" where mtr_portfolio_id = 20393489 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20393489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807172, 0.041267085411415376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393489_11-02-2025_05_45_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20393490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20393491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20393492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20393493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20393494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20393495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20393496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20393497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20393498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20393499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20393500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20393501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20393752 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574653, 'mtr_portfolio_id': 20393752, 'created_at': datetime.datetime(2025, 2, 11, 5, 46, 5), 'result': '0.043441375522471064', 'result_long': None, 'result_double': None}] Qualite : 0.043441375522471064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20393752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393752_11-02-2025_05_46_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20393752 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393752_11-02-2025_05_46_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20393761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20393762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20393763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20393764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20393765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20393766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20393767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20393768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20393769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20393770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20393771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20393772, 'pht': 3726}}" where mtr_portfolio_id = 20393752 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20393752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807173, 0.043441375522471064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20393752_11-02-2025_05_46_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20393761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20393762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20393763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20393764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20393765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20393766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20393767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20393768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20393769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20393770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20393771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20393772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20395726 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574654, 'mtr_portfolio_id': 20395726, 'created_at': datetime.datetime(2025, 2, 11, 5, 46, 29), 'result': '0.04796185906567561', 'result_long': None, 'result_double': None}] Qualite : 0.04796185906567561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20395726 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20395726_11-02-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20395726 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20395726_11-02-2025_05_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20395730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20395731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20395732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20395733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20395734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20395735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20395736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20395737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20395738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20395739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20395740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20395741, 'pht': 3726}}" where mtr_portfolio_id = 20395726 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20395726 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807174, 0.04796185906567561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20395726_11-02-2025_05_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20395730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20395731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20395732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20395733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20395734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20395735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20395736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20395737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20395738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20395739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20395740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20395741, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20396366 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574655, 'mtr_portfolio_id': 20396366, 'created_at': datetime.datetime(2025, 2, 11, 5, 47, 33), 'result': '0.03899491845069175', 'result_long': None, 'result_double': None}] Qualite : 0.03899491845069175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20396366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396366_11-02-2025_05_47_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20396366 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396366_11-02-2025_05_47_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396380, 'pht': 3726}}" where mtr_portfolio_id = 20396366 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20396366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807175, 0.03899491845069175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396366_11-02-2025_05_47_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20396893 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574656, 'mtr_portfolio_id': 20396893, 'created_at': datetime.datetime(2025, 2, 11, 5, 48, 3), 'result': '0.03372623910136492', 'result_long': None, 'result_double': None}] Qualite : 0.03372623910136492 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20396893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396893_11-02-2025_05_48_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20396893 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396893_11-02-2025_05_48_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396906, 'pht': 3726}}" where mtr_portfolio_id = 20396893 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20396893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807176, 0.03372623910136492, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20396893_11-02-2025_05_48_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20396895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20396896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20396897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20396898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20396899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20396900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20396901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20396902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20396903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20396904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20396905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20396906, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20397393 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574657, 'mtr_portfolio_id': 20397393, 'created_at': datetime.datetime(2025, 2, 11, 5, 50, 1), 'result': '0.02913669880336896', 'result_long': None, 'result_double': None}] Qualite : 0.02913669880336896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20397393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20397393_11-02-2025_05_50_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20397393 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20397393_11-02-2025_05_50_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20397424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20397425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20397426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20397427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20397428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20397429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20397430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20397431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20397432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20397433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20397434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20397435, 'pht': 3726}}" where mtr_portfolio_id = 20397393 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20397393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807177, 0.02913669880336896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20397393_11-02-2025_05_50_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20397424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20397425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20397426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20397427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20397428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20397429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20397430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20397431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20397432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20397433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20397434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20397435, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20398181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574658, 'mtr_portfolio_id': 20398181, 'created_at': datetime.datetime(2025, 2, 11, 5, 50, 30), 'result': '0.043635435201981876', 'result_long': None, 'result_double': None}] Qualite : 0.043635435201981876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20398181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_11-02-2025_05_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20398181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_11-02-2025_05_50_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398196, 'pht': 3726}}" where mtr_portfolio_id = 20398181 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20398181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807178, 0.043635435201981876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398181_11-02-2025_05_50_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398196, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20398877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574659, 'mtr_portfolio_id': 20398877, 'created_at': datetime.datetime(2025, 2, 11, 5, 51, 30), 'result': '0.03282456112324533', 'result_long': None, 'result_double': None}] Qualite : 0.03282456112324533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20398877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398877_11-02-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20398877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398877_11-02-2025_05_51_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398905, 'pht': 3726}}" where mtr_portfolio_id = 20398877 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20398877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807179, 0.03282456112324533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20398877_11-02-2025_05_51_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20398894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20398895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20398896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20398897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20398898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20398899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20398900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20398901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20398902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20398903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20398904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20398905, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20399462 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574660, 'mtr_portfolio_id': 20399462, 'created_at': datetime.datetime(2025, 2, 11, 5, 52, 4), 'result': '0.03237774541247009', 'result_long': None, 'result_double': None}] Qualite : 0.03237774541247009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20399462 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20399462_11-02-2025_05_52_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20399462 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20399462_11-02-2025_05_52_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20399519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20399520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20399521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20399522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20399523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20399524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20399525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20399526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20399527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20399528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20399529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20399530, 'pht': 3726}}" where mtr_portfolio_id = 20399462 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20399462 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807180, 0.03237774541247009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20399462_11-02-2025_05_52_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20399519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20399520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20399521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20399522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20399523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20399524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20399525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20399526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20399527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20399528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20399529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20399530, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20400361 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574661, 'mtr_portfolio_id': 20400361, 'created_at': datetime.datetime(2025, 2, 11, 5, 52, 34), 'result': '0.04100815159706628', 'result_long': None, 'result_double': None}] Qualite : 0.04100815159706628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20400361 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20400361_11-02-2025_05_52_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20400361 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20400361_11-02-2025_05_52_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20400393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20400394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20400395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20400396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20400397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20400398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20400399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20400400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20400401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20400402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20400403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20400404, 'pht': 3726}}" where mtr_portfolio_id = 20400361 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20400361 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807181, 0.04100815159706628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20400361_11-02-2025_05_52_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20400393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20400394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20400395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20400396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20400397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20400398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20400399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20400400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20400401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20400402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20400403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20400404, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20401190 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574662, 'mtr_portfolio_id': 20401190, 'created_at': datetime.datetime(2025, 2, 11, 5, 57, 34), 'result': '0.04117409120601821', 'result_long': None, 'result_double': None}] Qualite : 0.04117409120601821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20401190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401190_11-02-2025_05_57_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20401190 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401190_11-02-2025_05_57_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20401254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20401255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20401256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20401257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20401258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20401259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20401260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20401261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20401262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20401263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20401264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20401265, 'pht': 3726}}" where mtr_portfolio_id = 20401190 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20401190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807182, 0.04117409120601821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401190_11-02-2025_05_57_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20401254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20401255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20401256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20401257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20401258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20401259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20401260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20401261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20401262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20401263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20401264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20401265, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20401831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574663, 'mtr_portfolio_id': 20401831, 'created_at': datetime.datetime(2025, 2, 11, 5, 58), 'result': '0.04639522825600881', 'result_long': None, 'result_double': None}] Qualite : 0.04639522825600881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20401831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401831_11-02-2025_05_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20401831 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401831_11-02-2025_05_58_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20401836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20401837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20401838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20401839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20401840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20401841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20401842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20401843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20401844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20401845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20401846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20401847, 'pht': 3726}}" where mtr_portfolio_id = 20401831 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20401831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807183, 0.04639522825600881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20401831_11-02-2025_05_58_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20401836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20401837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20401838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20401839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20401840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20401841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20401842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20401843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20401844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20401845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20401846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20401847, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20403638 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574664, 'mtr_portfolio_id': 20403638, 'created_at': datetime.datetime(2025, 2, 11, 5, 58, 33), 'result': '0.04811693537369095', 'result_long': None, 'result_double': None}] Qualite : 0.04811693537369095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20403638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403638_11-02-2025_05_58_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20403638 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403638_11-02-2025_05_58_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403652, 'pht': 3726}}" where mtr_portfolio_id = 20403638 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20403638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807184, 0.04811693537369095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403638_11-02-2025_05_58_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403652, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20403826 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574665, 'mtr_portfolio_id': 20403826, 'created_at': datetime.datetime(2025, 2, 11, 5, 59, 31), 'result': '0.028951263851885654', 'result_long': None, 'result_double': None}] Qualite : 0.028951263851885654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20403826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403826_11-02-2025_05_59_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20403826 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403826_11-02-2025_05_59_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403839, 'pht': 3726}}" where mtr_portfolio_id = 20403826 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20403826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807185, 0.028951263851885654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20403826_11-02-2025_05_59_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20403828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20403829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20403830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20403831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20403832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20403833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20403834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20403835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20403836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20403837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20403838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20403839, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20404290 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574666, 'mtr_portfolio_id': 20404290, 'created_at': datetime.datetime(2025, 2, 11, 6, 0, 1), 'result': '0.04413981894284363', 'result_long': None, 'result_double': None}] Qualite : 0.04413981894284363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20404290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404290_11-02-2025_06_00_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20404290 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404290_11-02-2025_06_00_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20404317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404328, 'pht': 3726}}" where mtr_portfolio_id = 20404290 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20404290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807186, 0.04413981894284363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404290_11-02-2025_06_00_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20404317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404328, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20404797 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574667, 'mtr_portfolio_id': 20404797, 'created_at': datetime.datetime(2025, 2, 11, 6, 0, 33), 'result': '0.03564824782405953', 'result_long': None, 'result_double': None}] Qualite : 0.03564824782405953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20404797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404797_11-02-2025_06_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20404797 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404797_11-02-2025_06_00_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20404854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404859, 'pht': 3726}}" where mtr_portfolio_id = 20404797 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20404797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807187, 0.03564824782405953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20404797_11-02-2025_06_00_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20404848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20404849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20404850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20404851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20404852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20404853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20404854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20404855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20404856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20404857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20404858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20404859, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20405423 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574668, 'mtr_portfolio_id': 20405423, 'created_at': datetime.datetime(2025, 2, 11, 6, 1, 28), 'result': '0.048388340801015416', 'result_long': None, 'result_double': None}] Qualite : 0.048388340801015416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20405423 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_11-02-2025_06_01_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20405423 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_11-02-2025_06_01_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20405432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20405433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20405434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20405435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20405436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20405437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20405438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20405439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20405440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20405441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20405442, 'pht': 3726}}" where mtr_portfolio_id = 20405423 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20405423 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807188, 0.048388340801015416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20405423_11-02-2025_06_01_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20405432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20405433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20405434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20405435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20405436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20405437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20405438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20405439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20405440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20405441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20405442, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20406133 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574669, 'mtr_portfolio_id': 20406133, 'created_at': datetime.datetime(2025, 2, 11, 6, 2), 'result': '0.027228011860094735', 'result_long': None, 'result_double': None}] Qualite : 0.027228011860094735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20406133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406133_11-02-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20406133 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406133_11-02-2025_06_02_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20406136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20406137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20406138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20406139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20406140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20406141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20406142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20406143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20406144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20406145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20406146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20406147, 'pht': 3726}}" where mtr_portfolio_id = 20406133 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20406133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807189, 0.027228011860094735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406133_11-02-2025_06_02_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20406136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20406137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20406138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20406139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20406140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20406141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20406142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20406143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20406144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20406145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20406146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20406147, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20406258 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574670, 'mtr_portfolio_id': 20406258, 'created_at': datetime.datetime(2025, 2, 11, 6, 2, 31), 'result': '0.04116888590118383', 'result_long': None, 'result_double': None}] Qualite : 0.04116888590118383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20406258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406258_11-02-2025_06_02_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20406258 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406258_11-02-2025_06_02_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20406330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20406331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20406332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20406333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20406334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20406335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20406336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20406337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20406338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20406339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20406340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20406341, 'pht': 3726}}" where mtr_portfolio_id = 20406258 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20406258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807190, 0.04116888590118383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20406258_11-02-2025_06_02_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20406330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20406331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20406332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20406333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20406334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20406335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20406336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20406337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20406338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20406339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20406340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20406341, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20407074 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574671, 'mtr_portfolio_id': 20407074, 'created_at': datetime.datetime(2025, 2, 11, 6, 7, 31), 'result': '0.029561057542733915', 'result_long': None, 'result_double': None}] Qualite : 0.029561057542733915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20407074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407074_11-02-2025_06_07_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20407074 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407074_11-02-2025_06_07_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20407180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20407181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20407182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20407183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20407184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20407185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20407186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20407187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20407188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20407189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20407190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20407191, 'pht': 3726}}" where mtr_portfolio_id = 20407074 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20407074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807191, 0.029561057542733915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407074_11-02-2025_06_07_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20407180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20407181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20407182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20407183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20407184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20407185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20407186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20407187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20407188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20407189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20407190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20407191, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20407690 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574672, 'mtr_portfolio_id': 20407690, 'created_at': datetime.datetime(2025, 2, 11, 6, 8), 'result': '0.0603389737438338', 'result_long': None, 'result_double': None}] Qualite : 0.0603389737438338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20407690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407690_11-02-2025_06_08_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20407690 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407690_11-02-2025_06_08_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20407699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20407700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20407701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20407702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20407703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20407704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20407705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20407706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20407707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20407708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20407709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20407710, 'pht': 3726}}" where mtr_portfolio_id = 20407690 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20407690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807192, 0.0603389737438338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20407690_11-02-2025_06_08_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20407699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20407700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20407701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20407702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20407703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20407704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20407705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20407706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20407707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20407708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20407709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20407710, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20408229 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574673, 'mtr_portfolio_id': 20408229, 'created_at': datetime.datetime(2025, 2, 11, 6, 8, 28), 'result': '0.033359328786676544', 'result_long': None, 'result_double': None}] Qualite : 0.033359328786676544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20408229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408229_11-02-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20408229 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408229_11-02-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20408256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20408257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20408258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20408259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20408260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20408261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20408262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20408263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20408264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20408265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20408266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20408267, 'pht': 3726}}" where mtr_portfolio_id = 20408229 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20408229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807193, 0.033359328786676544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408229_11-02-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20408256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20408257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20408258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20408259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20408260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20408261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20408262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20408263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20408264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20408265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20408266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20408267, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20408781 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574674, 'mtr_portfolio_id': 20408781, 'created_at': datetime.datetime(2025, 2, 11, 6, 9, 30), 'result': '0.043286346946529476', 'result_long': None, 'result_double': None}] Qualite : 0.043286346946529476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20408781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408781_11-02-2025_06_09_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20408781 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408781_11-02-2025_06_09_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20408791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20408792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20408793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20408794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20408795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20408796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20408797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20408798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20408799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20408800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20408801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20408802, 'pht': 3726}}" where mtr_portfolio_id = 20408781 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20408781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807194, 0.043286346946529476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20408781_11-02-2025_06_09_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20408791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20408792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20408793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20408794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20408795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20408796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20408797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20408798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20408799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20408800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20408801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20408802, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20409344 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574675, 'mtr_portfolio_id': 20409344, 'created_at': datetime.datetime(2025, 2, 11, 6, 10, 1), 'result': '0.04712710810247346', 'result_long': None, 'result_double': None}] Qualite : 0.04712710810247346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20409344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20409344_11-02-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20409344 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20409344_11-02-2025_06_10_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20409351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20409352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20409353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20409354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20409355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20409356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20409357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20409358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20409359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20409360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20409361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20409362, 'pht': 3726}}" where mtr_portfolio_id = 20409344 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20409344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807195, 0.04712710810247346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20409344_11-02-2025_06_10_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20409351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20409352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20409353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20409354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20409355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20409356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20409357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20409358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20409359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20409360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20409361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20409362, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20410281 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574676, 'mtr_portfolio_id': 20410281, 'created_at': datetime.datetime(2025, 2, 11, 6, 10, 35), 'result': '0.03834382143153893', 'result_long': None, 'result_double': None}] Qualite : 0.03834382143153893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20410281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410281_11-02-2025_06_10_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20410281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410281_11-02-2025_06_10_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410296, 'pht': 3726}}" where mtr_portfolio_id = 20410281 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20410281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807196, 0.03834382143153893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410281_11-02-2025_06_10_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410296, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20410712 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574677, 'mtr_portfolio_id': 20410712, 'created_at': datetime.datetime(2025, 2, 11, 6, 11, 30), 'result': '0.03353466994252074', 'result_long': None, 'result_double': None}] Qualite : 0.03353466994252074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20410712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410712_11-02-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20410712 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410712_11-02-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410754, 'pht': 3726}}" where mtr_portfolio_id = 20410712 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20410712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807197, 0.03353466994252074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410712_11-02-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410754, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20411318 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574678, 'mtr_portfolio_id': 20411318, 'created_at': datetime.datetime(2025, 2, 11, 6, 11, 58), 'result': '0.03340136685130959', 'result_long': None, 'result_double': None}] Qualite : 0.03340136685130959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20411318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411318_11-02-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20411318 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411318_11-02-2025_06_12_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411330, 'pht': 3726}}" where mtr_portfolio_id = 20411318 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20411318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807198, 0.03340136685130959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411318_11-02-2025_06_12_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411330, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20411932 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574679, 'mtr_portfolio_id': 20411932, 'created_at': datetime.datetime(2025, 2, 11, 6, 13, 4), 'result': '0.04875229082997234', 'result_long': None, 'result_double': None}] Qualite : 0.04875229082997234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20411932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_11-02-2025_06_13_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20411932 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_11-02-2025_06_13_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411950, 'pht': 3726}}" where mtr_portfolio_id = 20411932 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20411932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807199, 0.04875229082997234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_11-02-2025_06_13_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20413473 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574680, 'mtr_portfolio_id': 20413473, 'created_at': datetime.datetime(2025, 2, 11, 6, 13, 31), 'result': '0.04636951239742497', 'result_long': None, 'result_double': None}] Qualite : 0.04636951239742497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20413473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413473_11-02-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20413473 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413473_11-02-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20413476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20413477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20413478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20413479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20413480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20413481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20413482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20413483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20413484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20413485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20413486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20413487, 'pht': 3726}}" where mtr_portfolio_id = 20413473 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20413473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807200, 0.04636951239742497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413473_11-02-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20413476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20413477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20413478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20413479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20413480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20413481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20413482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20413483, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20413484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20413485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20413486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20413487, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20413963 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574681, 'mtr_portfolio_id': 20413963, 'created_at': datetime.datetime(2025, 2, 11, 6, 14), 'result': '0.04222583927445968', 'result_long': None, 'result_double': None}] Qualite : 0.04222583927445968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20413963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413963_11-02-2025_06_14_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20413963 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413963_11-02-2025_06_14_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20414015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414016, 'pht': 3726}}" where mtr_portfolio_id = 20413963 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20413963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807201, 0.04222583927445968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20413963_11-02-2025_06_14_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20414015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414016, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20414667 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574682, 'mtr_portfolio_id': 20414667, 'created_at': datetime.datetime(2025, 2, 11, 6, 14, 33), 'result': '0.05693780687672995', 'result_long': None, 'result_double': None}] Qualite : 0.05693780687672995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20414667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_11-02-2025_06_14_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20414667 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_11-02-2025_06_14_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20414707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414718, 'pht': 3726}}" where mtr_portfolio_id = 20414667 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20414667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807202, 0.05693780687672995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20414667_11-02-2025_06_14_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20414707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20414708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20414709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20414710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20414711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20414712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20414713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20414714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20414715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20414716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20414717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20414718, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20415179 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574683, 'mtr_portfolio_id': 20415179, 'created_at': datetime.datetime(2025, 2, 11, 6, 15, 31), 'result': '0.04440637529709958', 'result_long': None, 'result_double': None}] Qualite : 0.04440637529709958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20415179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415179_11-02-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20415179 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415179_11-02-2025_06_15_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20415210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20415211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20415212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20415213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20415214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20415215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20415216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20415217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20415218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20415219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20415220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20415221, 'pht': 3726}}" where mtr_portfolio_id = 20415179 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20415179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807203, 0.04440637529709958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415179_11-02-2025_06_15_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20415210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20415211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20415212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20415213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20415214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20415215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20415216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20415217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20415218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20415219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20415220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20415221, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20415816 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574684, 'mtr_portfolio_id': 20415816, 'created_at': datetime.datetime(2025, 2, 11, 6, 16, 2), 'result': '0.04824612022430537', 'result_long': None, 'result_double': None}] Qualite : 0.04824612022430537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20415816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415816_11-02-2025_06_16_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20415816 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415816_11-02-2025_06_16_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20415821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20415822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20415823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20415824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20415825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20415826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20415827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20415828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20415829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20415830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20415831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20415832, 'pht': 3726}}" where mtr_portfolio_id = 20415816 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20415816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807204, 0.04824612022430537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20415816_11-02-2025_06_16_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20415821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20415822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20415823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20415824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20415825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20415826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20415827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20415828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20415829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20415830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20415831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20415832, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20416196 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574685, 'mtr_portfolio_id': 20416196, 'created_at': datetime.datetime(2025, 2, 11, 6, 16, 32), 'result': '0.045084653448707865', 'result_long': None, 'result_double': None}] Qualite : 0.045084653448707865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20416196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20416196_11-02-2025_06_16_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20416196 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20416196_11-02-2025_06_16_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20416205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20416206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20416207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20416208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20416209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20416210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20416211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20416212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20416213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20416214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20416215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20416216, 'pht': 3726}}" where mtr_portfolio_id = 20416196 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20416196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807205, 0.045084653448707865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20416196_11-02-2025_06_16_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20416205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20416206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20416207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20416208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20416209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20416210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20416211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20416212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20416213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20416214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20416215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20416216, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20417130 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574686, 'mtr_portfolio_id': 20417130, 'created_at': datetime.datetime(2025, 2, 11, 6, 17, 33), 'result': '0.034268268141963876', 'result_long': None, 'result_double': None}] Qualite : 0.034268268141963876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20417130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417130_11-02-2025_06_17_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20417130 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417130_11-02-2025_06_17_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20417159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20417160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20417161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20417162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20417163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20417164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20417165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20417166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20417167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20417168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20417169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20417170, 'pht': 3726}}" where mtr_portfolio_id = 20417130 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20417130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807206, 0.034268268141963876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417130_11-02-2025_06_17_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20417159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20417160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20417161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20417162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20417163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20417164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20417165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20417166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20417167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20417168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20417169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20417170, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20417760 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574687, 'mtr_portfolio_id': 20417760, 'created_at': datetime.datetime(2025, 2, 11, 6, 18, 2), 'result': '0.034687314319706446', 'result_long': None, 'result_double': None}] Qualite : 0.034687314319706446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20417760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417760_11-02-2025_06_18_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20417760 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417760_11-02-2025_06_18_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20417765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20417766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20417767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20417768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20417769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20417770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20417771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20417772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20417773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20417774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20417775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20417776, 'pht': 3726}}" where mtr_portfolio_id = 20417760 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20417760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807207, 0.034687314319706446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20417760_11-02-2025_06_18_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20417765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20417766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20417767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20417768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20417769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20417770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20417771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20417772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20417773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20417774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20417775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20417776, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20418372 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574688, 'mtr_portfolio_id': 20418372, 'created_at': datetime.datetime(2025, 2, 11, 6, 18, 29), 'result': '0.04238134967306158', 'result_long': None, 'result_double': None}] Qualite : 0.04238134967306158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20418372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20418372_11-02-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20418372 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20418372_11-02-2025_06_18_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20418403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20418404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20418405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20418406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20418407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20418408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20418409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20418410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20418411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20418412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20418413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20418414, 'pht': 3726}}" where mtr_portfolio_id = 20418372 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20418372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807208, 0.04238134967306158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20418372_11-02-2025_06_18_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20418403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20418404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20418405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20418406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20418407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20418408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20418409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20418410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20418411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20418412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20418413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20418414, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20419018 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574689, 'mtr_portfolio_id': 20419018, 'created_at': datetime.datetime(2025, 2, 11, 6, 18, 59), 'result': '0.07174726354556095', 'result_long': None, 'result_double': None}] Qualite : 0.07174726354556095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20419018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419018_11-02-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20419018 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419018_11-02-2025_06_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20419074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20419075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20419076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20419077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20419078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20419079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20419080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20419081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20419082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20419083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20419084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20419085, 'pht': 3726}}" where mtr_portfolio_id = 20419018 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20419018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807209, 0.07174726354556095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419018_11-02-2025_06_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20419074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20419075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20419076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20419077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20419078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20419079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20419080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20419081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20419082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20419083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20419084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20419085, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20419716 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574690, 'mtr_portfolio_id': 20419716, 'created_at': datetime.datetime(2025, 2, 11, 6, 19, 34), 'result': '0.04013221349399855', 'result_long': None, 'result_double': None}] Qualite : 0.04013221349399855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20419716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419716_11-02-2025_06_19_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20419716 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419716_11-02-2025_06_19_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20419748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20419749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20419750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20419751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20419752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20419753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20419754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20419755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20419756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20419757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20419758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20419759, 'pht': 3726}}" where mtr_portfolio_id = 20419716 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20419716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807210, 0.04013221349399855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20419716_11-02-2025_06_19_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20419748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20419749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20419750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20419751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20419752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20419753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20419754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20419755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20419756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20419757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20419758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20419759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20421491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574691, 'mtr_portfolio_id': 20421491, 'created_at': datetime.datetime(2025, 2, 11, 6, 20, 1), 'result': '0.07240256367903777', 'result_long': None, 'result_double': None}] Qualite : 0.07240256367903777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20421491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20421491_11-02-2025_06_20_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20421491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20421491_11-02-2025_06_20_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20421506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20421507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20421508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20421509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20421510, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20421511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20421512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20421513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20421514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20421515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20421516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20421517, 'pht': 3726}}" where mtr_portfolio_id = 20421491 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20421491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807211, 0.07240256367903777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20421491_11-02-2025_06_20_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20421506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20421507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20421508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20421509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20421510, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20421511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20421512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20421513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20421514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20421515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20421516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20421517, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20422277 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2574692, 'mtr_portfolio_id': 20422277, 'created_at': datetime.datetime(2025, 2, 11, 6, 20, 31), 'result': '0.037946831322499805', 'result_long': None, 'result_double': None}] Qualite : 0.037946831322499805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20422277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20422277_11-02-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20422277 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20422277_11-02-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20422278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20422279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20422280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20422281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20422282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20422283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20422284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20422285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20422286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20422287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20422288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20422289, 'pht': 3726}}" where mtr_portfolio_id = 20422277 and dashboard_run_id = 1601614 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20422277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8807212, 0.037946831322499805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20422277_11-02-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20422278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20422279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20422280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20422281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20422282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20422283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20422284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20422285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20422286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20422287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20422288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20422289, '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 (20385910,20386506,20387155,20387604,20388339,20388900,20389401,20390022,20390450,20391351,20392040,20392465,20392797,20393489,20393752,20395726,20396366,20396893,20397393,20398181,20398877,20399462,20400361,20401190,20401831,20403638,20403826,20404290,20404797,20405423,20406133,20406258,20407074,20407690,20408229,20408781,20409344,20410281,20410712,20411318,20411932,20413473,20413963,20414667,20415179,20415816,20416196,20417130,20417760,20418372,20419018,20419716,20421491,20422277) result : ((1336381626,), (1336381627,), (1336381628,), (1336381629,), (1336381637,), (1336381638,), (1336381639,), (1336381640,), (1336381653,), (1336381654,), (1336381655,), (1336381656,), (1336381661,), (1336382822,), (1336382828,), (1336382829,), (1336383447,), (1336383511,), (1336383529,), (1336383557,), (1336383720,), (1336383721,), (1336383722,), (1336383864,), (1336383865,), (1336383866,), (1336383872,), (1336384162,), (1336384234,), (1336384313,), (1336384354,), (1336384355,), (1336384605,), (1336384607,), (1336384608,), (1336384633,), (1336384636,), (1336384651,), (1336384652,), (1336384653,), (1336384674,), (1336384677,), (1336384679,), (1336384682,), (1336384683,), (1336384690,), (1336384691,), (1336384692,), (1336384701,), (1336384703,), (1336384705,), (1336384707,), (1336384749,), (1336384750,), (1336384751,), (1336384752,), (1336384769,), (1336384771,), (1336384791,), (1336384788,), (1336384790,), (1336385029,), (1336385088,), (1336385119,), (1336385164,), (1336385766,), (1336385778,), (1336385781,), (1336385784,), (1336385785,), (1336385786,), (1336386121,), (1336386164,), (1336386338,), (1336386339,), (1336386340,), (1336386794,), (1336386908,), (1336388036,), (1336388037,), (1336388721,), (1336388725,), (1336388811,), (1336389467,), (1336389468,), (1336389612,), (1336389750,), (1336390014,), (1336390041,), (1336390176,), (1336390177,), (1336390178,), (1336390179,), (1336390352,), (1336390359,), (1336390374,), (1336390379,), (1336390842,), (1336390870,), (1336390891,), (1336390959,), (1336391231,), (1336391233,), (1336391234,), (1336391235,), (1336391242,), (1336391246,), (1336391247,), (1336391261,), (1336391260,), (1336391415,), (1336391440,), (1336391511,), (1336391533,), (1336391623,), (1336391624,), (1336391631,), (1336391632,), (1336391633,), (1336391636,), (1336391637,), (1336391653,), (1336391654,), (1336391655,), (1336391656,), (1336391663,), (1336391674,), (1336391785,), (1336393033,), (1336393034,), (1336393102,), (1336393175,), (1336393692,), (1336393741,), (1336393883,), (1336393888,), (1336393893,), (1336393900,), (1336393901,), (1336393902,), (1336393910,), (1336393912,), (1336393914,), (1336393924,), (1336393925,), (1336393926,), (1336393927,), (1336393939,), (1336393940,), (1336393941,), (1336394888,), (1336394936,), (1336394948,), (1336394950,), (1336395028,), (1336395029,), (1336395030,), (1336395193,), (1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,), (1336397369,), (1336397378,), (1336397379,), (1336397382,), (1336397383,), (1336397385,), (1336397400,), (1336397397,), (1336397398,), (1336397399,), (1336397426,), (1336397427,), (1336397428,), (1336397678,), (1336397828,), (1336397891,), (1336397892,), (1336398060,), (1336398061,), (1336398062,), (1336398077,), (1336398082,), (1336398093,), (1336398094,), (1336398095,), (1336398096,), (1336398210,), (1336398273,), (1336398575,), (1336398576,), (1336398577,), (1336398578,), (1336398590,), (1336398591,), (1336398592,), (1336398593,), (1336398606,), (1336398607,), (1336398618,), (1336398630,), (1336398631,), (1336398650,), (1336398651,), (1336398668,), (1336398669,), (1336398670,), (1336398671,), (1336398678,), (1336398745,), (1336398746,), (1336398747,), (1336398748,), (1336398771,), (1336398772,), (1336398773,), (1336398784,), (1336398786,), (1336398791,), (1336398823,), (1336398822,), (1336398859,), (1336398860,), (1336398861,), (1336398877,), (1336398878,), (1336398900,), (1336398901,), (1336398902,), (1336398919,), (1336400200,), (1336400648,), (1336400677,), (1336400721,), (1336401496,), (1336401497,), (1336401534,), (1336401564,), (1336401637,), (1336401646,), (1336401649,), (1336401659,), (1336401660,), (1336401707,), (1336401786,), (1336401830,), (1336401951,), (1336401952,), (1336401953,), (1336401954,), (1336401971,), (1336401972,), (1336401973,), (1336401989,), (1336401990,), (1336401991,), (1336402041,), (1336402007,), (1336402008,), (1336402031,), (1336402104,), (1336402144,), (1336402207,), (1336402263,), (1336402265,), (1336402277,), (1336402424,), (1336402425,), (1336402426,), (1336402427,), (1336402848,), (1336402974,), (1336403034,), (1336403047,), (1336403074,), (1336403107,), (1336403455,), (1336403456,), (1336403457,), (1336403458,), (1336403460,), (1336403599,), (1336403656,), (1336403670,), (1336403833,), (1336403834,), (1336403847,), (1336403848,), (1336403861,), (1336403862,), (1336403863,), (1336403866,), (1336403932,), (1336403988,), (1336404667,), (1336404672,), (1336404681,), (1336404709,), (1336404702,), (1336404705,), (1336404706,), (1336404707,), (1336404730,), (1336404731,), (1336404733,), (1336404797,), (1336404918,), (1336404920,), (1336404922,), (1336404958,), (1336404967,), (1336404972,), (1336405007,), (1336405010,), (1336405013,), (1336405018,), (1336405024,), (1336405123,), (1336405129,), (1336405132,), (1336405135,), (1336406054,), (1336406056,), (1336406058,), (1336406060,), (1336406318,), (1336406357,), (1336406375,), (1336406397,), (1336406425,), (1336406429,), (1336406432,), (1336406461,), (1336406465,), (1336406469,), (1336406473,), (1336406478,), (1336406484,), (1336406493,), (1336406496,), (1336406500,), (1336406504,), (1336406517,), (1336406520,), (1336406522,), (1336406523,), (1336406525,), (1336406527,), (1336406546,), (1336406549,), (1336406552,), (1336406553,), (1336406566,), (1336406567,), (1336406576,), (1336406580,), (1336406583,), (1336406586,), (1336406588,), (1336406490,), (1336406491,), (1336406536,), (1336406541,), (1336406556,), (1336406559,), (1336406562,), (1336406564,), (1336406593,), (1336406597,), (1336406599,), (1336406618,), (1336406620,), (1336406623,), (1336406626,), (1336406649,), (1336406651,), (1336406653,), (1336406852,), (1336406854,), (1336407231,), (1336407232,), (1336407233,), (1336407235,), (1336407416,), (1336407418,), (1336407420,), (1336407426,), (1336407429,), (1336407447,), (1336407448,), (1336407450,), (1336407452,), (1336407453,), (1336407490,), (1336407494,), (1336407695,), (1336407697,), (1336407704,), (1336407710,), (1336407712,), (1336407735,), (1336407736,), (1336407743,), (1336407745,), (1336407773,), (1336407776,), (1336407779,), (1336407804,), (1336407806,), (1336407808,), (1336407810,), (1336407852,), (1336407849,), (1336407850,), (1336408060,), (1336408061,), (1336408062,), (1336408086,), (1336408252,), (1336408256,), (1336408260,), (1336408265,), (1336408270,), (1336408274,), (1336409202,), (1336409244,), (1336409367,), (1336409369,), (1336409406,), (1336409408,), (1336409428,), (1336409430,), (1336409789,), (1336409810,), (1336409812,), (1336409847,), (1336409941,), (1336409942,), (1336409945,), (1336409966,), (1336409969,), (1336409974,), (1336409978,), (1336409985,), (1336410004,), (1336410005,), (1336410008,), (1336410011,), (1336410042,), (1336410043,), (1336410046,), (1336410049,), (1336410345,), (1336410346,), (1336410689,), (1336410702,), (1336410704,), (1336410708,), (1336410713,), (1336410725,), (1336410726,), (1336410729,), (1336410983,), (1336412135,), (1336412138,), (1336412142,), (1336412684,), (1336412687,), (1336412708,), (1336412714,), (1336412716,), (1336412719,), (1336412737,), (1336412739,), (1336412818,), (1336412985,), (1336413060,), (1336413062,), (1336413065,), (1336413085,), (1336413087,), (1336413111,), (1336413114,), (1336413118,), (1336413121,), (1336413125,), (1336413130,), (1336413438,), (1336413440,), (1336413443,), (1336413445,), (1336413447,), (1336413449,), (1336413785,), (1336413787,), (1336413791,), (1336413817,), (1336414447,), (1336414448,), (1336414450,), (1336414452,), (1336414454,), (1336415334,), (1336415347,), (1336415349,), (1336415350,), (1336415355,), (1336415385,), (1336415387,), (1336415392,), (1336415444,), (1336415801,), (1336415802,), (1336415840,), (1336415898,), (1336415958,), (1336415987,), (1336415989,), (1336416006,), (1336416094,), (1336416186,), (1336416306,), (1336416960,), (1336418026,), (1336418016,), (1336418024,), (1336418068,), (1336418069,), (1336418071,), (1336418073,), (1336418075,), (1336418128,), (1336418130,), (1336418132,), (1336418176,), (1336418177,), (1336418180,), (1336418199,), (1336418200,), (1336418202,), (1336418204,), (1336418206,), (1336418208,), (1336418425,), (1336418539,), (1336419634,), (1336419750,), (1336419843,), (1336420068,), (1336420182,), (1336420471,), (1336420474,), (1336420502,), (1336420569,), (1336420646,), (1336421418,), (1336421472,), (1336421498,), (1336421501,), (1336421559,), (1336421560,), (1336421562,), (1336421590,), (1336421591,), (1336421593,), (1336421595,), (1336421596,), (1336421713,), (1336421753,), (1336421825,), (1336421909,), (1336421992,), (1336422083,), (1336422531,), (1336422601,), (1336422641,), (1336422643,), (1336422644,), (1336423247,), (1336423249,), (1336423251,), (1336423469,), (1336423472,), (1336423475,), (1336423477,), (1336423480,), (1336423843,), (1336423845,), (1336423848,), (1336423895,), (1336423865,), (1336423866,), (1336423881,), (1336423888,), (1336423917,), (1336423919,), (1336423921,), (1336423942,), (1336423943,), (1336423947,), (1336423985,), (1336423987,), (1336423989,), (1336423991,), (1336423993,), (1336423996,), (1336424012,), (1336424014,), (1336424015,), (1336424026,), (1336424050,), (1336424051,), (1336424055,), (1336424057,), (1336424076,), (1336424079,), (1336424083,), (1336424102,), (1336424104,), (1336424107,), (1336424110,), (1336424113,), (1336424131,), (1336424132,), (1336424133,), (1336424136,), (1336424176,), (1336424205,), (1336424212,), (1336424214,), (1336424219,), (1336424224,), (1336424242,), (1336424243,), (1336424245,), (1336424246,), (1336424353,), (1336424407,), (1336424493,), (1336425408,), (1336425409,), (1336425421,), (1336425425,), (1336425447,), (1336425463,), (1336425551,), (1336425639,), (1336426001,), (1336426007,), (1336426010,), (1336426013,), (1336426055,), (1336426050,), (1336426051,), (1336426053,), (1336426078,), (1336426081,), (1336426084,), (1336426129,), (1336426137,), (1336426149,), (1336426237,), (1336426331,), (1336426418,), (1336427136,), (1336427221,), (1336427225,), (1336427234,), (1336428030,), (1336428288,), (1336428442,), (1336428459,), (1336428553,), (1336428554,), (1336428556,), (1336428558,), (1336428560,), (1336428562,), (1336429090,), (1336429095,), (1336429099,), (1336429139,), (1336429228,), (1336429307,), (1336429330,), (1336430509,), (1336430755,), (1336430758,), (1336430761,), (1336430762,), (1336430765,), (1336430780,), (1336430782,), (1336430785,), (1336430808,), (1336430869,), (1336431128,), (1336431383,), (1336431950,), (1336432006,), (1336432080,), (1336432081,), (1336432083,), (1336432326,), (1336432351,), (1336432364,), (1336432432,), (1336432438,), (1336432443,), (1336432447,), (1336432451,), (1336432456,), (1336432467,), (1336432470,), (1336432475,), (1336432491,), (1336440471,), (1336440557,), (1336440608,), (1336440696,), (1336440697,), (1336440698,), (1336440705,), (1336441256,), (1336441258,), (1336441259,), (1336441328,), (1336441331,), (1336442175,), (1336442261,), (1336442352,), (1336443402,), (1336443404,), (1336443407,), (1336443485,), (1336443581,), (1336443631,), (1336443724,), (1336443726,), (1336443729,), (1336443731,), (1336443818,), (1336444179,), (1336444295,), (1336444297,), (1336444299,), (1336444301,), (1336444314,), (1336444316,), (1336444320,), (1336444324,), (1336444327,), (1336444331,), (1336444538,), (1336444540,), (1336444555,), (1336444557,), (1336444560,), (1336444563,), (1336444603,), (1336444605,), (1336444608,), (1336444620,), (1336444842,), (1336444843,), (1336444845,), (1336444846,), (1336444847,), (1336445090,), (1336445092,), (1336445094,), (1336445383,), (1336445388,), (1336445393,), (1336445397,), (1336445406,), (1336445407,), (1336445410,), (1336445412,), (1336445414,), (1336445504,), (1336445500,), (1336445501,), (1336445502,), (1336445731,), (1336445733,), (1336445772,), (1336445779,), (1336445801,), (1336445802,), (1336445805,), (1336445808,), (1336445880,), (1336446531,), (1336446533,), (1336446535,), (1336446587,), (1336446647,), (1336446648,), (1336446650,), (1336446652,), (1336446696,), (1336446699,), (1336446746,), (1336446748,), (1336446823,), (1336446825,), (1336446828,), (1336446831,), (1336446861,), (1336446862,), (1336446864,), (1336446866,), (1336446869,), (1336446894,), (1336446897,), (1336446899,), (1336446902,), (1336446905,), (1336447098,), (1336447104,), (1336447105,), (1336447107,), (1336447109,), (1336447135,), (1336447137,), (1336447141,), (1336447165,), (1336447208,), (1336447320,), (1336447323,), (1336447327,), (1336447330,), (1336447333,), (1336447358,), (1336447360,), (1336447362,), (1336447366,), (1336447368,), (1336447396,), (1336447398,), (1336447404,), (1336447407,), (1336447436,), (1336447438,), (1336447440,), (1336447443,), (1336447446,), (1336447487,), (1336447484,), (1336447725,), (1336447767,), (1336447771,), (1336447774,), (1336447776,), (1336447778,), (1336447856,), (1336447859,), (1336447898,), (1336447900,), (1336447903,), (1336448700,), (1336448701,), (1336448704,), (1336448771,), (1336448861,), (1336448862,), (1336448866,), (1336448868,), (1336448872,), (1336448898,), (1336448900,), (1336448903,), (1336449441,), (1336449526,), (1336449613,), (1336449697,), (1336450511,), (1336450613,), (1336450615,), (1336451018,), (1336451020,), (1336451045,), (1336451079,), (1336451083,), (1336451088,), (1336451572,), (1336451662,), (1336451676,), (1336451720,), (1336451741,), (1336451758,), (1336451811,), (1336451812,), (1336451816,), (1336451819,), (1336451823,), (1336451825,), (1336451855,), (1336451859,), (1336451861,), (1336451887,), (1336451889,), (1336451891,), (1336451893,), (1336451927,), (1336451930,), (1336451932,), (1336451934,), (1336451942,), (1336452002,), (1336451988,), (1336451991,), (1336451996,), (1336451999,), (1336452049,), (1336452052,), (1336452053,), (1336452055,), (1336452092,), (1336452093,), (1336452095,), (1336452097,), (1336452098,), (1336452827,), (1336452831,), (1336452843,), (1336452845,), (1336453008,), (1336453014,), (1336453090,), (1336453092,), (1336453095,), (1336453100,), (1336453444,), (1336453537,), (1336453619,), (1336453725,), (1336453815,), (1336454063,), (1336454085,), (1336454107,), (1336454213,), (1336454367,), (1336454452,), (1336454613,), (1336454615,), (1336454622,), (1336454630,), (1336454656,), (1336454769,), (1336454858,), (1336455022,), (1336455025,), (1336455028,), (1336455031,), (1336455033,), (1336455035,), (1336455069,), (1336455073,), (1336455075,), (1336455078,), (1336455081,), (1336455083,), (1336455251,), (1336455253,), (1336455257,), (1336455261,), (1336455264,), (1336455290,), (1336455291,), (1336455294,), (1336455297,), (1336455299,), (1336455336,), (1336455338,), (1336455341,), (1336455345,), (1336455349,), (1336455353,), (1336455394,), (1336455396,), (1336455399,), (1336455405,), (1336455409,), (1336455463,), (1336455457,), (1336455458,), (1336455460,), (1336455658,), (1336455659,), (1336455661,), (1336455665,), (1336455678,), (1336455764,), (1336455802,), (1336455806,), (1336455812,), (1336455813,), (1336455816,), (1336455842,), (1336455845,), (1336456056,), (1336456299,), (1336456393,), (1336456600,), (1336456628,), (1336456629,), (1336456659,), (1336456699,), (1336456700,), (1336456701,), (1336456702,), (1336456705,), (1336456778,), (1336456789,), (1336456794,), (1336456795,), (1336456801,), (1336457055,), (1336457131,), (1336457146,), (1336457395,), (1336457399,), (1336457403,), (1336457411,), (1336457423,), (1336457428,), (1336457589,), (1336457591,), (1336457592,), (1336457622,), (1336457623,), (1336457625,), (1336457627,), (1336457635,), (1336457662,), (1336457664,), (1336457667,), (1336457718,), (1336457812,), (1336457817,), (1336458102,), (1336458160,), (1336458241,), (1336458490,), (1336458493,), (1336458588,), (1336458570,), (1336458578,), (1336458582,), (1336458584,), (1336458808,), (1336458811,), (1336458868,), (1336458869,), (1336458872,), (1336458874,), (1336458891,), (1336458893,), (1336458896,), (1336458899,), (1336458920,), (1336458955,), (1336458956,), (1336458959,), (1336458962,), (1336458999,), (1336459000,), (1336459004,), (1336459008,), (1336459010,), (1336459259,), (1336459269,), (1336459272,), (1336459451,), (1336460181,), (1336460183,), (1336460204,), (1336460393,), (1336460414,), (1336460418,), (1336460549,), (1336460550,), (1336460557,), (1336460565,), (1336460566,), (1336460586,), (1336460590,), (1336460593,), (1336460595,), (1336460597,), (1336460617,), (1336460619,), (1336460621,), (1336460622,), (1336460860,), (1336460861,), (1336460863,), (1336460864,), (1336460868,), (1336460893,), (1336460896,), (1336460899,), (1336460902,), (1336460905,), (1336460944,), (1336460950,), (1336460986,), (1336460988,), (1336460990,), (1336460992,), (1336460996,), (1336460998,), (1336461032,), (1336461027,), (1336461028,), (1336461030,), (1336461210,), (1336461212,), (1336461214,), (1336461288,), (1336461292,), (1336461293,), (1336461294,), (1336461319,), (1336461321,), (1336461324,), (1336461327,), (1336461330,), (1336461333,), (1336461410,), (1336461411,), (1336461413,), (1336462076,), (1336462105,), (1336462107,), (1336462109,), (1336462111,), (1336462112,), (1336462382,), (1336462389,), (1336462398,), (1336462400,), (1336462408,), (1336462414,), (1336462431,), (1336462432,), (1336462437,), (1336462438,), (1336462497,), (1336462498,), (1336462501,), (1336462503,), (1336462530,), (1336462534,), (1336462579,), (1336462580,), (1336462582,), (1336462603,), (1336462700,), (1336463304,), (1336463394,), (1336463398,), (1336463400,), (1336463683,), (1336463689,), (1336463692,), (1336463697,), (1336463702,), (1336463784,), (1336463786,), (1336463819,), (1336463828,), (1336463878,), (1336463880,), (1336463897,), (1336463909,), (1336463915,), (1336463918,), (1336463981,), (1336464005,), (1336464021,), (1336464027,), (1336464176,), (1336464118,), (1336464150,), (1336464154,), (1336464155,), (1336464326,), (1336464349,), (1336464350,), (1336464352,), (1336464545,), (1336464549,), (1336464551,), (1336464554,), (1336464558,), (1336464569,), (1336464598,), (1336464600,), (1336464603,), (1336464641,), (1336464643,), (1336464645,), (1336464648,), (1336464651,), (1336465519,), (1336465520,), (1336465522,), (1336465526,), (1336465993,), (1336465996,), (1336466002,), (1336466004,), (1336466009,), (1336466047,), (1336466052,), (1336466055,), (1336466058,), (1336466062,), (1336466094,), (1336466097,), (1336466104,), (1336466107,), (1336466109,), (1336466112,), (1336466182,), (1336466183,), (1336466213,), (1336466214,), (1336466216,), (1336466223,), (1336466255,), (1336466256,), (1336466258,), (1336466260,), (1336466262,), (1336466290,), (1336466291,), (1336466293,), (1336466295,), (1336466297,), (1336466330,), (1336466333,), (1336466336,), (1336466338,), (1336466399,), (1336466372,), (1336466374,), (1336466377,), (1336466380,), (1336466388,), (1336466722,), (1336466725,), (1336466727,), (1336466729,), (1336466877,), (1336466879,), (1336466888,), (1336466912,), (1336466913,), (1336466915,), (1336466917,), (1336466967,), (1336466968,), (1336466970,), (1336466975,), (1336466982,), (1336467010,), (1336467011,), (1336467013,), (1336467016,), (1336467019,), (1336467041,), (1336467043,), (1336467045,), (1336467084,), (1336467090,), (1336467115,), (1336467124,), (1336467127,), (1336467170,), (1336467171,), (1336467173,), (1336467175,), (1336467178,), (1336467180,), (1336467237,), (1336467238,), (1336467246,), (1336467248,), (1336467249,), (1336467274,), (1336467282,), (1336467284,), (1336467709,), (1336467798,), (1336467890,), (1336467976,), (1336468063,), (1336468301,), (1336468307,), (1336468309,), (1336468312,), (1336468316,), (1336468893,), (1336468898,), (1336468973,), (1336469059,), (1336469435,), (1336469427,), (1336469429,), (1336469431,), (1336469433,), (1336470207,), (1336470433,), (1336470435,), (1336470437,), (1336470448,), (1336470525,), (1336470849,), (1336470852,), (1336470855,), (1336470857,), (1336470888,), (1336470891,), (1336470946,), (1336471119,), (1336471120,), (1336471122,), (1336471124,), (1336471127,), (1336471129,), (1336471178,), (1336471179,), (1336471181,), (1336471183,), (1336471191,), (1336471226,), (1336471227,), (1336471228,), (1336471230,), (1336471415,), (1336471418,), (1336471420,), (1336471422,), (1336471462,), (1336471465,), (1336471468,), (1336471471,), (1336471518,), (1336471520,), (1336471525,), (1336471527,), (1336471530,), (1336471556,), (1336471557,), (1336471562,), (1336471568,), (1336478009,), (1336489216,), (1336490006,), (1336490211,), (1336490214,), (1336490259,), (1336490261,), (1336490264,), (1336490266,), (1336490303,), (1336490409,), (1336491734,), (1336491823,), (1336491843,), (1336491848,), (1336491883,), (1336492249,), (1336492320,), (1336492524,), (1336492528,), (1336492532,), (1336492594,), (1336492661,), (1336492664,), (1336493497,), (1336493502,), (1336493508,), (1336493562,), (1336493773,), (1336493775,), (1336493781,), (1336493783,), (1336493915,), (1336493918,), (1336493922,), (1336493986,), (1336493987,), (1336494003,), (1336494012,), (1336494014,), (1336494045,), (1336494050,), (1336494061,), (1336494094,), (1336494098,), (1336494104,), (1336494108,), (1336494134,), (1336494139,), (1336494161,), (1336494164,), (1336494207,), (1336494209,), (1336494212,), (1336494213,), (1336494215,), (1336494251,), (1336494256,), (1336494259,), (1336494332,), (1336494336,), (1336494357,), (1336494363,), (1336494369,), (1336494492,), (1336494484,), (1336494487,), (1336494489,), (1336494529,), (1336494533,), (1336494537,), (1336494540,), (1336494613,), (1336494616,), (1336494817,), (1336495323,), (1336495345,), (1336495348,), (1336495352,), (1336495390,), (1336495391,), (1336495659,), (1336495863,), (1336496132,), (1336496320,), (1336496324,), (1336496372,), (1336496382,), (1336496386,), (1336496928,), (1336497007,), (1336497014,), (1336497265,), (1336497266,), (1336497270,), (1336497274,), (1336497312,), (1336497317,), (1336497320,), (1336497323,), (1336497365,), (1336497368,), (1336497371,), (1336497374,), (1336497404,), (1336497412,), (1336497415,), (1336497416,), (1336497474,), (1336497476,), (1336497480,), (1336497483,), (1336497612,), (1336497618,), (1336497621,), (1336497820,), (1336497822,), (1336497825,), (1336497828,), (1336497833,), (1336497893,), (1336497865,), (1336497872,), (1336497874,), (1336497877,), (1336497891,), (1336498138,), (1336498145,), (1336498150,), (1336498154,), (1336498159,), (1336498192,), (1336498194,), (1336498197,), (1336498200,), (1336498214,), (1336498255,), (1336498258,), (1336498261,), (1336498270,), (1336498274,), (1336498276,), (1336498307,), (1336498308,), (1336498310,), (1336498398,), (1336498400,), (1336498520,), (1336498524,), (1336498528,), (1336498529,), (1336498548,), (1336498602,), (1336498608,), (1336498616,), (1336498687,), (1336498691,), (1336498743,), (1336498747,), (1336498757,), (1336498765,), (1336498817,), (1336498822,), (1336498826,), (1336498839,), (1336498843,), (1336498926,), (1336498928,), (1336498937,), (1336498941,), (1336499010,), (1336499034,), (1336499041,), (1336499045,), (1336499112,), (1336499116,), (1336499119,), (1336499122,), (1336499281,), (1336499286,), (1336499357,), (1336499351,), (1336499353,), (1336499648,), (1336499712,), (1336499800,), (1336499831,), (1336499882,), (1336499885,), (1336499888,), (1336499895,), (1336500892,), (1336500982,), (1336501070,), (1336501171,), (1336501257,), (1336501410,), (1336501413,), (1336501419,), (1336501423,), (1336501454,), (1336501457,), (1336501461,), (1336502109,), (1336502167,), (1336502178,), (1336502182,), (1336502198,), (1336502229,), (1336502409,), (1336502410,), (1336502412,), (1336502414,), (1336502463,), (1336502464,), (1336502695,), (1336502702,), (1336502718,), (1336502768,), (1336502981,), (1336503474,), (1336503582,), (1336503848,), (1336503898,), (1336503901,), (1336503904,), (1336503944,), (1336503947,), (1336503951,), (1336504016,), (1336504019,), (1336504022,), (1336504025,), (1336505149,), (1336505157,), (1336505167,), (1336505173,), (1336505181,), (1336505194,), (1336505196,), (1336505276,), (1336505256,), (1336505261,), (1336505265,), (1336505269,), (1336505271,), (1336505311,), (1336505316,), (1336505320,), (1336505322,), (1336505325,), (1336505545,), (1336505553,), (1336505557,), (1336505560,), (1336505628,), (1336505632,), (1336505635,), (1336505638,), (1336505642,), (1336505675,), (1336505678,), (1336505681,), (1336505685,), (1336505689,), (1336505742,), (1336505744,), (1336505751,), (1336505756,), (1336505778,), (1336506530,), (1336506559,), (1336507274,), (1336507369,), (1336507474,), (1336508338,), (1336508347,), (1336508356,), (1336508550,), (1336508831,), (1336508919,), (1336509012,), (1336509104,), (1336509206,), (1336509316,), (1336509431,), (1336509434,), (1336509437,), (1336509494,), (1336509627,), (1336509713,), (1336509796,), (1336509865,), (1336509868,), (1336509912,), (1336509916,), (1336509920,), (1336509924,), (1336509931,), (1336509935,), (1336509965,), (1336510009,), (1336510049,), (1336510054,), (1336510059,), (1336510063,), (1336510070,), (1336510258,), (1336510166,), (1336510171,), (1336510176,), (1336510221,), (1336510422,), (1336510428,), (1336510432,), (1336510437,), (1336510493,), (1336510497,), (1336510501,), (1336510510,), (1336510519,), (1336510524,), (1336510745,), (1336510763,), (1336510770,), (1336511574,), (1336512006,), (1336512013,), (1336512015,), (1336512096,), (1336512129,), (1336512209,), (1336512313,), (1336512332,), (1336512339,), (1336512391,), (1336512396,), (1336512408,), (1336512419,), (1336512577,), (1336512644,), (1336512649,), (1336512728,), (1336512732,), (1336512736,), (1336512741,), (1336512746,), (1336512772,), (1336512776,), (1336512780,), (1336512786,), (1336512789,), (1336512796,), (1336512815,), (1336512817,), (1336512822,), (1336512895,), (1336512908,), (1336512912,), (1336512916,), (1336512922,), (1336513034,), (1336513041,), (1336513044,), (1336513048,), (1336513053,), (1336513088,), (1336513077,), (1336513081,), (1336513085,), (1336513401,), (1336513516,), (1336513589,), (1336513675,), (1336513765,), (1336513856,), (1336514247,), (1336514259,), (1336514273,), (1336514304,), (1336515751,), (1336515754,), (1336515848,), (1336515850,), (1336516055,), (1336516855,), (1336516859,), (1336517213,), (1336517254,), (1336517256,), (1336517259,), (1336517316,), (1336517318,), (1336517321,), (1336517324,), (1336517357,), (1336518306,), (1336518307,), (1336518312,), (1336518315,), (1336518359,), (1336518363,), (1336518366,), (1336518369,), (1336518373,), (1336518374,), (1336518928,), (1336518919,), (1336518922,), (1336518925,), (1336518927,), (1336519198,), (1336519202,), (1336519249,), (1336519706,), (1336519714,), (1336519716,), (1336519749,), (1336519753,), (1336519758,), (1336519800,), (1336519805,), (1336519810,), (1336519814,), (1336519819,), (1336519848,), (1336519851,), (1336519854,), (1336519857,), (1336519905,), (1336519909,), (1336519914,), (1336520360,), (1336520450,), (1336520539,), (1336520635,), (1336520760,), (1336521154,), (1336521183,), (1336521186,), (1336521200,), (1336521203,), (1336521456,), (1336521458,), (1336521498,), (1336521523,), (1336521726,), (1336521729,), (1336521733,), (1336521738,), (1336521742,), (1336521748,), (1336521911,), (1336521996,), (1336522061,), (1336522126,), (1336522232,), (1336522679,), (1336522960,), (1336522965,), (1336522969,), (1336523007,), (1336523013,), (1336523016,), (1336523019,), (1336523023,), (1336523038,), (1336523188,), (1336523198,), (1336523217,), (1336523234,), (1336523802,), (1336523406,), (1336523507,), (1336523605,), (1336523709,), (1336523879,), (1336523957,), (1336524051,), (1336524092,), (1336524235,), (1336524238,), (1336524241,), (1336524243,), (1336524488,), (1336524490,), (1336524493,), (1336524496,), (1336524500,), (1336524503,), (1336524676,), (1336524681,), (1336524686,), (1336524689,), (1336524717,), (1336524720,), (1336525371,), (1336525499,), (1336525524,), (1336525528,), (1336525554,), (1336525557,), (1336525704,), (1336525756,), (1336525836,), (1336525888,), (1336525960,), (1336526048,), (1336526850,), (1336526939,), (1336527028,), (1336527030,), (1336527060,), (1336527063,), (1336527067,), (1336527071,), (1336527078,), (1336527136,), (1336527140,), (1336527142,), (1336527213,), (1336527300,), (1336527343,), (1336527563,), (1336527566,), (1336527570,), (1336527736,), (1336527742,), (1336527745,), (1336527748,), (1336527782,), (1336527855,), (1336527858,), (1336527861,), (1336527864,), (1336527866,), (1336528460,), (1336528534,), (1336528620,), (1336529009,), (1336528996,), (1336528998,), (1336529001,), (1336529005,), (1336529638,), (1336529734,), (1336529768,), (1336529771,), (1336530026,), (1336530030,), (1336530086,), (1336530612,), (1336530627,), (1336530681,), (1336530733,), (1336530749,), (1336530778,), (1336530849,), (1336530852,), (1336530855,), (1336530857,), (1336530860,), (1336531234,), (1336531289,), (1336531335,), (1336531405,), (1336532133,), (1336532201,), (1336532263,), (1336532337,), (1336532642,), (1336532644,), (1336532647,), (1336532689,), (1336532690,), (1336532692,), (1336532694,), (1336533090,), (1336533513,), (1336535095,), (1336534926,), (1336535135,), (1336535172,), (1336535180,), (1336535181,), (1336535191,), (1336535197,), (1336535288,), (1336535290,), (1336535293,), (1336535295,), (1336535446,), (1336535448,), (1336535450,), (1336535451,), (1336535484,), (1336535490,), (1336535494,), (1336535496,), (1336535498,), (1336535584,), (1336535585,), (1336535587,), (1336535589,), (1336535591,), (1336535667,), (1336535669,), (1336535675,), (1336535683,), (1336535784,), (1336535786,), (1336535789,), (1336535793,), (1336535877,), (1336536228,), (1336536231,), (1336536247,), (1336536264,), (1336536273,), (1336536278,), (1336536512,), (1336536516,), (1336536518,), (1336536521,), (1336536522,), (1336536525,), (1336536626,), (1336536628,), (1336536663,), (1336536815,), (1336536805,), (1336536809,), (1336537068,), (1336537071,), (1336537074,), (1336537077,), (1336537081,), (1336537115,), (1336537118,), (1336537122,), (1336537165,), (1336537167,), (1336537215,), (1336537282,), (1336537285,), (1336537327,), (1336537330,), (1336537335,), (1336537386,), (1336537389,), (1336537392,), (1336537398,), (1336537416,), (1336537424,), (1336537509,), (1336537513,), (1336537515,), (1336537568,), (1336537571,), (1336537608,), (1336537613,), (1336537661,), (1336537665,), (1336538436,), (1336538440,), (1336538955,), (1336538989,), (1336538995,), (1336539001,), (1336539007,), (1336539013,), (1336539126,), (1336539113,), (1336539118,), (1336539121,), (1336539124,), (1336539151,), (1336539163,), (1336539166,), (1336539171,), (1336539174,), (1336539215,), (1336539221,), (1336539227,), (1336539233,), (1336539281,), (1336539285,), (1336539294,), (1336539296,), (1336539301,), (1336539421,), (1336539423,), (1336539426,), (1336539428,), (1336539433,), (1336539440,), (1336539483,), (1336539489,), (1336539491,), (1336539494,), (1336539527,), (1336539529,), (1336539533,), (1336539535,), (1336540335,), (1336540337,), (1336540341,), (1336541333,), (1336541456,), (1336541546,), (1336542510,), (1336542611,), (1336542700,), (1336543229,), (1336543250,), (1336543257,), (1336543358,), (1336543363,), (1336543369,), (1336543376,), (1336543421,), (1336543425,), (1336543433,), (1336543436,), (1336543446,), (1336543483,), (1336543486,), (1336543489,), (1336543492,), (1336543496,), (1336543500,), (1336543582,), (1336543585,), (1336543588,), (1336543777,), (1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,), (1336554904,), (1336557437,), (1336557439,), (1336557454,), (1336557457,), (1336557467,), (1336557483,), (1336557752,), (1336557850,), (1336557861,), (1336557864,), (1336557905,), (1336557962,), (1336558015,), (1336558044,), (1336558054,), (1336558060,), (1336558081,), (1336558112,), (1336558277,), (1336558363,), (1336558679,), (1336558682,), (1336558686,), (1336558690,), (1336558735,), (1336558786,), (1336558883,), (1336558935,), (1336558967,), (1336559016,), (1336559018,), (1336559023,), (1336559027,), (1336559068,), (1336559074,), (1336559395,), (1336559429,), (1336559483,), (1336559485,), (1336559489,), (1336559620,), (1336559623,), (1336559627,), (1336559897,), (1336559918,), (1336559923,), (1336559968,), (1336559975,), (1336559980,), (1336559996,), (1336559987,), (1336559988,), (1336559991,), (1336560234,), (1336560237,), (1336560454,), (1336560468,), (1336560695,), (1336560697,), (1336560699,), (1336560703,), (1336560708,), (1336560745,), (1336560747,), (1336560829,), (1336560848,), (1336560851,), (1336560869,), (1336560880,), (1336560893,), (1336560920,), (1336560923,), (1336560927,), (1336560930,), (1336560936,), (1336560971,), (1336560973,), (1336560976,), (1336560978,), (1336561236,), (1336561239,), (1336561298,), (1336561524,), (1336561531,), (1336561559,), (1336561568,), (1336561571,), (1336561747,), (1336561772,), (1336561779,), (1336561783,), (1336561840,), (1336561843,), (1336561848,), (1336561851,), (1336561855,), (1336561856,), (1336561893,), (1336561903,), (1336561957,), (1336561967,), (1336561968,), (1336561971,), (1336561977,), (1336561982,), (1336562013,), (1336562016,), (1336562021,), (1336562027,), (1336562042,), (1336562082,), (1336562086,), (1336562092,), (1336562149,), (1336562135,), (1336562137,), (1336562140,), (1336562144,), (1336562180,), (1336562184,), (1336562188,), (1336562192,), (1336562196,), (1336562571,), (1336562577,), (1336562581,), (1336562583,), (1336562585,), (1336562613,), (1336562616,), (1336562619,), (1336562623,), (1336562657,), (1336562660,), (1336562663,), (1336562666,), (1336562852,), (1336562854,), (1336562857,), (1336562861,), (1336562865,), (1336562869,), (1336562892,), (1336562894,), (1336562898,), (1336562900,), (1336562904,), (1336562907,), (1336562957,), (1336562964,), (1336562967,), (1336562973,), (1336563003,), (1336563006,), (1336563009,), (1336563014,), (1336563017,), (1336563021,), (1336563043,), (1336563059,), (1336563067,), (1336563069,), (1336563073,), (1336563110,), (1336563113,), (1336563116,), (1336563119,), (1336563122,), (1336563152,), (1336563155,), (1336563159,), (1336563163,), (1336563176,), (1336563202,), (1336563205,), (1336563209,), (1336563213,), (1336563216,), (1336563219,), (1336563243,), (1336563245,), (1336563247,), (1336563250,), (1336563313,), (1336563325,), (1336563334,), (1336563345,), (1336563355,), (1336563359,), (1336563530,), (1336563488,), (1336563501,), (1336563508,), (1336564130,), (1336564159,), (1336564201,), (1336564262,), (1336564302,), (1336564307,), (1336564510,), (1336564607,), (1336564645,), (1336564661,), (1336564682,), (1336564699,), (1336564940,), (1336565095,), (1336565099,), (1336565102,), (1336565419,), (1336565422,), (1336565425,), (1336565429,), (1336565431,), (1336565437,), (1336565469,), (1336565472,), (1336565482,), (1336565499,), (1336565511,), (1336565554,), (1336565563,), (1336565571,), (1336565601,), (1336565608,), (1336565612,), (1336565615,), (1336565618,), (1336565622,), (1336565660,), (1336565671,), (1336565677,), (1336565681,), (1336565684,), (1336565689,), (1336566476,), (1336566435,), (1336566438,), (1336566796,), (1336566805,), (1336566817,), (1336566820,), (1336566825,), (1336566827,), (1336566841,), (1336566843,), (1336566848,), (1336566850,), (1336566852,), (1336566878,), (1336566880,), (1336566883,), (1336566886,), (1336566937,), (1336566940,), (1336566956,), (1336567054,), (1336567602,), (1336567646,), (1336567714,), (1336567774,), (1336567853,), (1336567856,), (1336567966,), (1336568048,), (1336568054,), (1336568076,), (1336568079,), (1336568508,), (1336568601,), (1336568628,), (1336568644,), (1336568879,), (1336568952,), (1336568986,), (1336568998,), (1336569000,), (1336569071,), (1336569074,), (1336569078,), (1336569081,), (1336569083,), (1336569102,), (1336569105,), (1336569109,), (1336569113,), (1336569139,), (1336569155,), (1336569162,), (1336569220,), (1336569224,), (1336569230,), (1336569233,), (1336569252,), (1336569433,), (1336569356,), (1336569391,), (1336569401,), (1336569429,), (1336569507,), (1336569509,), (1336569564,), (1336569568,), (1336569628,), (1336569632,), (1336569639,), (1336569642,), (1336569660,), (1336569665,), (1336569670,), (1336570550,), (1336570636,), (1336570728,), (1336570819,), (1336570998,), (1336571001,), (1336571004,), (1336571007,), (1336571014,), (1336571020,), (1336571045,), (1336571048,), (1336571052,), (1336571055,), (1336571058,), (1336571069,), (1336571710,), (1336571713,), (1336571717,), (1336571722,), (1336571992,), (1336572010,), (1336572029,), (1336572033,), (1336572092,), (1336572100,), (1336572113,), (1336572225,), (1336572229,), (1336572233,), (1336572241,), (1336572249,), (1336572350,), (1336572416,), (1336572419,), (1336572423,), (1336573264,), (1336573384,), (1336573387,), (1336573439,), (1336573450,), (1336573456,), (1336573459,), (1336573462,), (1336573958,), (1336573960,), (1336573983,), (1336573986,), (1336574267,), (1336574248,), (1336574250,), (1336574254,), (1336574258,), (1336574746,), (1336574752,), (1336574764,), (1336574768,), (1336574781,), (1336574908,), (1336574912,), (1336574917,), (1336574920,), (1336574976,), (1336574998,), (1336575004,), (1336575009,), (1336575069,), (1336575071,), (1336575075,), (1336575077,), (1336575104,), (1336575108,), (1336575113,), (1336575206,), (1336575265,), (1336575274,), (1336575325,), (1336575327,), (1336575331,), (1336575333,), (1336575374,), (1336575376,), (1336575379,), (1336575381,), (1336575499,), (1336575503,), (1336575507,), (1336575515,), (1336575542,), (1336575545,), (1336575549,), (1336575552,), (1336575556,), (1336575578,), (1336575580,), (1336575584,), (1336575615,), (1336575617,), (1336575621,), (1336575625,), (1336575645,), (1336575649,), (1336575653,), (1336575661,), (1336575668,), (1336575673,), (1336575735,), (1336575702,), (1336575705,), (1336575709,), (1336575730,), (1336575775,), (1336575779,), (1336575783,), (1336575934,), (1336575937,), (1336575941,), (1336575945,), (1336575949,), (1336575974,), (1336575976,), (1336575982,), (1336575985,), (1336575988,), (1336576024,), (1336576026,), (1336576028,), (1336576031,), (1336576034,), (1336576292,), (1336576534,), (1336576757,), (1336576822,), (1336576825,), (1336576828,), (1336576831,), (1336576835,), (1336577106,), (1336577109,), (1336577114,), (1336577122,), (1336577165,), (1336577171,), (1336577175,), (1336577179,), (1336577181,), (1336577195,), (1336577200,), (1336577205,), (1336577290,), (1336577292,), (1336577317,), (1336577330,), (1336577362,), (1336577386,), (1336577395,), (1336577398,), (1336577401,), (1336577404,), (1336577428,), (1336577434,), (1336577438,), (1336577440,), (1336577499,), (1336577506,), (1336577510,), (1336577522,), (1336577525,), (1336577526,), (1336577527,), (1336577529,), (1336577573,), (1336577564,), (1336577567,), (1336577570,), (1336578043,), (1336578372,), (1336578402,), (1336578404,), (1336578649,), (1336578737,), (1336578764,), (1336578779,), (1336578900,), (1336578906,), (1336578909,), (1336578916,), (1336578960,), (1336578962,), (1336578966,), (1336578977,), (1336579500,), (1336579670,), (1336579786,), (1336580046,), (1336580083,), (1336580093,), (1336580097,), (1336580138,), (1336580140,), (1336580144,), (1336580148,), (1336580152,), (1336580316,), (1336580319,), (1336580323,), (1336580327,), (1336580331,), (1336580341,), (1336580437,), (1336580440,), (1336580453,), (1336580458,), (1336580465,), (1336580593,), (1336580595,), (1336580599,), (1336580602,), (1336580622,), (1336580628,), (1336580631,), (1336580665,), (1336580667,), (1336580670,), (1336580673,), (1336580700,), (1336580702,), (1336580705,), (1336580708,), (1336580710,), (1336580749,), (1336580751,), (1336580755,), (1336580801,), (1336580787,), (1336580789,), (1336580792,), (1336580794,), (1336580798,), (1336580897,), (1336581039,), (1336581054,), (1336581057,), (1336581098,), (1336581114,), (1336581197,), (1336581201,), (1336581208,), (1336581365,), (1336581442,), (1336581446,), (1336581539,), (1336581542,), (1336581546,), (1336581548,), (1336581589,), (1336581593,), (1336581597,), (1336581601,), (1336581799,), (1336581802,), (1336581807,), (1336581829,), (1336581831,), (1336581835,), (1336581838,), (1336581842,), (1336581868,), (1336581871,), (1336581875,), (1336581879,), (1336581902,), (1336581907,), (1336581911,), (1336581915,), (1336581918,), (1336581941,), (1336581944,), (1336581948,), (1336581952,), (1336581956,), (1336581969,), (1336581972,), (1336581976,), (1336581980,), (1336582000,), (1336582003,), (1336582007,), (1336582030,), (1336582044,), (1336582050,), (1336582125,), (1336582180,), (1336582192,), (1336582196,), (1336582282,), (1336582284,), (1336582290,), (1336582350,), (1336582334,), (1336582337,), (1336582340,), (1336582344,), (1336582347,), (1336582386,), (1336582389,), (1336582411,), (1336582662,), (1336582687,), (1336582689,), (1336582690,), (1336582692,), (1336582726,), (1336582727,), (1336582730,), (1336582796,), (1336582798,), (1336582802,), (1336582804,), (1336582807,), (1336582860,), (1336582862,), (1336582865,), (1336582883,), (1336582887,), (1336582978,), (1336582981,), (1336582984,), (1336582986,), (1336583173,), (1336583174,), (1336583177,), (1336583179,), (1336583246,), (1336583310,), (1336583320,), (1336583323,), (1336583365,), (1336583367,), (1336583370,), (1336583417,), (1336587258,), (1336589568,), (1336589938,), (1336589940,), (1336590127,), (1336590640,), (1336590643,), (1336590904,), (1336591878,), (1336600312,), (1336601578,), (1336601604,), (1336601606,), (1336602810,), (1336603735,), (1336603737,), (1336604274,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10022025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20422277]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] map_info['map_portfolio_photo'] : {20422277: [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312]} final : True mtd_id 4302 list_pids : [1336604274, 1336603737, 1336603735, 1336602810, 1336601606, 1336601604, 1336601578, 1336600312] Looping around the photos to save general results len do output : 1 /20422277Didn'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, '2574692') ('4302', '20422277', '1336604274', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692') ('4302', None, None, None, None, None, None, None, '2574692') ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20422277', 'None', None, None, None, None, '2574692'), ('4302', '20422277', '1336604274', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336603737', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336603735', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336602810', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601606', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601604', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336601578', None, None, None, None, None, '2574692'), ('4302', '20422277', '1336600312', None, None, None, None, None, '2574692')] time used for this insertion : 0.022196531295776367 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1162703037261963 time spend to save output : 0.022429466247558594 total time spend for step 5 : 3.138699769973755 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 (2574692) 2.64user 2.20system 0:12.96elapsed 37%CPU (0avgtext+0avgdata 159932maxresident)k 472inputs+6448outputs (0major+76216minor)pagefaults 0swaps