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 : 3065657 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 (3470333) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3470333) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747161 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3470333'] with mtr_portfolio_ids : ['25747161'] and first list_photo_ids : [] new path : /proc/3065657/ Name: python3 Umask: 0002 State: R (running) Tgid: 3065657 Ngid: 0 Pid: 3065657 PPid: 3065656 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3065657 NSpid: 3065657 NSpgid: 3065285 NSsid: 3065285 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99176 kB VmRSS: 99176 kB RssAnon: 59812 kB RssFile: 39364 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 112 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3065657', 'Ngid': '0', 'Pid': '3065657', 'PPid': '3065656', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3065657', 'NSpid': '3065657', 'NSpgid': '3065285', 'NSsid': '3065285', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99176 kB', 'VmRSS': '99176 kB', 'RssAnon': '59812 kB', 'RssFile': '39364 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '112'} ('datou_batch_current', '3065657', '1106868', '0', '1106868', '865620', '99176', b'', 'marlene', '3470333') 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 (25747161) 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 (3470333 ) ) 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 (25747161) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375528231, 'portfolio_id': 25747161}, {'photo_id': 1375528204, 'portfolio_id': 25747161}, {'photo_id': 1375526498, 'portfolio_id': 25747161}, {'photo_id': 1375526497, 'portfolio_id': 25747161}, {'photo_id': 1375526448, 'portfolio_id': 25747161}, {'photo_id': 1375526424, 'portfolio_id': 25747161}, {'photo_id': 1375526335, 'portfolio_id': 25747161}, {'photo_id': 1375526327, 'portfolio_id': 25747161}, {'photo_id': 1375526306, 'portfolio_id': 25747161}, {'photo_id': 1375526290, 'portfolio_id': 25747161}, {'photo_id': 1375526150, 'portfolio_id': 25747161}, {'photo_id': 1375526148, 'portfolio_id': 25747161}, {'photo_id': 1375526146, 'portfolio_id': 25747161}, {'photo_id': 1375526144, 'portfolio_id': 25747161}, {'photo_id': 1375526143, 'portfolio_id': 25747161}, {'photo_id': 1375526142, 'portfolio_id': 25747161}, {'photo_id': 1375526078, 'portfolio_id': 25747161}, {'photo_id': 1375526077, 'portfolio_id': 25747161}, {'photo_id': 1375526076, 'portfolio_id': 25747161}] map_portfolio_id_photo_id: {25747161: [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076]} ##### 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.019956588745117188 #### 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 Thu Aug 7 06:18:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25747161) 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 : 25747161 get user id for portfolio 25747161 get sub ptf for main ptf 25747161, type 3726 and hashtags ['Carton_gris', 'Carton_brun', 'mal_croppe', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'plastique', 'autre_refus', 'flou', 'kraft', 'metal', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25747161 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','mal_croppe','environnement','papier','Teint_Dans_La_Masse','plastique','autre_refus','flou','kraft','metal','cartonnette')) 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`=25747161 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','mal_croppe','environnement','papier','Teint_Dans_La_Masse','plastique','autre_refus','flou','kraft','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25747161, 'sub_port_id': 25747203, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353248, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'cartonnette': {'main_port_id': 25747161, 'sub_port_id': 25747204, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353249, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25747161, 'sub_port_id': 25747205, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353250, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'kraft': {'main_port_id': 25747161, 'sub_port_id': 25747206, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353251, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'flou': {'main_port_id': 25747161, 'sub_port_id': 25747207, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353252, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'mal_croppe': {'main_port_id': 25747161, 'sub_port_id': 25747208, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353253, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'environnement': {'main_port_id': 25747161, 'sub_port_id': 25747209, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353254, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'papier': {'main_port_id': 25747161, 'sub_port_id': 25747210, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353255, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'Carton_brun': {'main_port_id': 25747161, 'sub_port_id': 25747211, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353256, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'autre_refus': {'main_port_id': 25747161, 'sub_port_id': 25747212, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353257, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'metal': {'main_port_id': 25747161, 'sub_port_id': 25747213, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353258, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}, 'Carton_gris': {'main_port_id': 25747161, 'sub_port_id': 25747214, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353259, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25747203 , 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=25747161 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 (25747203) result : ((1375527089,), (1375527711,), (1375527713,), (1375528277,), (1375528278,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747204 , 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=25747161 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 (25747204) result : ((1375527701,), (1375527703,), (1375528138,), (1375528139,), (1375528140,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747205 , 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=25747161 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 (25747205) result : ((1375528132,), (1375528133,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747206 , 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=25747161 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 (25747206) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747207 , 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=25747161 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 (25747207) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747208 , 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=25747161 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 (25747208) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747209 , 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=25747161 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 (25747209) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747210 , 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=25747161 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 (25747210) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747211 , 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=25747161 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 (25747211) result : ((1375528141,), (1375528276,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747212 , 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=25747161 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 (25747212) result : ((1375526514,), (1375528275,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747213 , 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=25747161 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 (25747213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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 25747214 , 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=25747161 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 (25747214) result : ((1375528134,), (1375528135,), (1375528136,), (1375528137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25747161) result : ((1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,)) 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`=25747161 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','mal_croppe','environnement','papier','Teint_Dans_La_Masse','plastique','autre_refus','flou','kraft','metal','cartonnette')) 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`=25747161 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','mal_croppe','environnement','papier','Teint_Dans_La_Masse','plastique','autre_refus','flou','kraft','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25747161, 'sub_port_id': 25747215, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353260, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'cartonnette': {'main_port_id': 25747161, 'sub_port_id': 25747216, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353261, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 25747161, 'sub_port_id': 25747217, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353262, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'kraft': {'main_port_id': 25747161, 'sub_port_id': 25747218, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353263, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'flou': {'main_port_id': 25747161, 'sub_port_id': 25747219, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353264, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'mal_croppe': {'main_port_id': 25747161, 'sub_port_id': 25747220, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353265, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'environnement': {'main_port_id': 25747161, 'sub_port_id': 25747221, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353266, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'papier': {'main_port_id': 25747161, 'sub_port_id': 25747222, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353267, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'Carton_brun': {'main_port_id': 25747161, 'sub_port_id': 25747223, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353268, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'autre_refus': {'main_port_id': 25747161, 'sub_port_id': 25747224, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353269, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'metal': {'main_port_id': 25747161, 'sub_port_id': 25747225, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353270, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 19), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}, 'Carton_gris': {'main_port_id': 25747161, 'sub_port_id': 25747226, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17353271, 'last_updated_at': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_desc': datetime.datetime(2025, 8, 6, 22, 32, 57), 'last_updated_at_asc': datetime.datetime(2025, 8, 6, 22, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25747226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25747214 lien utilise dans velours : https://www.fotonower.com/velours/25747215,25747216,25747217,25747218,25747219,25747220,25747221,25747222,25747223,25747224,25747225,25747226?tags=plastique,cartonnette,Teint_Dans_La_Masse,kraft,flou,mal_croppe,environnement,papier,Carton_brun,autre_refus,metal,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25747161]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] map_info['map_portfolio_photo'] : {25747161: [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076]} final : False mtd_id 4302 list_pids : [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] Looping around the photos to save general results len do output : 1 /25747161. 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, '3470333') ('4302', '25747161', '1375528231', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '25747161', "{'plastique': 25747203, 'cartonnette': 25747204, 'Teint_Dans_La_Masse': 25747205, 'kraft': 25747206, 'flou': 25747207, 'mal_croppe': 25747208, 'environnement': 25747209, 'papier': 25747210, 'Carton_brun': 25747211, 'autre_refus': 25747212, 'metal': 25747213, 'Carton_gris': 25747214}", None, None, None, None, '3470333'), ('4302', '25747161', '1375528231', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333')] time used for this insertion : 0.13931512832641602 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.51898193359375 time spend to save output : 0.13961315155029297 total time spend for step 1 : 1.658595085144043 step2:final Thu Aug 7 06:18:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25747161) 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 25747161 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375526078,1375526077,1375526076,1375526150,1375526148,1375526146,1375526144,1375526143,1375526142,1375526335,1375526327,1375526306,1375526290,1375526448,1375526498,1375526424,1375526497,1375528204,1375528231); 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([25747161]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} new output for save of step final : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] map_info['map_portfolio_photo'] : {25747161: [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076]} final : False mtd_id 4302 list_pids : [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] Looping around the photos to save general results len do output : 19 /1375528231.Didn't retrieve data . /1375528204.Didn't retrieve data . /1375526498.Didn't retrieve data . /1375526497.Didn't retrieve data . /1375526448.Didn't retrieve data . /1375526424.Didn't retrieve data . /1375526335.Didn't retrieve data . /1375526327.Didn't retrieve data . /1375526306.Didn't retrieve data . /1375526290.Didn't retrieve data . /1375526150.Didn't retrieve data . /1375526148.Didn't retrieve data . /1375526146.Didn't retrieve data . /1375526144.Didn't retrieve data . /1375526143.Didn't retrieve data . /1375526142.Didn't retrieve data . /1375526078.Didn't retrieve data . /1375526077.Didn't retrieve data . /1375526076.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, '3470333') ('4302', '25747161', '1375528231', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '25747161', '1375528231', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375528204', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526498', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526497', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526448', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526424', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526335', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526327', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526306', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526290', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526150', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526148', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526146', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526144', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526143', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526142', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526078', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526077', '0.05169728346920467', None, None, None, None, '3470333'), ('4302', '25747161', '1375526076', '0.05169728346920467', None, None, None, None, '3470333')] time used for this insertion : 0.1728503704071045 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.16145539283752441 time spend to save output : 0.17371273040771484 total time spend for step 2 : 0.33516812324523926 step3:velours_tree Thu Aug 7 06:18:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25747161: [{'plastique': 25747203, 'cartonnette': 25747204, 'Teint_Dans_La_Masse': 25747205, 'kraft': 25747206, 'flou': 25747207, 'mal_croppe': 25747208, 'environnement': 25747209, 'papier': 25747210, 'Carton_brun': 25747211, 'autre_refus': 25747212, 'metal': 25747213, 'Carton_gris': 25747214}]} input_args_next_step : {25747161: ()} output_args : {25747161: [{'plastique': 25747203, 'cartonnette': 25747204, 'Teint_Dans_La_Masse': 25747205, 'kraft': 25747206, 'flou': 25747207, 'mal_croppe': 25747208, 'environnement': 25747209, 'papier': 25747210, 'Carton_brun': 25747211, 'autre_refus': 25747212, 'metal': 25747213, 'Carton_gris': 25747214}]} args : 25747161 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 : ({'plastique': 25747203, 'cartonnette': 25747204, 'Teint_Dans_La_Masse': 25747205, 'kraft': 25747206, 'flou': 25747207, 'mal_croppe': 25747208, 'environnement': 25747209, 'papier': 25747210, 'Carton_brun': 25747211, 'autre_refus': 25747212, 'metal': 25747213, 'Carton_gris': 25747214},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25747161) 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([25747161]) 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.2718026638031006 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.27185630798339844 step4:send_mail_cod Thu Aug 7 06:18:30 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 : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} input_args_next_step : {1375528231: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375528231 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375528204 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526498 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526497 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526448 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526424 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526335 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526327 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526306 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526290 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526150 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526148 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526146 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526144 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526143 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526142 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526078 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526077 depend.output_id : 0 input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ()} output_args : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',)} args : 1375526076 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 : {25747161: [{'plastique': 25747203, 'cartonnette': 25747204, 'Teint_Dans_La_Masse': 25747205, 'kraft': 25747206, 'flou': 25747207, 'mal_croppe': 25747208, 'environnement': 25747209, 'papier': 25747210, 'Carton_brun': 25747211, 'autre_refus': 25747212, 'metal': 25747213, 'Carton_gris': 25747214}]} input_args_next_step : {1375528231: ('0.05169728346920467',), 1375528204: ('0.05169728346920467',), 1375526498: ('0.05169728346920467',), 1375526497: ('0.05169728346920467',), 1375526448: ('0.05169728346920467',), 1375526424: ('0.05169728346920467',), 1375526335: ('0.05169728346920467',), 1375526327: ('0.05169728346920467',), 1375526306: ('0.05169728346920467',), 1375526290: ('0.05169728346920467',), 1375526150: ('0.05169728346920467',), 1375526148: ('0.05169728346920467',), 1375526146: ('0.05169728346920467',), 1375526144: ('0.05169728346920467',), 1375526143: ('0.05169728346920467',), 1375526142: ('0.05169728346920467',), 1375526078: ('0.05169728346920467',), 1375526077: ('0.05169728346920467',), 1375526076: ('0.05169728346920467',), 25747161: ()} output_args : {25747161: [{'plastique': 25747203, 'cartonnette': 25747204, 'Teint_Dans_La_Masse': 25747205, 'kraft': 25747206, 'flou': 25747207, 'mal_croppe': 25747208, 'environnement': 25747209, 'papier': 25747210, 'Carton_brun': 25747211, 'autre_refus': 25747212, 'metal': 25747213, 'Carton_gris': 25747214}]} args : 25747161 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 :20, first value : ('0.05169728346920467',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25747161) 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 (1375528231,1375528204,1375526498,1375526497,1375526448,1375526424,1375526335,1375526327,1375526306,1375526290,1375526150,1375526148,1375526146,1375526144,1375526143,1375526142,1375526078,1375526077,1375526076) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375526076 begin to download photo : 1375526143 begin to download photo : 1375526150 begin to download photo : 1375526335 begin to download photo : 1375526498 download finish for photo 1375526150 begin to download photo : 1375526290 download finish for photo 1375526335 begin to download photo : 1375526424 download finish for photo 1375526076 begin to download photo : 1375526077 download finish for photo 1375526498 begin to download photo : 1375528204 download finish for photo 1375526143 begin to download photo : 1375526144 download finish for photo 1375526290 begin to download photo : 1375526306 download finish for photo 1375526077 begin to download photo : 1375526078 download finish for photo 1375526424 begin to download photo : 1375526448 download finish for photo 1375526144 begin to download photo : 1375526146 download finish for photo 1375526306 begin to download photo : 1375526327 download finish for photo 1375526448 begin to download photo : 1375526497 download finish for photo 1375528204 begin to download photo : 1375528231 download finish for photo 1375526078 begin to download photo : 1375526142 download finish for photo 1375526146 begin to download photo : 1375526148 download finish for photo 1375526327 download finish for photo 1375526497 download finish for photo 1375528231 download finish for photo 1375526142 download finish for photo 1375526148 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 : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P25747161_07-08-2025_06_18_30.pdf 25747203 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=25747203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375527089: '1754511806_3475497_1375526448_fbb3e0beddc55d5b136cb3cdb36cd3a4_rle_crop_3905093395_0.png', 1375527711: '1754511926_3478655_1375526497_9d23c3069dbc09e2a7fa0317bce5435b_rle_crop_3905095682_0.png', 1375527713: '1754511926_3478655_1375526424_bc02ce30d01ca1241ada07506300579c_rle_crop_3905095964_0.png', 1375528277: '1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105518_0.png', 1375528278: '1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105512_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/2f7ce621b17c5a8b0717d574d4274608_69025586.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/1a0577193809082e97474b203be98288_60204520.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/1a0577193809082e97474b203be98288_95902783.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/0d205eb50125f1541ae22ef6e6dcdb6b_70542037.png change filename to text .imagette257472031754540310/ imagette257472031754540310/1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105512_0.png.png imagette257472031754540310/1754511926_3478655_1375526497_9d23c3069dbc09e2a7fa0317bce5435b_rle_crop_3905095682_0.png.png imagette257472031754540310/1754511926_3478655_1375526424_bc02ce30d01ca1241ada07506300579c_rle_crop_3905095964_0.png.png imagette257472031754540310/1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105518_0.png.png imagette257472031754540310/1754511806_3475497_1375526448_fbb3e0beddc55d5b136cb3cdb36cd3a4_rle_crop_3905093395_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/c4c884403fe9bb7016c8ad270c8b92cc_47977501.png imagette257472031754540310 25747204 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=25747204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375527701: '1754511926_3478655_1375526497_9d23c3069dbc09e2a7fa0317bce5435b_rle_crop_3905095679_0.png', 1375527703: '1754511926_3478655_1375526424_bc02ce30d01ca1241ada07506300579c_rle_crop_3905095961_0.png', 1375528138: '1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097148_0.png', 1375528139: '1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097153_0.png', 1375528140: '1754512048_3483702_1375526142_fd287c78aa805ab112bcf94a8d0578d3_rle_crop_3905097186_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/c09a0319b83640712d4471124a054280_72688187.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/c09a0319b83640712d4471124a054280_12909833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/4c2548e0a7c271f918a3e77310518332_38709085.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/8ebb45622227158be7d33f8628b39d99_85588023.png change filename to text .imagette257472041754540311/ imagette257472041754540311/1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097148_0.png.png imagette257472041754540311/1754511926_3478655_1375526497_9d23c3069dbc09e2a7fa0317bce5435b_rle_crop_3905095679_0.png.png imagette257472041754540311/1754512048_3483702_1375526142_fd287c78aa805ab112bcf94a8d0578d3_rle_crop_3905097186_0.png.png imagette257472041754540311/1754511926_3478655_1375526424_bc02ce30d01ca1241ada07506300579c_rle_crop_3905095961_0.png.png imagette257472041754540311/1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097153_0.png.png imagette257472061754540311/ imagette257472071754540311/ imagette257472081754540311/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/b6bfa2fc8579e6ae1a8bcd4d7a5ccd95_97401666.png imagette257472041754540311 25747206 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=25747206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257472061754540311 25747207 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=25747207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257472071754540311 25747208 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=25747208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257472081754540311 25747212 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=25747212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375526514: '1754511685_3470425_1375526076_999f5a7f90b346113fc2f60af7521e7e_rle_crop_3905088900_0.png', 1375528275: '1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105511_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/6bfcd7dc0bd685235b69d4f57c15722d_41217052.png change filename to text .imagette257472121754540311/ imagette257472121754540311/1754511685_3470425_1375526076_999f5a7f90b346113fc2f60af7521e7e_rle_crop_3905088900_0.png.png imagette257472121754540311/1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105511_0.png.png imagette257472131754540311/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/03f02dec40201db80204e98e7eb7d93c_16888821.png imagette257472121754540311 25747213 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=25747213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257472131754540311 25747205 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=25747205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375528132: '1754512048_3483702_1375526144_8b98055c1bb42a9d995e8f4e85219b75_rle_crop_3905097163_0.png', 1375528133: '1754512048_3483702_1375526143_f89841550705eda13f5f04b69a36a7fe_rle_crop_3905097173_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/21c7b9a049c935b314c2b238e9022840_6937533.png change filename to text .imagette257472051754540311/ imagette257472051754540311/1754512048_3483702_1375526144_8b98055c1bb42a9d995e8f4e85219b75_rle_crop_3905097163_0.png.png imagette257472051754540311/1754512048_3483702_1375526143_f89841550705eda13f5f04b69a36a7fe_rle_crop_3905097173_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/93329691e7a6f76ebdd9f08e44452398_45609313.png imagette257472051754540311 25747211 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=25747211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375528141: '1754512048_3483702_1375526148_bd310ee1b96bff49160e9a9546b55679_rle_crop_3905097130_0.png', 1375528276: '1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105515_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/43fefd73dce6d3d37b4a51195432ccf8_65430540.png change filename to text .imagette257472111754540311/ imagette257472111754540311/1754512048_3483702_1375526148_bd310ee1b96bff49160e9a9546b55679_rle_crop_3905097130_0.png.png imagette257472111754540311/1754512345_3497184_1375528204_10656f8c8ca8d0ca34331ba1481709a9_rle_crop_3905105515_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/426b595aaf96b439981b85aeaf310cc9_76999892.png imagette257472111754540311 25747214 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=25747214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375528134: '1754512048_3483702_1375526335_8925219699981886873de04fccd4210e_rle_crop_3905097117_0.png', 1375528135: '1754512048_3483702_1375526335_8925219699981886873de04fccd4210e_rle_crop_3905097114_0.png', 1375528136: '1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097142_0.png', 1375528137: '1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097143_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/746679ad650390c01c1d4b0e871ef7c1_27898734.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/5626d9f8f1fa9f4076b4a1a987a849d7_50032599.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/571399a865998ca61eeed8f3ba3f7b39_66810023.png change filename to text .imagette257472141754540312/ imagette257472141754540312/1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097143_0.png.png imagette257472141754540312/1754512048_3483702_1375526146_2632c68396ecc7bafdb3e54bd2ba392c_rle_crop_3905097142_0.png.png imagette257472141754540312/1754512048_3483702_1375526335_8925219699981886873de04fccd4210e_rle_crop_3905097114_0.png.png imagette257472141754540312/1754512048_3483702_1375526335_8925219699981886873de04fccd4210e_rle_crop_3905097117_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/181b6f48090a8edb21d7beea61a268e6_56865033.png imagette257472141754540312 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25747161 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25747215,25747216,25747217,25747218,25747219,25747220,25747221,25747222,25747223,25747224,25747225,25747226?tags=plastique,cartonnette,Teint_Dans_La_Masse,kraft,flou,mal_croppe,environnement,papier,Carton_brun,autre_refus,metal,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1375528231] : ('0.05169728346920467',) no score found for photo 1375528231 We are sending mail with results at report@fotonower.com args[1375528204] : ('0.05169728346920467',) no score found for photo 1375528204 We are sending mail with results at report@fotonower.com args[1375526498] : ('0.05169728346920467',) no score found for photo 1375526498 We are sending mail with results at report@fotonower.com args[1375526497] : ('0.05169728346920467',) no score found for photo 1375526497 We are sending mail with results at report@fotonower.com args[1375526448] : ('0.05169728346920467',) no score found for photo 1375526448 We are sending mail with results at report@fotonower.com args[1375526424] : ('0.05169728346920467',) no score found for photo 1375526424 We are sending mail with results at report@fotonower.com args[1375526335] : ('0.05169728346920467',) no score found for photo 1375526335 We are sending mail with results at report@fotonower.com args[1375526327] : ('0.05169728346920467',) no score found for photo 1375526327 We are sending mail with results at report@fotonower.com args[1375526306] : ('0.05169728346920467',) no score found for photo 1375526306 We are sending mail with results at report@fotonower.com args[1375526290] : ('0.05169728346920467',) no score found for photo 1375526290 We are sending mail with results at report@fotonower.com args[1375526150] : ('0.05169728346920467',) no score found for photo 1375526150 We are sending mail with results at report@fotonower.com args[1375526148] : ('0.05169728346920467',) no score found for photo 1375526148 We are sending mail with results at report@fotonower.com args[1375526146] : ('0.05169728346920467',) no score found for photo 1375526146 We are sending mail with results at report@fotonower.com args[1375526144] : ('0.05169728346920467',) no score found for photo 1375526144 We are sending mail with results at report@fotonower.com args[1375526143] : ('0.05169728346920467',) no score found for photo 1375526143 We are sending mail with results at report@fotonower.com args[1375526142] : ('0.05169728346920467',) no score found for photo 1375526142 We are sending mail with results at report@fotonower.com args[1375526078] : ('0.05169728346920467',) no score found for photo 1375526078 We are sending mail with results at report@fotonower.com args[1375526077] : ('0.05169728346920467',) no score found for photo 1375526077 We are sending mail with results at report@fotonower.com args[1375526076] : ('0.05169728346920467',) no score found for photo 1375526076 We are sending mail with results at report@fotonower.com refus_total : 0.05169728346920467 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=25747161 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_P25747161_07-08-2025_06_18_30.pdf results_Auto_P25747161_07-08-2025_06_18_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747161_07-08-2025_06_18_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25747161','results_Auto_P25747161_07-08-2025_06_18_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747161_07-08-2025_06_18_30.pdf','pdf','','0.21','0.05169728346920467') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25747161]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] map_info['map_portfolio_photo'] : {25747161: [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076]} final : False mtd_id 4302 list_pids : [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] 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, '3470333') ('4302', '25747161', '1375528231', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25747161', '1375528231', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333')] time used for this insertion : 0.39121246337890625 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8706061840057373 time spend to save output : 0.39153504371643066 total time spend for step 4 : 4.262141227722168 step5:split_time_score Thu Aug 7 06:18: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 : ['25747161'] 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 : [('25747161',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25747161) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375526150: {'path': 'temp/1754540310_3065657_1375526150_b3eb8c82c0504cc149622ad0c818466d.jpg', 'extension': 'jpg'}, 1375526290: {'path': 'temp/1754540310_3065657_1375526290_b6c732c2a2da1927e63cd77173f8ab0e.jpg', 'extension': 'jpg'}, 1375526306: {'path': 'temp/1754540310_3065657_1375526306_8c34e75e9f86568898aed835ab2f405a.jpg', 'extension': 'jpg'}, 1375526327: {'path': 'temp/1754540310_3065657_1375526327_2a3b8486e0ff3cb0ae805184728e35b9.jpg', 'extension': 'jpg'}, 1375526335: {'path': 'temp/1754540310_3065657_1375526335_8925219699981886873de04fccd4210e.jpg', 'extension': 'jpg'}, 1375526424: {'path': 'temp/1754540310_3065657_1375526424_bc02ce30d01ca1241ada07506300579c.jpg', 'extension': 'jpg'}, 1375526448: {'path': 'temp/1754540310_3065657_1375526448_fbb3e0beddc55d5b136cb3cdb36cd3a4.jpg', 'extension': 'jpg'}, 1375526497: {'path': 'temp/1754540310_3065657_1375526497_9d23c3069dbc09e2a7fa0317bce5435b.jpg', 'extension': 'jpg'}, 1375526498: {'path': 'temp/1754540310_3065657_1375526498_13f8a722c8b3dee478f9f79e1b938ed4.jpg', 'extension': 'jpg'}, 1375528204: {'path': 'temp/1754540310_3065657_1375528204_10656f8c8ca8d0ca34331ba1481709a9.jpg', 'extension': 'jpg'}, 1375528231: {'path': 'temp/1754540310_3065657_1375528231_c5d66415b1fbc0aebce50b10344cfc28.jpg', 'extension': 'jpg'}, 1375526076: {'path': 'temp/1754540310_3065657_1375526076_999f5a7f90b346113fc2f60af7521e7e.jpg', 'extension': 'jpg'}, 1375526077: {'path': 'temp/1754540310_3065657_1375526077_f69f33c4f2185149d2c0beca75ccc31b.jpg', 'extension': 'jpg'}, 1375526078: {'path': 'temp/1754540310_3065657_1375526078_4a12abc5536dba27f419f12958c37b2f.jpg', 'extension': 'jpg'}, 1375526142: {'path': 'temp/1754540310_3065657_1375526142_fd287c78aa805ab112bcf94a8d0578d3.jpg', 'extension': 'jpg'}, 1375526143: {'path': 'temp/1754540310_3065657_1375526143_f89841550705eda13f5f04b69a36a7fe.jpg', 'extension': 'jpg'}, 1375526144: {'path': 'temp/1754540310_3065657_1375526144_8b98055c1bb42a9d995e8f4e85219b75.jpg', 'extension': 'jpg'}, 1375526146: {'path': 'temp/1754540310_3065657_1375526146_2632c68396ecc7bafdb3e54bd2ba392c.jpg', 'extension': 'jpg'}, 1375526148: {'path': 'temp/1754540310_3065657_1375526148_bd310ee1b96bff49160e9a9546b55679.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 = 25747161; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25747161 group by h (('22', 19),) 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=25747161 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 (25747161) 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 (25747161) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06082025 25747161 Nombre de photos uploadées : 19 / 23040 (0%) 06082025 25747161 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 06082025 25747161 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1375526078, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/4a12abc5536dba27f419f12958c37b2f.jpg', 'username': None, 'uploaded_at': 1754511427, 'text': 'image_06082025_22_15_44_10133.jpg'}, {'photo_id': 1375526077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/f69f33c4f2185149d2c0beca75ccc31b.jpg', 'username': None, 'uploaded_at': 1754511427, 'text': 'image_06082025_22_16_33_010146m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1375526076, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/999f5a7f90b346113fc2f60af7521e7e.jpg', 'username': None, 'uploaded_at': 1754511427, 'text': 'image_06082025_22_16_43_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1375526150, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/6/b3eb8c82c0504cc149622ad0c818466d.jpg', 'username': None, 'uploaded_at': 1754511488, 'text': 'image_06082025_22_16_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002023935317993164 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25747161, '2025-08-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2070025,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21275043487548828 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= 2070025 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25707608, 'dashboard_result_id': 13707033, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707608_07-08-2025_05_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707616, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25707619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707621, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25707669, 'dashboard_result_id': 13707034, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707669_07-08-2025_05_34_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25707670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707681, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25707918, 'dashboard_result_id': 13707035, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707918_07-08-2025_05_34_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25707934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707935, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25708197, 'dashboard_result_id': 13707036, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708197_07-08-2025_05_35_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708209, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25708353, 'dashboard_result_id': 13707037, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708353_07-08-2025_05_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25708356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708367, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25708783, 'dashboard_result_id': 13707038, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708783_07-08-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25708784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708795, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25708897, 'dashboard_result_id': 13707039, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708897_07-08-2025_05_37_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708910, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25709121, 'dashboard_result_id': 13707040, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709121_07-08-2025_05_37_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709136, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25709573, 'dashboard_result_id': 13707041, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709573_07-08-2025_05_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709610, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709621, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25709782, 'dashboard_result_id': 13707042, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709782_07-08-2025_05_38_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709800, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25710076, 'dashboard_result_id': 13707043, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710076_07-08-2025_05_39_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710096, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25710464, 'dashboard_result_id': 13707044, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710464_07-08-2025_05_39_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710488, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25710893, 'dashboard_result_id': 13707045, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710893_07-08-2025_05_40_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710910, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25711330, 'dashboard_result_id': 13707046, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711330_07-08-2025_05_41_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25711336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25711337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25711338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25711339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25711340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25711341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25711342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25711343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25711344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25711345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25711346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25711347, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25711683, 'dashboard_result_id': 13707047, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711683_07-08-2025_05_42_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25711718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25711719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25711720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25711721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25711722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25711723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25711724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25711725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25711726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25711727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25711728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25711729, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25712215, 'dashboard_result_id': 13707048, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712215_07-08-2025_05_42_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25712224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25712225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25712226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25712227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25712228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25712229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25712230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25712231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25712232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25712233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25712234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25712235, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25712594, 'dashboard_result_id': 13707049, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712594_07-08-2025_05_43_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25712645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25712646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25712647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25712648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25712649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25712650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25712651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25712652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25712653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25712654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25712655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25712656, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25713396, 'dashboard_result_id': 13707050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25713396_07-08-2025_05_44_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25713439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25713440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25713441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25713442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25713443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25713444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25713445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25713446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25713447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25713448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25713449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25713450, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25714071, 'dashboard_result_id': 13707051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714071_07-08-2025_05_45_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25714115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25714116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25714117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25714118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25714119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25714120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25714121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25714122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25714123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25714124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25714125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25714126, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25714815, 'dashboard_result_id': 13707052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714815_07-08-2025_05_45_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25714849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25714850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25714851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25714852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25714853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25714854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25714855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25714856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25714857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25714858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25714859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25714860, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25715250, 'dashboard_result_id': 13707053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715250_07-08-2025_05_46_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25715310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25715311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25715312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25715313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25715314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25715315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25715316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25715317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25715318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25715319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25715320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25715321, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25715907, 'dashboard_result_id': 13707054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715907_07-08-2025_05_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25715955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25715956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25715957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25715958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25715959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25715960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25715961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25715962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25715963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25715964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25715965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25715966, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25716591, 'dashboard_result_id': 13707055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25716591_07-08-2025_05_48_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25716609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25716610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25716611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25716612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25716613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25716614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25716615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25716616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25716617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25716618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25716619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25716620, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25717281, 'dashboard_result_id': 13707056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25717281_07-08-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25717321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25717322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25717323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25717324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25717325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25717326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25717327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25717328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25717329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25717330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25717331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25717332, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25719449, 'dashboard_result_id': 13707057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719449_07-08-2025_05_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25719458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25719459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25719460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25719461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25719462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25719463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25719464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25719465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25719466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25719467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25719468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25719469, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25719870, 'dashboard_result_id': 13707058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719870_07-08-2025_05_50_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25719888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25719889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25719890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25719891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25719892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25719893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25719894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25719895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25719896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25719897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25719898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25719899, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25720313, 'dashboard_result_id': 13707059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25720313_07-08-2025_05_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25720326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25720327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25720328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25720329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25720330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25720331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25720332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25720333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25720334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25720335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25720336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25720337, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25721063, 'dashboard_result_id': 13707060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721063_07-08-2025_05_51_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25721113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25721114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25721115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25721116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25721117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25721118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25721119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25721120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25721121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25721122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25721123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25721124, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25721415, 'dashboard_result_id': 13707061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721415_07-08-2025_05_52_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25721458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25721460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25721461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25721462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25721463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25721464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25721465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25721466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25721467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25721468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25721469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25721470, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25722113, 'dashboard_result_id': 13707062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722113_07-08-2025_05_52_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25722158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25722159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25722160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25722161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25722162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25722163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25722164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25722165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25722166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25722167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25722168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25722169, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25722723, 'dashboard_result_id': 13707063, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722723_07-08-2025_05_53_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25722764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25722765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25722766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25722767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25722768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25722769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25722770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25722771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25722772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25722773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25722774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25722775, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25723446, 'dashboard_result_id': 13707064, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25723446_07-08-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25723459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25723460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25723461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25723462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25723463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25723464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25723465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25723466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25723467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25723468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25723469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25723470, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25724021, 'dashboard_result_id': 13707065, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724021_07-08-2025_05_54_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25724032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25724033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25724034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25724035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25724036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25724037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25724038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25724039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25724040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25724041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25724042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25724043, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25724701, 'dashboard_result_id': 13707066, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724701_07-08-2025_05_55_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25724735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25724736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25724737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25724738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25724739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25724740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25724741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25724742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25724743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25724744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25724745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25724746, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25725214, 'dashboard_result_id': 13707067, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25725214_07-08-2025_05_56_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25725278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25725279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25725280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25725281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25725282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25725283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25725284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25725286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25725287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25725289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25725290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25725291, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25727740, 'dashboard_result_id': 13707068, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25727740_07-08-2025_05_57_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25727764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25727765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25727766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25727767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25727768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25727769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25727770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25727771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25727772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25727773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25727774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25727775, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25728223, 'dashboard_result_id': 13707069, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728223_07-08-2025_05_57_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25728235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25728236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25728237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25728238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25728239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25728240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25728241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25728243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25728244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25728245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25728246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25728247, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25728610, 'dashboard_result_id': 13707070, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728610_07-08-2025_05_58_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25728674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25728675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25728676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25728677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25728678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25728679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25728680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25728681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25728682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25728683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25728684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25728685, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25729384, 'dashboard_result_id': 13707071, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729384_07-08-2025_05_59_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25729421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25729422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25729423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25729424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25729425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25729426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25729427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25729428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25729429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25729430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25729431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25729432, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25729859, 'dashboard_result_id': 13707072, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729859_07-08-2025_05_59_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25729886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25729887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25729888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25729889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25729890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25729891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25729892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25729894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25729895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25729896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25729897, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25730377, 'dashboard_result_id': 13707073, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730377_07-08-2025_06_00_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25730421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25730422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25730423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25730424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25730425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25730426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25730427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25730428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25730429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25730430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25730431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25730432, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25730918, 'dashboard_result_id': 13707074, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730918_07-08-2025_06_01_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25730962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25730963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25730964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25730965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25730966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25730967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25730968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25730969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25730970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25730971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25730972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25730973, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25731584, 'dashboard_result_id': 13707075, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25731584_07-08-2025_06_02_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25731612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25731613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25731614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25731615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25731616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25731617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25731618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25731619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25731620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25731621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25731622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25731623, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25732140, 'dashboard_result_id': 13707076, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732140_07-08-2025_06_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25732173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25732174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25732175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25732176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25732177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25732178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25732179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25732180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25732181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25732182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25732183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25732184, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25732766, 'dashboard_result_id': 13707077, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732766_07-08-2025_06_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25732787, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25732788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25732789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25732790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25732791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25732792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25732793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25732794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25732795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25732796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25732797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25732798, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25733200, 'dashboard_result_id': 13707078, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733200_07-08-2025_06_04_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25733224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25733225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25733226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25733227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25733228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25733229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25733230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25733231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25733232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25733233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25733234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25733235, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25733925, 'dashboard_result_id': 13707079, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733925_07-08-2025_06_05_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25733968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25733969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25733970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25733971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25733972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25733973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25733974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25733975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25733976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25733977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25733978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25733979, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25734471, 'dashboard_result_id': 13707080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25734471_07-08-2025_06_05_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25734523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25734524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25734525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25734526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25734527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25734528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25734529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25734530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25734531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25734532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25734533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25734534, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25735073, 'dashboard_result_id': 13707081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735073_07-08-2025_06_06_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25735102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25735103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25735104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25735105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25735106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25735107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25735108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25735109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25735110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25735111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25735113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25735114, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25735733, 'dashboard_result_id': 13707082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735733_07-08-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25735761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25735762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25735763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25735764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25735765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25735766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25735767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25735768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25735769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25735770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25735771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25735772, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25736330, 'dashboard_result_id': 13707083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25736330_07-08-2025_06_07_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25736339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25736340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25736341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25736342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25736343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25736344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25736345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25736346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25736347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25736348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25736349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25736350, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25737966, 'dashboard_result_id': 13707084, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25737966_07-08-2025_06_08_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25737980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25737981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25737982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25737983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25737984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25737985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25737986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25737987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25737988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25737989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25737990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25737991, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25738301, 'dashboard_result_id': 13707085, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738301_07-08-2025_06_08_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25738312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25738313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25738314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25738315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25738316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25738317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25738318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25738319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25738320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25738321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25738322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25738323, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25738653, 'dashboard_result_id': 13707086, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738653_07-08-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25738683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25738684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25738685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25738686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25738687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25738688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25738689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25738690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25738691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25738692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25738693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25738694, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25739141, 'dashboard_result_id': 13707087, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739141_07-08-2025_06_10_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25739185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25739186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25739187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25739188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25739189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25739190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25739191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25739192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25739193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25739194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25739195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25739196, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25739715, 'dashboard_result_id': 13707088, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739715_07-08-2025_06_10_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25739772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25739773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25739774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25739775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25739776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25739777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25739778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25739779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25739780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25739781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25739782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25739783, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25740376, 'dashboard_result_id': 13707089, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740376_07-08-2025_06_11_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25740394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25740395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25740396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25740397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25740398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25740399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25740402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25740403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25740404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25740405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25740406, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25740885, 'dashboard_result_id': 13707090, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740885_07-08-2025_06_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25740899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25740900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25740901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25740902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25740903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25740904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25740905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25740906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25740907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25740909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25740910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25740911, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25741391, 'dashboard_result_id': 13707091, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741391_07-08-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25741418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25741419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25741420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25741421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25741422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25741423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25741424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25741425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25741426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25741427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25741428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25741429, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25741883, 'dashboard_result_id': 13707092, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741883_07-08-2025_06_13_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25741894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25741895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25741897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25741898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25741899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25741900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25741902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25741903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25741904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25741906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25741907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25741908, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25742685, 'dashboard_result_id': 13707093, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25742685_07-08-2025_06_14_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25742733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25742734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25742736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25742737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25742738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25742740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25742741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25742742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25742744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25742745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25742746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25742747, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25743222, 'dashboard_result_id': 13707094, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25743222_07-08-2025_06_14_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25743249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25743250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25743251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25743252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25743253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25743254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25743255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25743256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25743257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25743258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25743259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25743260, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25744616, 'dashboard_result_id': 13707095, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744616_07-08-2025_06_15_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25744627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25744628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25744629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25744630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25744631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25744632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25744633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25744634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25744635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25744636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25744637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25744638, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25744830, 'dashboard_result_id': 13707096, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744830_07-08-2025_06_16_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25744849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25744850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25744851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25744852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25744853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25744854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25744855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25744856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25744857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25744858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25744859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25744860, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25745264, 'dashboard_result_id': 13707097, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745264_07-08-2025_06_16_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25745310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25745311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25745312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25745313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25745314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25745315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25745316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25745317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25745318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25745319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25745320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25745321, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25745880, 'dashboard_result_id': 13707098, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745880_07-08-2025_06_17_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25745922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25745923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25745924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25745925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25745926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25745927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25745928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25745929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25745930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25745931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25745932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25745933, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25746522, 'dashboard_result_id': 13707099, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25746522_07-08-2025_06_18_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25746539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25746540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25746541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25746542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25746543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25746544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25746545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25746546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25746547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25746548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25746549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25746550, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25747161, 'dashboard_result_id': 13707100, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747161_06-08-2025_22_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25747203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25747204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25747205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25747206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25747207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25747208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25747209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25747210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25747211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25747212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25747214, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25747935, 'dashboard_result_id': 13707101, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747935_06-08-2025_22_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25747950, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25747951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25747952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25747953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25747954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25747955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25747956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25747957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25747958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25747959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25747960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25747961, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25748521, 'dashboard_result_id': 13707102, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748521_06-08-2025_23_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25748543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25748544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25748545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25748546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25748547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25748548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25748549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25748550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25748551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25748552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25748553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25748554, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25748914, 'dashboard_result_id': 13707103, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748914_06-08-2025_23_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25748960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25748961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25748962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25748963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25748964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25748965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25748966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25748967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25748968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25748969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25748970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25748971, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25749527, 'dashboard_result_id': 13707104, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25749527_06-08-2025_23_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25749589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25749590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25749591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25749592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25749593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25749594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25749595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25749596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25749597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25749598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25749599, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25750242, 'dashboard_result_id': 13707105, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750242_06-08-2025_23_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25750288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25750289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25750290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25750291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25750292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25750293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25750294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25750295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25750296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25750297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25750298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25750299, 'pht': 3726}}"}, {'dashboat_entry_day': 2070025, 'dashboard_run_id': 2086013, 'mtr_portfolio_id': 25750771, 'dashboard_result_id': 13707106, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750771_07-08-2025_04_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25750840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25750841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25750842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25750843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25750844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25750845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25750846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25750847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25750848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25750849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25750850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25750851, '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 = 25707608 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470266, 'mtr_portfolio_id': 25707608, 'created_at': datetime.datetime(2025, 8, 7, 5, 34, 29), 'result': '0.050787517835168584', 'result_long': None, 'result_double': None}] Qualite : 0.050787517835168584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25707608 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707608_07-08-2025_05_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25707608 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707608_07-08-2025_05_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707616, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25707619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707621, 'pht': 3726}}" where mtr_portfolio_id = 25707608 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25707608 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707033, 0.050787517835168584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707608_07-08-2025_05_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707616, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25707619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707621, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25707669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470267, 'mtr_portfolio_id': 25707669, 'created_at': datetime.datetime(2025, 8, 7, 5, 34, 29), 'result': '0.02685943572006947', 'result_long': None, 'result_double': None}] Qualite : 0.02685943572006947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25707669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707669_07-08-2025_05_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25707669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707669_07-08-2025_05_34_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25707670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707681, 'pht': 3726}}" where mtr_portfolio_id = 25707669 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25707669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707034, 0.02685943572006947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707669_07-08-2025_05_34_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25707670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707681, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25707918 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470268, 'mtr_portfolio_id': 25707918, 'created_at': datetime.datetime(2025, 8, 7, 5, 34, 57), 'result': '0.04620891798256984', 'result_long': None, 'result_double': None}] Qualite : 0.04620891798256984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25707918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707918_07-08-2025_05_34_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25707918 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707918_07-08-2025_05_34_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25707934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707935, 'pht': 3726}}" where mtr_portfolio_id = 25707918 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25707918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707035, 0.04620891798256984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25707918_07-08-2025_05_34_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25707925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25707926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25707927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25707928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25707929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25707930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25707931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25707932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25707933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25707934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25707935, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25708197 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470269, 'mtr_portfolio_id': 25708197, 'created_at': datetime.datetime(2025, 8, 7, 5, 35, 31), 'result': '0.04622451488263083', 'result_long': None, 'result_double': None}] Qualite : 0.04622451488263083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25708197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708197_07-08-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25708197 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708197_07-08-2025_05_35_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708209, 'pht': 3726}}" where mtr_portfolio_id = 25708197 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25708197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707036, 0.04622451488263083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708197_07-08-2025_05_35_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708209, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25708353 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470270, 'mtr_portfolio_id': 25708353, 'created_at': datetime.datetime(2025, 8, 7, 5, 36), 'result': '0.09549046288043225', 'result_long': None, 'result_double': None}] Qualite : 0.09549046288043225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25708353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708353_07-08-2025_05_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25708353 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708353_07-08-2025_05_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25708356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708367, 'pht': 3726}}" where mtr_portfolio_id = 25708353 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25708353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707037, 0.09549046288043225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708353_07-08-2025_05_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25708356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708367, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25708783 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470271, 'mtr_portfolio_id': 25708783, 'created_at': datetime.datetime(2025, 8, 7, 5, 36, 31), 'result': '0.05635375285911138', 'result_long': None, 'result_double': None}] Qualite : 0.05635375285911138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25708783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708783_07-08-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25708783 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708783_07-08-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25708784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708795, 'pht': 3726}}" where mtr_portfolio_id = 25708783 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25708783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707038, 0.05635375285911138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708783_07-08-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25708784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708795, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25708897 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470272, 'mtr_portfolio_id': 25708897, 'created_at': datetime.datetime(2025, 8, 7, 5, 37), 'result': '0.07306548600055757', 'result_long': None, 'result_double': None}] Qualite : 0.07306548600055757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25708897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708897_07-08-2025_05_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25708897 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708897_07-08-2025_05_37_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708910, 'pht': 3726}}" where mtr_portfolio_id = 25708897 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25708897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707039, 0.07306548600055757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25708897_07-08-2025_05_37_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25708899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25708900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25708901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25708902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25708903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25708904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25708905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25708906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25708907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25708908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25708909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25708910, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25709121 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470273, 'mtr_portfolio_id': 25709121, 'created_at': datetime.datetime(2025, 8, 7, 5, 37, 31), 'result': '0.04325448622399456', 'result_long': None, 'result_double': None}] Qualite : 0.04325448622399456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25709121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709121_07-08-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25709121 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709121_07-08-2025_05_37_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709136, 'pht': 3726}}" where mtr_portfolio_id = 25709121 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25709121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707040, 0.04325448622399456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709121_07-08-2025_05_37_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709136, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25709573 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470274, 'mtr_portfolio_id': 25709573, 'created_at': datetime.datetime(2025, 8, 7, 5, 37, 58), 'result': '0.06704801428958249', 'result_long': None, 'result_double': None}] Qualite : 0.06704801428958249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25709573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709573_07-08-2025_05_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25709573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709573_07-08-2025_05_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709610, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709621, 'pht': 3726}}" where mtr_portfolio_id = 25709573 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25709573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707041, 0.06704801428958249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709573_07-08-2025_05_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709610, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709621, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25709782 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470275, 'mtr_portfolio_id': 25709782, 'created_at': datetime.datetime(2025, 8, 7, 5, 38, 28), 'result': '0.04670482387469812', 'result_long': None, 'result_double': None}] Qualite : 0.04670482387469812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25709782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709782_07-08-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25709782 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709782_07-08-2025_05_38_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709800, 'pht': 3726}}" where mtr_portfolio_id = 25709782 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25709782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707042, 0.04670482387469812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25709782_07-08-2025_05_38_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25709789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25709790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25709791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25709792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25709793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25709794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25709795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25709796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25709797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25709798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25709799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25709800, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25710076 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470276, 'mtr_portfolio_id': 25710076, 'created_at': datetime.datetime(2025, 8, 7, 5, 39, 37), 'result': '0.03637212049291588', 'result_long': None, 'result_double': None}] Qualite : 0.03637212049291588 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25710076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710076_07-08-2025_05_39_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25710076 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710076_07-08-2025_05_39_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710096, 'pht': 3726}}" where mtr_portfolio_id = 25710076 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25710076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707043, 0.03637212049291588, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710076_07-08-2025_05_39_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710096, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25710464 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470277, 'mtr_portfolio_id': 25710464, 'created_at': datetime.datetime(2025, 8, 7, 5, 39, 57), 'result': '0.041561690744774386', 'result_long': None, 'result_double': None}] Qualite : 0.041561690744774386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25710464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710464_07-08-2025_05_39_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25710464 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710464_07-08-2025_05_39_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710488, 'pht': 3726}}" where mtr_portfolio_id = 25710464 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25710464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707044, 0.041561690744774386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710464_07-08-2025_05_39_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710488, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25710893 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470278, 'mtr_portfolio_id': 25710893, 'created_at': datetime.datetime(2025, 8, 7, 5, 40, 32), 'result': '0.04612511282775441', 'result_long': None, 'result_double': None}] Qualite : 0.04612511282775441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25710893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710893_07-08-2025_05_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25710893 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710893_07-08-2025_05_40_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710910, 'pht': 3726}}" where mtr_portfolio_id = 25710893 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25710893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707045, 0.04612511282775441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25710893_07-08-2025_05_40_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25710899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25710900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25710901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25710902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25710903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25710904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25710905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25710906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25710907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25710908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25710909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25710910, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25711330 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470279, 'mtr_portfolio_id': 25711330, 'created_at': datetime.datetime(2025, 8, 7, 5, 41, 29), 'result': '0.09084893687214043', 'result_long': None, 'result_double': None}] Qualite : 0.09084893687214043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25711330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711330_07-08-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25711330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711330_07-08-2025_05_41_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25711336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25711337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25711338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25711339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25711340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25711341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25711342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25711343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25711344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25711345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25711346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25711347, 'pht': 3726}}" where mtr_portfolio_id = 25711330 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25711330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707046, 0.09084893687214043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711330_07-08-2025_05_41_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25711336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25711337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25711338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25711339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25711340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25711341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25711342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25711343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25711344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25711345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25711346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25711347, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25711683 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470280, 'mtr_portfolio_id': 25711683, 'created_at': datetime.datetime(2025, 8, 7, 5, 41, 58), 'result': '0.06054210889375545', 'result_long': None, 'result_double': None}] Qualite : 0.06054210889375545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25711683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711683_07-08-2025_05_42_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25711683 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711683_07-08-2025_05_42_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25711718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25711719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25711720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25711721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25711722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25711723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25711724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25711725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25711726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25711727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25711728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25711729, 'pht': 3726}}" where mtr_portfolio_id = 25711683 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25711683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707047, 0.06054210889375545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25711683_07-08-2025_05_42_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25711718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25711719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25711720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25711721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25711722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25711723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25711724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25711725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25711726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25711727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25711728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25711729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25712215 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470281, 'mtr_portfolio_id': 25712215, 'created_at': datetime.datetime(2025, 8, 7, 5, 42, 30), 'result': '0.04172167119720613', 'result_long': None, 'result_double': None}] Qualite : 0.04172167119720613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25712215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712215_07-08-2025_05_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25712215 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712215_07-08-2025_05_42_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25712224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25712225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25712226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25712227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25712228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25712229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25712230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25712231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25712232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25712233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25712234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25712235, 'pht': 3726}}" where mtr_portfolio_id = 25712215 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25712215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707048, 0.04172167119720613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712215_07-08-2025_05_42_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25712224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25712225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25712226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25712227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25712228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25712229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25712230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25712231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25712232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25712233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25712234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25712235, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25712594 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470282, 'mtr_portfolio_id': 25712594, 'created_at': datetime.datetime(2025, 8, 7, 5, 43, 28), 'result': '0.04381752088009011', 'result_long': None, 'result_double': None}] Qualite : 0.04381752088009011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25712594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712594_07-08-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25712594 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712594_07-08-2025_05_43_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25712645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25712646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25712647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25712648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25712649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25712650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25712651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25712652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25712653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25712654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25712655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25712656, 'pht': 3726}}" where mtr_portfolio_id = 25712594 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25712594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707049, 0.04381752088009011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25712594_07-08-2025_05_43_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25712645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25712646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25712647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25712648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25712649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25712650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25712651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25712652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25712653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25712654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25712655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25712656, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25713396 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470283, 'mtr_portfolio_id': 25713396, 'created_at': datetime.datetime(2025, 8, 7, 5, 43, 57), 'result': '0.0297726682654956', 'result_long': None, 'result_double': None}] Qualite : 0.0297726682654956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25713396 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25713396_07-08-2025_05_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25713396 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25713396_07-08-2025_05_44_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25713439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25713440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25713441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25713442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25713443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25713444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25713445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25713446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25713447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25713448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25713449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25713450, 'pht': 3726}}" where mtr_portfolio_id = 25713396 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25713396 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707050, 0.0297726682654956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25713396_07-08-2025_05_44_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25713439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25713440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25713441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25713442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25713443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25713444, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25713445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25713446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25713447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25713448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25713449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25713450, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25714071 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470284, 'mtr_portfolio_id': 25714071, 'created_at': datetime.datetime(2025, 8, 7, 5, 45), 'result': '0.08039330429409283', 'result_long': None, 'result_double': None}] Qualite : 0.08039330429409283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25714071 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714071_07-08-2025_05_45_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25714071 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714071_07-08-2025_05_45_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25714115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25714116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25714117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25714118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25714119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25714120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25714121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25714122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25714123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25714124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25714125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25714126, 'pht': 3726}}" where mtr_portfolio_id = 25714071 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25714071 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707051, 0.08039330429409283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714071_07-08-2025_05_45_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25714115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25714116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25714117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25714118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25714119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25714120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25714121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25714122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25714123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25714124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25714125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25714126, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25714815 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470285, 'mtr_portfolio_id': 25714815, 'created_at': datetime.datetime(2025, 8, 7, 5, 45, 31), 'result': '0.08152632508537286', 'result_long': None, 'result_double': None}] Qualite : 0.08152632508537286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25714815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714815_07-08-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25714815 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714815_07-08-2025_05_45_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25714849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25714850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25714851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25714852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25714853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25714854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25714855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25714856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25714857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25714858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25714859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25714860, 'pht': 3726}}" where mtr_portfolio_id = 25714815 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25714815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707052, 0.08152632508537286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25714815_07-08-2025_05_45_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25714849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25714850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25714851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25714852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25714853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25714854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25714855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25714856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25714857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25714858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25714859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25714860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25715250 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470286, 'mtr_portfolio_id': 25715250, 'created_at': datetime.datetime(2025, 8, 7, 5, 45, 59), 'result': '0.0364646681380536', 'result_long': None, 'result_double': None}] Qualite : 0.0364646681380536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25715250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715250_07-08-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25715250 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715250_07-08-2025_05_46_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25715310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25715311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25715312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25715313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25715314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25715315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25715316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25715317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25715318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25715319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25715320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25715321, 'pht': 3726}}" where mtr_portfolio_id = 25715250 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25715250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707053, 0.0364646681380536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715250_07-08-2025_05_46_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25715310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25715311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25715312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25715313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25715314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25715315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25715316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25715317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25715318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25715319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25715320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25715321, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25715907 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470287, 'mtr_portfolio_id': 25715907, 'created_at': datetime.datetime(2025, 8, 7, 5, 46, 28), 'result': '0.030990034996436475', 'result_long': None, 'result_double': None}] Qualite : 0.030990034996436475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25715907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715907_07-08-2025_05_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25715907 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715907_07-08-2025_05_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25715955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25715956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25715957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25715958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25715959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25715960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25715961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25715962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25715963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25715964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25715965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25715966, 'pht': 3726}}" where mtr_portfolio_id = 25715907 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25715907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707054, 0.030990034996436475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25715907_07-08-2025_05_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25715955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25715956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25715957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25715958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25715959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25715960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25715961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25715962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25715963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25715964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25715965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25715966, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25716591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470288, 'mtr_portfolio_id': 25716591, 'created_at': datetime.datetime(2025, 8, 7, 5, 47, 58), 'result': '0.07296858993742031', 'result_long': None, 'result_double': None}] Qualite : 0.07296858993742031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25716591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25716591_07-08-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25716591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25716591_07-08-2025_05_48_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25716609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25716610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25716611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25716612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25716613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25716614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25716615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25716616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25716617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25716618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25716619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25716620, 'pht': 3726}}" where mtr_portfolio_id = 25716591 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25716591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707055, 0.07296858993742031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25716591_07-08-2025_05_48_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25716609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25716610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25716611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25716612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25716613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25716614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25716615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25716616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25716617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25716618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25716619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25716620, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25717281 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470289, 'mtr_portfolio_id': 25717281, 'created_at': datetime.datetime(2025, 8, 7, 5, 48, 58), 'result': '0.056852071330473715', 'result_long': None, 'result_double': None}] Qualite : 0.056852071330473715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25717281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25717281_07-08-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25717281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25717281_07-08-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25717321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25717322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25717323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25717324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25717325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25717326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25717327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25717328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25717329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25717330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25717331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25717332, 'pht': 3726}}" where mtr_portfolio_id = 25717281 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25717281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707056, 0.056852071330473715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25717281_07-08-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25717321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25717322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25717323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25717324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25717325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25717326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25717327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25717328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25717329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25717330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25717331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25717332, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25719449 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470290, 'mtr_portfolio_id': 25719449, 'created_at': datetime.datetime(2025, 8, 7, 5, 49, 30), 'result': '0.029569500106647724', 'result_long': None, 'result_double': None}] Qualite : 0.029569500106647724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25719449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719449_07-08-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25719449 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719449_07-08-2025_05_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25719458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25719459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25719460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25719461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25719462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25719463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25719464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25719465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25719466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25719467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25719468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25719469, 'pht': 3726}}" where mtr_portfolio_id = 25719449 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25719449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707057, 0.029569500106647724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719449_07-08-2025_05_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25719458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25719459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25719460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25719461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25719462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25719463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25719464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25719465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25719466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25719467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25719468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25719469, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25719870 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470291, 'mtr_portfolio_id': 25719870, 'created_at': datetime.datetime(2025, 8, 7, 5, 49, 59), 'result': '0.05471394916172053', 'result_long': None, 'result_double': None}] Qualite : 0.05471394916172053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25719870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719870_07-08-2025_05_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25719870 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719870_07-08-2025_05_50_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25719888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25719889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25719890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25719891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25719892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25719893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25719894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25719895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25719896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25719897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25719898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25719899, 'pht': 3726}}" where mtr_portfolio_id = 25719870 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25719870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707058, 0.05471394916172053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25719870_07-08-2025_05_50_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25719888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25719889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25719890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25719891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25719892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25719893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25719894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25719895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25719896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25719897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25719898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25719899, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25720313 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470292, 'mtr_portfolio_id': 25720313, 'created_at': datetime.datetime(2025, 8, 7, 5, 50, 30), 'result': '0.044234875035042996', 'result_long': None, 'result_double': None}] Qualite : 0.044234875035042996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25720313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25720313_07-08-2025_05_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25720313 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25720313_07-08-2025_05_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25720326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25720327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25720328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25720329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25720330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25720331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25720332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25720333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25720334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25720335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25720336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25720337, 'pht': 3726}}" where mtr_portfolio_id = 25720313 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25720313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707059, 0.044234875035042996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25720313_07-08-2025_05_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25720326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25720327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25720328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25720329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25720330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25720331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25720332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25720333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25720334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25720335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25720336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25720337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25721063 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470293, 'mtr_portfolio_id': 25721063, 'created_at': datetime.datetime(2025, 8, 7, 5, 51, 30), 'result': '0.04546259571115903', 'result_long': None, 'result_double': None}] Qualite : 0.04546259571115903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25721063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721063_07-08-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25721063 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721063_07-08-2025_05_51_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25721113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25721114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25721115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25721116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25721117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25721118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25721119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25721120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25721121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25721122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25721123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25721124, 'pht': 3726}}" where mtr_portfolio_id = 25721063 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25721063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707060, 0.04546259571115903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721063_07-08-2025_05_51_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25721113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25721114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25721115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25721116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25721117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25721118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25721119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25721120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25721121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25721122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25721123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25721124, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25721415 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470294, 'mtr_portfolio_id': 25721415, 'created_at': datetime.datetime(2025, 8, 7, 5, 51, 59), 'result': '0.03899997019286457', 'result_long': None, 'result_double': None}] Qualite : 0.03899997019286457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25721415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721415_07-08-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25721415 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721415_07-08-2025_05_52_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25721458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25721460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25721461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25721462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25721463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25721464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25721465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25721466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25721467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25721468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25721469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25721470, 'pht': 3726}}" where mtr_portfolio_id = 25721415 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25721415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707061, 0.03899997019286457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25721415_07-08-2025_05_52_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25721458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25721460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25721461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25721462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25721463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25721464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25721465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25721466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25721467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25721468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25721469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25721470, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25722113 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470295, 'mtr_portfolio_id': 25722113, 'created_at': datetime.datetime(2025, 8, 7, 5, 52, 30), 'result': '0.0382265146490724', 'result_long': None, 'result_double': None}] Qualite : 0.0382265146490724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25722113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722113_07-08-2025_05_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25722113 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722113_07-08-2025_05_52_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25722158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25722159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25722160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25722161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25722162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25722163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25722164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25722165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25722166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25722167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25722168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25722169, 'pht': 3726}}" where mtr_portfolio_id = 25722113 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25722113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707062, 0.0382265146490724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722113_07-08-2025_05_52_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25722158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25722159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25722160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25722161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25722162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25722163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25722164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25722165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25722166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25722167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25722168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25722169, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25722723 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470296, 'mtr_portfolio_id': 25722723, 'created_at': datetime.datetime(2025, 8, 7, 5, 53, 28), 'result': '0.03847671131389804', 'result_long': None, 'result_double': None}] Qualite : 0.03847671131389804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25722723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722723_07-08-2025_05_53_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25722723 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722723_07-08-2025_05_53_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25722764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25722765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25722766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25722767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25722768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25722769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25722770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25722771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25722772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25722773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25722774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25722775, 'pht': 3726}}" where mtr_portfolio_id = 25722723 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25722723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707063, 0.03847671131389804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25722723_07-08-2025_05_53_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25722764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25722765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25722766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25722767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25722768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25722769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25722770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25722771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25722772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25722773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25722774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25722775, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25723446 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470297, 'mtr_portfolio_id': 25723446, 'created_at': datetime.datetime(2025, 8, 7, 5, 53, 58), 'result': '0.03475030589655949', 'result_long': None, 'result_double': None}] Qualite : 0.03475030589655949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25723446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25723446_07-08-2025_05_54_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25723446 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25723446_07-08-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25723459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25723460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25723461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25723462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25723463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25723464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25723465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25723466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25723467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25723468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25723469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25723470, 'pht': 3726}}" where mtr_portfolio_id = 25723446 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25723446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707064, 0.03475030589655949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25723446_07-08-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25723459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25723460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25723461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25723462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25723463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25723464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25723465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25723466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25723467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25723468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25723469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25723470, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25724021 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470298, 'mtr_portfolio_id': 25724021, 'created_at': datetime.datetime(2025, 8, 7, 5, 54, 30), 'result': '0.03867033210177992', 'result_long': None, 'result_double': None}] Qualite : 0.03867033210177992 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25724021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724021_07-08-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25724021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724021_07-08-2025_05_54_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25724032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25724033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25724034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25724035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25724036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25724037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25724038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25724039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25724040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25724041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25724042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25724043, 'pht': 3726}}" where mtr_portfolio_id = 25724021 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25724021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707065, 0.03867033210177992, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724021_07-08-2025_05_54_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25724032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25724033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25724034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25724035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25724036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25724037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25724038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25724039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25724040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25724041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25724042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25724043, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25724701 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470299, 'mtr_portfolio_id': 25724701, 'created_at': datetime.datetime(2025, 8, 7, 5, 55, 29), 'result': '0.0448396873244185', 'result_long': None, 'result_double': None}] Qualite : 0.0448396873244185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25724701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724701_07-08-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25724701 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724701_07-08-2025_05_55_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25724735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25724736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25724737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25724738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25724739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25724740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25724741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25724742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25724743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25724744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25724745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25724746, 'pht': 3726}}" where mtr_portfolio_id = 25724701 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25724701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707066, 0.0448396873244185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25724701_07-08-2025_05_55_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25724735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25724736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25724737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25724738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25724739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25724740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25724741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25724742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25724743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25724744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25724745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25724746, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25725214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470300, 'mtr_portfolio_id': 25725214, 'created_at': datetime.datetime(2025, 8, 7, 5, 56), 'result': '0.02198178568488959', 'result_long': None, 'result_double': None}] Qualite : 0.02198178568488959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25725214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25725214_07-08-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25725214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25725214_07-08-2025_05_56_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25725278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25725279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25725280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25725281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25725282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25725283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25725284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25725286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25725287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25725289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25725290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25725291, 'pht': 3726}}" where mtr_portfolio_id = 25725214 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25725214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707067, 0.02198178568488959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25725214_07-08-2025_05_56_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25725278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25725279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25725280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25725281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25725282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25725283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25725284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25725286, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25725287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25725289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25725290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25725291, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25727740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470301, 'mtr_portfolio_id': 25727740, 'created_at': datetime.datetime(2025, 8, 7, 5, 56, 58), 'result': '0.08913431650512985', 'result_long': None, 'result_double': None}] Qualite : 0.08913431650512985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25727740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25727740_07-08-2025_05_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25727740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25727740_07-08-2025_05_57_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25727764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25727765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25727766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25727767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25727768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25727769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25727770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25727771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25727772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25727773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25727774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25727775, 'pht': 3726}}" where mtr_portfolio_id = 25727740 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25727740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707068, 0.08913431650512985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25727740_07-08-2025_05_57_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25727764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25727765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25727766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25727767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25727768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25727769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25727770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25727771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25727772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25727773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25727774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25727775, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25728223 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470302, 'mtr_portfolio_id': 25728223, 'created_at': datetime.datetime(2025, 8, 7, 5, 57, 29), 'result': '0.035625946296077585', 'result_long': None, 'result_double': None}] Qualite : 0.035625946296077585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25728223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728223_07-08-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25728223 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728223_07-08-2025_05_57_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25728235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25728236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25728237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25728238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25728239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25728240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25728241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25728243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25728244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25728245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25728246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25728247, 'pht': 3726}}" where mtr_portfolio_id = 25728223 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25728223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707069, 0.035625946296077585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728223_07-08-2025_05_57_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25728235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25728236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25728237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25728238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25728239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25728240, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25728241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25728243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25728244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25728245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25728246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25728247, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25728610 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470303, 'mtr_portfolio_id': 25728610, 'created_at': datetime.datetime(2025, 8, 7, 5, 57, 58), 'result': '0.033020867704594246', 'result_long': None, 'result_double': None}] Qualite : 0.033020867704594246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25728610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728610_07-08-2025_05_58_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25728610 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728610_07-08-2025_05_58_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25728674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25728675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25728676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25728677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25728678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25728679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25728680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25728681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25728682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25728683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25728684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25728685, 'pht': 3726}}" where mtr_portfolio_id = 25728610 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25728610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707070, 0.033020867704594246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25728610_07-08-2025_05_58_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25728674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25728675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25728676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25728677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25728678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25728679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25728680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25728681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25728682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25728683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25728684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25728685, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25729384 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470304, 'mtr_portfolio_id': 25729384, 'created_at': datetime.datetime(2025, 8, 7, 5, 58, 59), 'result': '0.06402987234471011', 'result_long': None, 'result_double': None}] Qualite : 0.06402987234471011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25729384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729384_07-08-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25729384 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729384_07-08-2025_05_59_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25729421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25729422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25729423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25729424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25729425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25729426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25729427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25729428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25729429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25729430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25729431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25729432, 'pht': 3726}}" where mtr_portfolio_id = 25729384 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25729384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707071, 0.06402987234471011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729384_07-08-2025_05_59_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25729421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25729422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25729423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25729424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25729425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25729426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25729427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25729428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25729429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25729430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25729431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25729432, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25729859 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470305, 'mtr_portfolio_id': 25729859, 'created_at': datetime.datetime(2025, 8, 7, 5, 59, 29), 'result': '0.03720443481959722', 'result_long': None, 'result_double': None}] Qualite : 0.03720443481959722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25729859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729859_07-08-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25729859 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729859_07-08-2025_05_59_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25729886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25729887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25729888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25729889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25729890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25729891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25729892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25729894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25729895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25729896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25729897, 'pht': 3726}}" where mtr_portfolio_id = 25729859 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25729859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707072, 0.03720443481959722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25729859_07-08-2025_05_59_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25729886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25729887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25729888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25729889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25729890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25729891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25729892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25729894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25729895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25729896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25729897, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25730377 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470306, 'mtr_portfolio_id': 25730377, 'created_at': datetime.datetime(2025, 8, 7, 6, 0, 30), 'result': '0.038729663707415804', 'result_long': None, 'result_double': None}] Qualite : 0.038729663707415804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25730377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730377_07-08-2025_06_00_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25730377 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730377_07-08-2025_06_00_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25730421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25730422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25730423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25730424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25730425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25730426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25730427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25730428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25730429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25730430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25730431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25730432, 'pht': 3726}}" where mtr_portfolio_id = 25730377 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25730377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707073, 0.038729663707415804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730377_07-08-2025_06_00_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25730421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25730422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25730423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25730424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25730425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25730426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25730427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25730428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25730429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25730430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25730431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25730432, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25730918 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470307, 'mtr_portfolio_id': 25730918, 'created_at': datetime.datetime(2025, 8, 7, 6, 1, 30), 'result': '0.04759411783733994', 'result_long': None, 'result_double': None}] Qualite : 0.04759411783733994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25730918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730918_07-08-2025_06_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25730918 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730918_07-08-2025_06_01_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25730962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25730963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25730964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25730965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25730966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25730967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25730968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25730969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25730970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25730971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25730972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25730973, 'pht': 3726}}" where mtr_portfolio_id = 25730918 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25730918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707074, 0.04759411783733994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25730918_07-08-2025_06_01_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25730962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25730963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25730964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25730965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25730966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25730967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25730968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25730969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25730970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25730971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25730972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25730973, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25731584 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470308, 'mtr_portfolio_id': 25731584, 'created_at': datetime.datetime(2025, 8, 7, 6, 1, 58), 'result': '0.05637075370990078', 'result_long': None, 'result_double': None}] Qualite : 0.05637075370990078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25731584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25731584_07-08-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25731584 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25731584_07-08-2025_06_02_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25731612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25731613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25731614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25731615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25731616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25731617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25731618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25731619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25731620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25731621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25731622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25731623, 'pht': 3726}}" where mtr_portfolio_id = 25731584 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25731584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707075, 0.05637075370990078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25731584_07-08-2025_06_02_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25731612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25731613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25731614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25731615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25731616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25731617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25731618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25731619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25731620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25731621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25731622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25731623, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25732140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470309, 'mtr_portfolio_id': 25732140, 'created_at': datetime.datetime(2025, 8, 7, 6, 2, 27), 'result': '0.03852330109934587', 'result_long': None, 'result_double': None}] Qualite : 0.03852330109934587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25732140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732140_07-08-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25732140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732140_07-08-2025_06_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25732173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25732174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25732175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25732176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25732177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25732178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25732179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25732180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25732181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25732182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25732183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25732184, 'pht': 3726}}" where mtr_portfolio_id = 25732140 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25732140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707076, 0.03852330109934587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732140_07-08-2025_06_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25732173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25732174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25732175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25732176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25732177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25732178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25732179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25732180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25732181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25732182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25732183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25732184, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25732766 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25732766 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25732766 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25732766 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25732766 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25732766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732766_07-08-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25732766 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25732766_07-08-2025_06_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25732787, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25732788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25732789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25732790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25732791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25732792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25732793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25732794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25732795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25732796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25732797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25732798, 'pht': 3726}}" where mtr_portfolio_id = 25732766 and dashboard_run_id = 2086013 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25733200 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470311, 'mtr_portfolio_id': 25733200, 'created_at': datetime.datetime(2025, 8, 7, 6, 3, 59), 'result': '0.05764999574459528', 'result_long': None, 'result_double': None}] Qualite : 0.05764999574459528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25733200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733200_07-08-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25733200 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733200_07-08-2025_06_04_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25733224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25733225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25733226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25733227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25733228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25733229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25733230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25733231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25733232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25733233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25733234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25733235, 'pht': 3726}}" where mtr_portfolio_id = 25733200 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25733200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707078, 0.05764999574459528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733200_07-08-2025_06_04_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25733224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25733225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25733226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25733227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25733228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25733229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25733230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25733231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25733232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25733233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25733234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25733235, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25733925 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470312, 'mtr_portfolio_id': 25733925, 'created_at': datetime.datetime(2025, 8, 7, 6, 5), 'result': '0.039837744581185115', 'result_long': None, 'result_double': None}] Qualite : 0.039837744581185115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25733925 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733925_07-08-2025_06_05_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25733925 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733925_07-08-2025_06_05_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25733968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25733969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25733970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25733971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25733972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25733973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25733974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25733975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25733976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25733977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25733978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25733979, 'pht': 3726}}" where mtr_portfolio_id = 25733925 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25733925 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707079, 0.039837744581185115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25733925_07-08-2025_06_05_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25733968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25733969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25733970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25733971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25733972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25733973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25733974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25733975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25733976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25733977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25733978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25733979, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25734471 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470313, 'mtr_portfolio_id': 25734471, 'created_at': datetime.datetime(2025, 8, 7, 6, 5, 29), 'result': '0.05580650742115389', 'result_long': None, 'result_double': None}] Qualite : 0.05580650742115389 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25734471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25734471_07-08-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25734471 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25734471_07-08-2025_06_05_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25734523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25734524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25734525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25734526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25734527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25734528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25734529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25734530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25734531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25734532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25734533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25734534, 'pht': 3726}}" where mtr_portfolio_id = 25734471 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25734471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707080, 0.05580650742115389, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25734471_07-08-2025_06_05_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25734523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25734524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25734525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25734526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25734527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25734528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25734529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25734530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25734531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25734532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25734533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25734534, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25735073 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470314, 'mtr_portfolio_id': 25735073, 'created_at': datetime.datetime(2025, 8, 7, 6, 5, 59), 'result': '0.04267688097967555', 'result_long': None, 'result_double': None}] Qualite : 0.04267688097967555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25735073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735073_07-08-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25735073 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735073_07-08-2025_06_06_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25735102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25735103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25735104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25735105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25735106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25735107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25735108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25735109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25735110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25735111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25735113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25735114, 'pht': 3726}}" where mtr_portfolio_id = 25735073 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25735073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707081, 0.04267688097967555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735073_07-08-2025_06_06_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25735102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25735103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25735104, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25735105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25735106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25735107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25735108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25735109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25735110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25735111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25735113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25735114, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25735733 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470315, 'mtr_portfolio_id': 25735733, 'created_at': datetime.datetime(2025, 8, 7, 6, 6, 28), 'result': '0.04668411159979895', 'result_long': None, 'result_double': None}] Qualite : 0.04668411159979895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25735733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735733_07-08-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25735733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735733_07-08-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25735761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25735762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25735763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25735764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25735765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25735766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25735767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25735768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25735769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25735770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25735771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25735772, 'pht': 3726}}" where mtr_portfolio_id = 25735733 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25735733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707082, 0.04668411159979895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25735733_07-08-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25735761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25735762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25735763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25735764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25735765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25735766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25735767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25735768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25735769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25735770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25735771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25735772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25736330 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470316, 'mtr_portfolio_id': 25736330, 'created_at': datetime.datetime(2025, 8, 7, 6, 7, 29), 'result': '0.048003836896334535', 'result_long': None, 'result_double': None}] Qualite : 0.048003836896334535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25736330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25736330_07-08-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25736330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25736330_07-08-2025_06_07_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25736339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25736340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25736341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25736342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25736343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25736344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25736345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25736346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25736347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25736348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25736349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25736350, 'pht': 3726}}" where mtr_portfolio_id = 25736330 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25736330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707083, 0.048003836896334535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25736330_07-08-2025_06_07_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25736339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25736340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25736341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25736342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25736343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25736344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25736345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25736346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25736347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25736348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25736349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25736350, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25737966 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470317, 'mtr_portfolio_id': 25737966, 'created_at': datetime.datetime(2025, 8, 7, 6, 8, 2), 'result': '0.05705081041386908', 'result_long': None, 'result_double': None}] Qualite : 0.05705081041386908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25737966 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25737966_07-08-2025_06_08_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25737966 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25737966_07-08-2025_06_08_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25737980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25737981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25737982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25737983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25737984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25737985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25737986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25737987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25737988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25737989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25737990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25737991, 'pht': 3726}}" where mtr_portfolio_id = 25737966 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25737966 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707084, 0.05705081041386908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25737966_07-08-2025_06_08_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25737980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25737981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25737982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25737983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25737984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25737985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25737986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25737987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25737988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25737989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25737990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25737991, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25738301 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470318, 'mtr_portfolio_id': 25738301, 'created_at': datetime.datetime(2025, 8, 7, 6, 8, 32), 'result': '0.05980019302969687', 'result_long': None, 'result_double': None}] Qualite : 0.05980019302969687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25738301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738301_07-08-2025_06_08_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25738301 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738301_07-08-2025_06_08_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25738312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25738313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25738314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25738315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25738316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25738317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25738318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25738319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25738320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25738321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25738322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25738323, 'pht': 3726}}" where mtr_portfolio_id = 25738301 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25738301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707085, 0.05980019302969687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738301_07-08-2025_06_08_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25738312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25738313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25738314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25738315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25738316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25738317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25738318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25738319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25738320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25738321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25738322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25738323, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25738653 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470319, 'mtr_portfolio_id': 25738653, 'created_at': datetime.datetime(2025, 8, 7, 6, 9, 29), 'result': '0.051836281864567825', 'result_long': None, 'result_double': None}] Qualite : 0.051836281864567825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25738653 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738653_07-08-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25738653 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738653_07-08-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25738683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25738684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25738685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25738686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25738687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25738688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25738689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25738690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25738691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25738692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25738693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25738694, 'pht': 3726}}" where mtr_portfolio_id = 25738653 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25738653 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707086, 0.051836281864567825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25738653_07-08-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25738683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25738684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25738685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25738686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25738687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25738688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25738689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25738690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25738691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25738692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25738693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25738694, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25739141 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470320, 'mtr_portfolio_id': 25739141, 'created_at': datetime.datetime(2025, 8, 7, 6, 10), 'result': '0.057943577384860195', 'result_long': None, 'result_double': None}] Qualite : 0.057943577384860195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25739141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739141_07-08-2025_06_10_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25739141 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739141_07-08-2025_06_10_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25739185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25739186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25739187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25739188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25739189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25739190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25739191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25739192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25739193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25739194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25739195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25739196, 'pht': 3726}}" where mtr_portfolio_id = 25739141 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25739141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707087, 0.057943577384860195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739141_07-08-2025_06_10_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25739185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25739186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25739187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25739188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25739189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25739190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25739191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25739192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25739193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25739194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25739195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25739196, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25739715 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470321, 'mtr_portfolio_id': 25739715, 'created_at': datetime.datetime(2025, 8, 7, 6, 10, 28), 'result': '0.04584206049154121', 'result_long': None, 'result_double': None}] Qualite : 0.04584206049154121 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25739715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739715_07-08-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25739715 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739715_07-08-2025_06_10_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25739772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25739773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25739774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25739775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25739776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25739777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25739778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25739779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25739780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25739781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25739782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25739783, 'pht': 3726}}" where mtr_portfolio_id = 25739715 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25739715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707088, 0.04584206049154121, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25739715_07-08-2025_06_10_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25739772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25739773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25739774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25739775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25739776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25739777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25739778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25739779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25739780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25739781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25739782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25739783, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25740376 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470322, 'mtr_portfolio_id': 25740376, 'created_at': datetime.datetime(2025, 8, 7, 6, 11, 29), 'result': '0.061135560170889364', 'result_long': None, 'result_double': None}] Qualite : 0.061135560170889364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25740376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740376_07-08-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25740376 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740376_07-08-2025_06_11_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25740394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25740395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25740396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25740397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25740398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25740399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25740402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25740403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25740404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25740405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25740406, 'pht': 3726}}" where mtr_portfolio_id = 25740376 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25740376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707089, 0.061135560170889364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740376_07-08-2025_06_11_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25740394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25740395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25740396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25740397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25740398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25740399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25740402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25740403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25740404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25740405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25740406, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25740885 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470323, 'mtr_portfolio_id': 25740885, 'created_at': datetime.datetime(2025, 8, 7, 6, 11, 58), 'result': '0.05434671908847891', 'result_long': None, 'result_double': None}] Qualite : 0.05434671908847891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25740885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740885_07-08-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25740885 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740885_07-08-2025_06_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25740899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25740900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25740901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25740902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25740903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25740904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25740905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25740906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25740907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25740909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25740910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25740911, 'pht': 3726}}" where mtr_portfolio_id = 25740885 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25740885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707090, 0.05434671908847891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25740885_07-08-2025_06_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25740899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25740900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25740901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25740902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25740903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25740904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25740905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25740906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25740907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25740909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25740910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25740911, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25741391 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470324, 'mtr_portfolio_id': 25741391, 'created_at': datetime.datetime(2025, 8, 7, 6, 12, 29), 'result': '0.03028156031715681', 'result_long': None, 'result_double': None}] Qualite : 0.03028156031715681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25741391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741391_07-08-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25741391 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741391_07-08-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25741418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25741419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25741420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25741421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25741422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25741423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25741424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25741425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25741426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25741427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25741428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25741429, 'pht': 3726}}" where mtr_portfolio_id = 25741391 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25741391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707091, 0.03028156031715681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741391_07-08-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25741418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25741419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25741420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25741421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25741422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25741423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25741424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25741425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25741426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25741427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25741428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25741429, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25741883 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470325, 'mtr_portfolio_id': 25741883, 'created_at': datetime.datetime(2025, 8, 7, 6, 13, 27), 'result': '0.056748102621388255', 'result_long': None, 'result_double': None}] Qualite : 0.056748102621388255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25741883 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741883_07-08-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25741883 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741883_07-08-2025_06_13_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25741894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25741895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25741897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25741898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25741899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25741900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25741902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25741903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25741904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25741906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25741907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25741908, 'pht': 3726}}" where mtr_portfolio_id = 25741883 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25741883 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707092, 0.056748102621388255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25741883_07-08-2025_06_13_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25741894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25741895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25741897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25741898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25741899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25741900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25741902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25741903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25741904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25741906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25741907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25741908, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25742685 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470326, 'mtr_portfolio_id': 25742685, 'created_at': datetime.datetime(2025, 8, 7, 6, 14), 'result': '0.04228787970269983', 'result_long': None, 'result_double': None}] Qualite : 0.04228787970269983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25742685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25742685_07-08-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25742685 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25742685_07-08-2025_06_14_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25742733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25742734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25742736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25742737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25742738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25742740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25742741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25742742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25742744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25742745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25742746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25742747, 'pht': 3726}}" where mtr_portfolio_id = 25742685 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25742685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707093, 0.04228787970269983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25742685_07-08-2025_06_14_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25742733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25742734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25742736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25742737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25742738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25742740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25742741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25742742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25742744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25742745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25742746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25742747, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25743222 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470327, 'mtr_portfolio_id': 25743222, 'created_at': datetime.datetime(2025, 8, 7, 6, 14, 29), 'result': '0.030246459872842628', 'result_long': None, 'result_double': None}] Qualite : 0.030246459872842628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25743222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25743222_07-08-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25743222 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25743222_07-08-2025_06_14_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25743249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25743250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25743251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25743252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25743253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25743254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25743255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25743256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25743257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25743258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25743259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25743260, 'pht': 3726}}" where mtr_portfolio_id = 25743222 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25743222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707094, 0.030246459872842628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25743222_07-08-2025_06_14_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25743249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25743250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25743251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25743252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25743253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25743254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25743255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25743256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25743257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25743258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25743259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25743260, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25744616 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470328, 'mtr_portfolio_id': 25744616, 'created_at': datetime.datetime(2025, 8, 7, 6, 15, 28), 'result': '0.054487672980504664', 'result_long': None, 'result_double': None}] Qualite : 0.054487672980504664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25744616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744616_07-08-2025_06_15_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25744616 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744616_07-08-2025_06_15_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25744627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25744628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25744629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25744630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25744631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25744632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25744633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25744634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25744635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25744636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25744637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25744638, 'pht': 3726}}" where mtr_portfolio_id = 25744616 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25744616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707095, 0.054487672980504664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744616_07-08-2025_06_15_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25744627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25744628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25744629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25744630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25744631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25744632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25744633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25744634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25744635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25744636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25744637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25744638, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25744830 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470329, 'mtr_portfolio_id': 25744830, 'created_at': datetime.datetime(2025, 8, 7, 6, 15, 58), 'result': '0.03731452076095855', 'result_long': None, 'result_double': None}] Qualite : 0.03731452076095855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25744830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744830_07-08-2025_06_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25744830 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744830_07-08-2025_06_16_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25744849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25744850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25744851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25744852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25744853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25744854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25744855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25744856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25744857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25744858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25744859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25744860, 'pht': 3726}}" where mtr_portfolio_id = 25744830 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25744830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707096, 0.03731452076095855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25744830_07-08-2025_06_16_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25744849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25744850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25744851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25744852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25744853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25744854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25744855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25744856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25744857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25744858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25744859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25744860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25745264 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470330, 'mtr_portfolio_id': 25745264, 'created_at': datetime.datetime(2025, 8, 7, 6, 16, 30), 'result': '0.06970791123857255', 'result_long': None, 'result_double': None}] Qualite : 0.06970791123857255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25745264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745264_07-08-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25745264 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745264_07-08-2025_06_16_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25745310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25745311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25745312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25745313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25745314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25745315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25745316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25745317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25745318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25745319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25745320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25745321, 'pht': 3726}}" where mtr_portfolio_id = 25745264 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25745264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707097, 0.06970791123857255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745264_07-08-2025_06_16_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25745310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25745311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25745312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25745313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25745314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25745315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25745316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25745317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25745318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25745319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25745320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25745321, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25745880 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470331, 'mtr_portfolio_id': 25745880, 'created_at': datetime.datetime(2025, 8, 7, 6, 17, 30), 'result': '0.049619088993551504', 'result_long': None, 'result_double': None}] Qualite : 0.049619088993551504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25745880 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745880_07-08-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25745880 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745880_07-08-2025_06_17_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25745922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25745923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25745924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25745925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25745926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25745927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25745928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25745929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25745930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25745931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25745932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25745933, 'pht': 3726}}" where mtr_portfolio_id = 25745880 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25745880 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707098, 0.049619088993551504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25745880_07-08-2025_06_17_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25745922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25745923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25745924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25745925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25745926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25745927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25745928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25745929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25745930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25745931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25745932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25745933, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25746522 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470332, 'mtr_portfolio_id': 25746522, 'created_at': datetime.datetime(2025, 8, 7, 6, 18), 'result': '0.06307564713337392', 'result_long': None, 'result_double': None}] Qualite : 0.06307564713337392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25746522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25746522_07-08-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25746522 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25746522_07-08-2025_06_18_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25746539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25746540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25746541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25746542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25746543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25746544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25746545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25746546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25746547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25746548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25746549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25746550, 'pht': 3726}}" where mtr_portfolio_id = 25746522 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25746522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707099, 0.06307564713337392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25746522_07-08-2025_06_18_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25746539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25746540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25746541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25746542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25746543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25746544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25746545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25746546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25746547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25746548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25746549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25746550, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25747161 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3470333, 'mtr_portfolio_id': 25747161, 'created_at': datetime.datetime(2025, 8, 7, 6, 18, 29), 'result': '0.05169728346920467', 'result_long': None, 'result_double': None}] Qualite : 0.05169728346920467 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25747161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747161_07-08-2025_06_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25747161 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747161_07-08-2025_06_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25747203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25747204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25747205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25747206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25747207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25747208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25747209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25747210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25747211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25747212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25747214, 'pht': 3726}}" where mtr_portfolio_id = 25747161 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25747161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707100, 0.05169728346920467, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747161_07-08-2025_06_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25747203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25747204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25747205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25747206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25747207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25747208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25747209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25747210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25747211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25747212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25747214, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25747935 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3466627, 'mtr_portfolio_id': 25747935, 'created_at': datetime.datetime(2025, 8, 6, 22, 49), 'result': '0.04828647913833047', 'result_long': None, 'result_double': None}] Qualite : 0.04828647913833047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25747935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747935_06-08-2025_22_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25747935 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747935_06-08-2025_22_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25747950, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25747951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25747952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25747953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25747954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25747955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25747956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25747957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25747958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25747959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25747960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25747961, 'pht': 3726}}" where mtr_portfolio_id = 25747935 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25747935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707101, 0.04828647913833047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25747935_06-08-2025_22_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25747950, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25747951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25747952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25747953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25747954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25747955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25747956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25747957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25747958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25747959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25747960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25747961, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25748521 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3466707, 'mtr_portfolio_id': 25748521, 'created_at': datetime.datetime(2025, 8, 6, 23, 2, 57), 'result': '0.03548152345500061', 'result_long': None, 'result_double': None}] Qualite : 0.03548152345500061 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25748521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748521_06-08-2025_23_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25748521 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748521_06-08-2025_23_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25748543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25748544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25748545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25748546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25748547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25748548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25748549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25748550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25748551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25748552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25748553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25748554, 'pht': 3726}}" where mtr_portfolio_id = 25748521 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25748521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707102, 0.03548152345500061, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748521_06-08-2025_23_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25748543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25748544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25748545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25748546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25748547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25748548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25748549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25748550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25748551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25748552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25748553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25748554, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25748914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3466770, 'mtr_portfolio_id': 25748914, 'created_at': datetime.datetime(2025, 8, 6, 23, 16, 59), 'result': '0.05118215035592721', 'result_long': None, 'result_double': None}] Qualite : 0.05118215035592721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25748914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748914_06-08-2025_23_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25748914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748914_06-08-2025_23_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25748960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25748961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25748962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25748963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25748964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25748965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25748966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25748967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25748968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25748969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25748970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25748971, 'pht': 3726}}" where mtr_portfolio_id = 25748914 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25748914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707103, 0.05118215035592721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25748914_06-08-2025_23_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25748960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25748961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25748962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25748963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25748964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25748965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25748966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25748967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25748968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25748969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25748970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25748971, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25749527 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3466860, 'mtr_portfolio_id': 25749527, 'created_at': datetime.datetime(2025, 8, 6, 23, 34, 59), 'result': '0.053202190172089145', 'result_long': None, 'result_double': None}] Qualite : 0.053202190172089145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25749527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25749527_06-08-2025_23_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25749527 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25749527_06-08-2025_23_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25749589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25749590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25749591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25749592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25749593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25749594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25749595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25749596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25749597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25749598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25749599, 'pht': 3726}}" where mtr_portfolio_id = 25749527 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25749527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707104, 0.053202190172089145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25749527_06-08-2025_23_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25749589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25749590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25749591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25749592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25749593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25749594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25749595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25749596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25749597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25749598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25749599, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25750242 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3466958, 'mtr_portfolio_id': 25750242, 'created_at': datetime.datetime(2025, 8, 6, 23, 46, 59), 'result': '0.026891127395328708', 'result_long': None, 'result_double': None}] Qualite : 0.026891127395328708 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25750242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750242_06-08-2025_23_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25750242 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750242_06-08-2025_23_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25750288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25750289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25750290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25750291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25750292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25750293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25750294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25750295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25750296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25750297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25750298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25750299, 'pht': 3726}}" where mtr_portfolio_id = 25750242 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25750242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707105, 0.026891127395328708, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750242_06-08-2025_23_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25750288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25750289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25750290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25750291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25750292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25750293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25750294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25750295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25750296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25750297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25750298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25750299, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25750771 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3467074, 'mtr_portfolio_id': 25750771, 'created_at': datetime.datetime(2025, 8, 7, 4, 1, 32), 'result': '0.03671631439478412', 'result_long': None, 'result_double': None}] Qualite : 0.03671631439478412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25750771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750771_07-08-2025_04_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25750771 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750771_07-08-2025_04_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25750840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25750841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25750842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25750843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25750844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25750845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25750846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25750847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25750848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25750849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25750850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25750851, 'pht': 3726}}" where mtr_portfolio_id = 25750771 and dashboard_run_id = 2086013 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25750771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13707106, 0.03671631439478412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25750771_07-08-2025_04_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25750840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25750841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25750842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25750843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25750844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25750845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25750846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25750847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25750848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25750849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25750850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25750851, '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 (25707608,25707669,25707918,25708197,25708353,25708783,25708897,25709121,25709573,25709782,25710076,25710464,25710893,25711330,25711683,25712215,25712594,25713396,25714071,25714815,25715250,25715907,25716591,25717281,25719449,25719870,25720313,25721063,25721415,25722113,25722723,25723446,25724021,25724701,25725214,25727740,25728223,25728610,25729384,25729859,25730377,25730918,25731584,25732140,25732766,25733200,25733925,25734471,25735073,25735733,25736330,25737966,25738301,25738653,25739141,25739715,25740376,25740885,25741391,25741883,25742685,25743222,25744616,25744830,25745264,25745880,25746522,25747161,25747935,25748521,25748914,25749527,25750242,25750771) result : ((1375399408,), (1375399410,), (1375399412,), (1375399415,), (1375399490,), (1375399510,), (1375399530,), (1375399577,), (1375399600,), (1375399610,), (1375399612,), (1375399614,), (1375399638,), (1375399633,), (1375399635,), (1375399654,), (1375399714,), (1375399749,), (1375399763,), (1375399785,), (1375399817,), (1375399822,), (1375399924,), (1375400767,), (1375400766,), (1375400802,), (1375400817,), (1375400884,), (1375401725,), (1375401753,), (1375401754,), (1375401765,), (1375401845,), (1375401843,), (1375401892,), (1375401929,), (1375401966,), (1375402077,), (1375402078,), (1375402147,), (1375402149,), (1375402172,), (1375402293,), (1375402292,), (1375402328,), (1375402329,), (1375402349,), (1375402377,), (1375402378,), (1375402379,), (1375402446,), (1375402447,), (1375402517,), (1375402587,), (1375405062,), (1375405063,), (1375405104,), (1375405105,), (1375405142,), (1375405188,), (1375405219,), (1375405221,), (1375405364,), (1375405363,), (1375405420,), (1375405422,), (1375405424,), (1375405426,), (1375405489,), (1375405551,), (1375405575,), (1375405591,), (1375405637,), (1375405640,), (1375405686,), (1375406723,), (1375406802,), (1375406829,), (1375407905,), (1375407922,), (1375407945,), (1375408219,), (1375408221,), (1375408251,), (1375408320,), (1375408321,), (1375408323,), (1375410226,), (1375410176,), (1375411525,), (1375411548,), (1375411552,), (1375411588,), (1375411590,), (1375411604,), (1375411605,), (1375411607,), (1375411608,), (1375411612,), (1375411631,), (1375411632,), (1375411633,), (1375411636,), (1375411654,), (1375411684,), (1375411714,), (1375411734,), (1375411735,), (1375411751,), (1375411752,), (1375411753,), (1375411771,), (1375411779,), (1375411780,), (1375411781,), (1375411782,), (1375411784,), (1375411786,), (1375411791,), (1375411801,), (1375411797,), (1375411799,), (1375411823,), (1375411825,), (1375411827,), (1375411829,), (1375411832,), (1375411846,), (1375411847,), (1375411848,), (1375411850,), (1375411858,), (1375411859,), (1375411860,), (1375411861,), (1375411881,), (1375411882,), (1375411883,), (1375411885,), (1375411911,), (1375411912,), (1375411913,), (1375411915,), (1375411917,), (1375411937,), (1375411938,), (1375411939,), (1375411953,), (1375412006,), (1375412009,), (1375412012,), (1375412017,), (1375412021,), (1375412023,), (1375412031,), (1375412034,), (1375412037,), (1375412040,), (1375412041,), (1375412042,), (1375412044,), (1375412056,), (1375412057,), (1375412058,), (1375412069,), (1375412070,), (1375412071,), (1375412074,), (1375412077,), (1375412091,), (1375412092,), (1375412093,), (1375412096,), (1375412103,), (1375412141,), (1375412142,), (1375412143,), (1375412144,), (1375412145,), (1375412157,), (1375412160,), (1375412161,), (1375412197,), (1375412180,), (1375412185,), (1375412189,), (1375412193,), (1375412208,), (1375412210,), (1375412212,), (1375412215,), (1375412217,), (1375412219,), (1375412226,), (1375412227,), (1375412228,), (1375412240,), (1375412241,), (1375412242,), (1375412244,), (1375412254,), (1375412255,), (1375412256,), (1375412258,), (1375412260,), (1375412264,), (1375412266,), (1375412268,), (1375412270,), (1375412273,), (1375412277,), (1375412290,), (1375412292,), (1375412294,), (1375412323,), (1375412324,), (1375412325,), (1375412327,), (1375412342,), (1375412343,), (1375412344,), (1375412346,), (1375412364,), (1375412365,), (1375412366,), (1375412415,), (1375412416,), (1375412417,), (1375412419,), (1375412436,), (1375412437,), (1375412438,), (1375412440,), (1375412443,), (1375412457,), (1375412458,), (1375412459,), (1375412460,), (1375412462,), (1375412483,), (1375412484,), (1375412485,), (1375412487,), (1375412489,), (1375412493,), (1375412506,), (1375412508,), (1375412509,), (1375412530,), (1375412556,), (1375412558,), (1375412560,), (1375412579,), (1375412580,), (1375412581,), (1375412583,), (1375412606,), (1375412608,), (1375412610,), (1375412630,), (1375412633,), (1375412688,), (1375412692,), (1375412695,), (1375412697,), (1375412715,), (1375412722,), (1375412729,), (1375412757,), (1375412758,), (1375412787,), (1375412804,), (1375412852,), (1375412859,), (1375412864,), (1375412885,), (1375412887,), (1375412888,), (1375412890,), (1375412892,), (1375412909,), (1375412912,), (1375412915,), (1375412917,), (1375412921,), (1375413619,), (1375413593,), (1375413595,), (1375413596,), (1375413599,), (1375414118,), (1375414157,), (1375414194,), (1375414219,), (1375414410,), (1375414433,), (1375414434,), (1375414435,), (1375414437,), (1375414451,), (1375414453,), (1375414455,), (1375414457,), (1375414460,), (1375414474,), (1375414476,), (1375414478,), (1375414479,), (1375414481,), (1375414484,), (1375414590,), (1375414613,), (1375414636,), (1375414661,), (1375414962,), (1375414985,), (1375415006,), (1375415029,), (1375415051,), (1375415075,), (1375415305,), (1375415306,), (1375415307,), (1375415309,), (1375415313,), (1375415480,), (1375415638,), (1375415646,), (1375415650,), (1375415680,), (1375415688,), (1375415690,), (1375415692,), (1375415695,), (1375415711,), (1375415712,), (1375415713,), (1375415715,), (1375415717,), (1375415720,), (1375415737,), (1375415738,), (1375415741,), (1375415745,), (1375415748,), (1375415752,), (1375415759,), (1375415762,), (1375415763,), (1375415764,), (1375415765,), (1375415776,), (1375415766,), (1375415768,), (1375415772,), (1375415793,), (1375415794,), (1375415795,), (1375415797,), (1375415800,), (1375415803,), (1375415821,), (1375415822,), (1375415854,), (1375415855,), (1375415870,), (1375415871,), (1375415872,), (1375415874,), (1375415911,), (1375415912,), (1375415913,), (1375415938,), (1375415939,), (1375415947,), (1375415964,), (1375415971,), (1375415987,), (1375415988,), (1375415989,), (1375416030,), (1375416034,), (1375416035,), (1375416037,), (1375416039,), (1375416043,), (1375416065,), (1375416070,), (1375416071,), (1375416073,), (1375416076,), (1375416093,), (1375416095,), (1375416097,), (1375416099,), (1375416103,), (1375416109,), (1375416132,), (1375416134,), (1375416136,), (1375416166,), (1375416169,), (1375416171,), (1375416173,), (1375416176,), (1375416198,), (1375416203,), (1375416209,), (1375416211,), (1375416214,), (1375416216,), (1375416242,), (1375416245,), (1375416246,), (1375416249,), (1375416302,), (1375416289,), (1375416294,), (1375416295,), (1375416297,), (1375416300,), (1375416318,), (1375416321,), (1375416322,), (1375416325,), (1375416328,), (1375416346,), (1375416348,), (1375416351,), (1375416352,), (1375416355,), (1375416359,), (1375416371,), (1375416373,), (1375416375,), (1375416379,), (1375416383,), (1375416387,), (1375416404,), (1375416408,), (1375416411,), (1375416414,), (1375416416,), (1375416419,), (1375416421,), (1375416422,), (1375416423,), (1375416430,), (1375416433,), (1375416436,), (1375416446,), (1375416450,), (1375416451,), (1375416452,), (1375416454,), (1375416456,), (1375416457,), (1375416460,), (1375416464,), (1375416493,), (1375416509,), (1375416516,), (1375416523,), (1375416526,), (1375416537,), (1375416539,), (1375416541,), (1375416543,), (1375416546,), (1375416569,), (1375416571,), (1375416572,), (1375416575,), (1375416580,), (1375416584,), (1375416602,), (1375416605,), (1375416608,), (1375416612,), (1375416615,), (1375416637,), (1375416639,), (1375416641,), (1375416642,), (1375416646,), (1375416651,), (1375416663,), (1375416665,), (1375416667,), (1375416670,), (1375416701,), (1375416703,), (1375416705,), (1375416706,), (1375416709,), (1375416714,), (1375416734,), (1375416745,), (1375416748,), (1375416750,), (1375416755,), (1375416759,), (1375416779,), (1375416784,), (1375416786,), (1375416830,), (1375416810,), (1375416817,), (1375416821,), (1375416824,), (1375416828,), (1375416850,), (1375416853,), (1375416855,), (1375416857,), (1375416859,), (1375416877,), (1375416880,), (1375416882,), (1375416884,), (1375416887,), (1375416892,), (1375416913,), (1375416916,), (1375416918,), (1375416921,), (1375416942,), (1375416951,), (1375416957,), (1375416960,), (1375416964,), (1375416967,), (1375416994,), (1375416999,), (1375417001,), (1375417003,), (1375417009,), (1375417012,), (1375417025,), (1375417027,), (1375417028,), (1375417055,), (1375417059,), (1375417062,), (1375417068,), (1375417095,), (1375417099,), (1375417103,), (1375417106,), (1375417110,), (1375417114,), (1375417134,), (1375417139,), (1375417141,), (1375417145,), (1375417148,), (1375417150,), (1375417158,), (1375417160,), (1375417162,), (1375417164,), (1375417167,), (1375417170,), (1375417186,), (1375417189,), (1375417192,), (1375417197,), (1375417202,), (1375417217,), (1375417220,), (1375417223,), (1375417258,), (1375417261,), (1375417264,), (1375417268,), (1375417408,), (1375417436,), (1375417462,), (1375417487,), (1375417512,), (1375417540,), (1375417588,), (1375417612,), (1375417641,), (1375417645,), (1375417708,), (1375417699,), (1375417702,), (1375417735,), (1375417738,), (1375417741,), (1375417744,), (1375417748,), (1375417754,), (1375417774,), (1375417776,), (1375417778,), (1375417780,), (1375417784,), (1375418037,), (1375418060,), (1375418085,), (1375418110,), (1375418136,), (1375418164,), (1375418224,), (1375418250,), (1375418277,), (1375418301,), (1375418326,), (1375418478,), (1375418481,), (1375418485,), (1375418490,), (1375418592,), (1375418616,), (1375418640,), (1375418667,), (1375419052,), (1375419078,), (1375419118,), (1375419147,), (1375419268,), (1375419282,), (1375419306,), (1375419331,), (1375419347,), (1375419398,), (1375419403,), (1375419421,), (1375419425,), (1375419452,), (1375419480,), (1375419737,), (1375419750,), (1375419754,), (1375419756,), (1375419812,), (1375419814,), (1375419824,), (1375419831,), (1375420032,), (1375420037,), (1375420044,), (1375420070,), (1375420147,), (1375420157,), (1375420184,), (1375420201,), (1375420206,), (1375420210,), (1375420353,), (1375420356,), (1375420358,), (1375420361,), (1375420404,), (1375420388,), (1375420392,), (1375420395,), (1375420399,), (1375420504,), (1375420514,), (1375420517,), (1375420550,), (1375420557,), (1375420798,), (1375420805,), (1375420823,), (1375420833,), (1375420852,), (1375420877,), (1375420998,), (1375421000,), (1375421002,), (1375421096,), (1375421100,), (1375421103,), (1375421156,), (1375421256,), (1375421259,), (1375421262,), (1375421265,), (1375421470,), (1375421477,), (1375421492,), (1375421505,), (1375421515,), (1375421521,), (1375421626,), (1375421629,), (1375421631,), (1375421636,), (1375421657,), (1375421677,), (1375421920,), (1375421946,), (1375421971,), (1375421987,), (1375421992,), (1375422000,), (1375422020,), (1375422030,), (1375422032,), (1375422067,), (1375422107,), (1375422165,), (1375422182,), (1375422187,), (1375422204,), (1375422279,), (1375422284,), (1375422297,), (1375422400,), (1375422403,), (1375422406,), (1375422409,), (1375422443,), (1375422445,), (1375422488,), (1375422491,), (1375422494,), (1375422662,), (1375422655,), (1375422657,), (1375422659,), (1375422943,), (1375422952,), (1375422976,), (1375423280,), (1375423283,), (1375423286,), (1375423298,), (1375423351,), (1375423355,), (1375423386,), (1375423572,), (1375423576,), (1375423604,), (1375423608,), (1375423612,), (1375423616,), (1375423621,), (1375423626,), (1375423646,), (1375423650,), (1375423654,), (1375423657,), (1375423760,), (1375423764,), (1375423770,), (1375423772,), (1375423776,), (1375423802,), (1375423805,), (1375423809,), (1375423812,), (1375423818,), (1375423841,), (1375423843,), (1375423845,), (1375423847,), (1375423852,), (1375423857,), (1375423887,), (1375423890,), (1375423895,), (1375423900,), (1375423906,), (1375424248,), (1375424295,), (1375424344,), (1375424402,), (1375424443,), (1375424811,), (1375424836,), (1375424852,), (1375424869,), (1375424901,), (1375425085,), (1375425087,), (1375425089,), (1375425112,), (1375425115,), (1375425117,), (1375425120,), (1375425123,), (1375425126,), (1375425164,), (1375425143,), (1375425152,), (1375425155,), (1375425160,), (1375425194,), (1375425203,), (1375425229,), (1375425255,), (1375425299,), (1375425304,), (1375425310,), (1375425359,), (1375425380,), (1375425386,), (1375425391,), (1375425476,), (1375425478,), (1375425479,), (1375425482,), (1375425524,), (1375425527,), (1375425531,), (1375425537,), (1375425541,), (1375425545,), (1375425560,), (1375425566,), (1375425567,), (1375425571,), (1375425578,), (1375425583,), (1375425600,), (1375425602,), (1375425604,), (1375425608,), (1375425637,), (1375425639,), (1375425641,), (1375425643,), (1375425649,), (1375425654,), (1375425695,), (1375426954,), (1375426978,), (1375427115,), (1375427141,), (1375427175,), (1375427202,), (1375427227,), (1375427338,), (1375427314,), (1375427775,), (1375427800,), (1375427822,), (1375427852,), (1375427906,), (1375428388,), (1375428433,), (1375428481,), (1375428586,), (1375428608,), (1375428633,), (1375428658,), (1375428684,), (1375428709,), (1375428857,), (1375428880,), (1375428896,), (1375428897,), (1375428902,), (1375428984,), (1375428988,), (1375428990,), (1375428993,), (1375429024,), (1375429026,), (1375429027,), (1375429029,), (1375429031,), (1375429063,), (1375429074,), (1375429076,), (1375429078,), (1375429081,), (1375429085,), (1375429176,), (1375429179,), (1375429219,), (1375429220,), (1375429225,), (1375429258,), (1375429275,), (1375429304,), (1375429330,), (1375429334,), (1375429343,), (1375429400,), (1375429401,), (1375429402,), (1375429410,), (1375429465,), (1375429476,), (1375429482,), (1375429502,), (1375429533,), (1375429535,), (1375429536,), (1375429538,), (1375429541,), (1375429569,), (1375429573,), (1375429583,), (1375429585,), (1375429588,), (1375429592,), (1375429616,), (1375429609,), (1375429613,), (1375429696,), (1375429703,), (1375429705,), (1375429708,), (1375429711,), (1375429714,), (1375429842,), (1375429885,), (1375429888,), (1375429890,), (1375429892,), (1375429894,), (1375429988,), (1375429993,), (1375429995,), (1375430250,), (1375430278,), (1375430302,), (1375430591,), (1375430593,), (1375430595,), (1375430597,), (1375430600,), (1375430622,), (1375430625,), (1375430628,), (1375430654,), (1375430656,), (1375430658,), (1375430702,), (1375430794,), (1375430796,), (1375430798,), (1375430800,), (1375430824,), (1375430832,), (1375430835,), (1375430840,), (1375430844,), (1375430858,), (1375430860,), (1375430925,), (1375430928,), (1375430932,), (1375431011,), (1375431013,), (1375431015,), (1375431193,), (1375431194,), (1375431195,), (1375431231,), (1375431230,), (1375431404,), (1375431406,), (1375431429,), (1375431431,), (1375431432,), (1375431490,), (1375431491,), (1375431507,), (1375431640,), (1375431641,), (1375431642,), (1375431643,), (1375431718,), (1375431720,), (1375431751,), (1375431802,), (1375431917,), (1375431920,), (1375431922,), (1375431928,), (1375431983,), (1375431984,), (1375432020,), (1375432169,), (1375432170,), (1375432183,), (1375432188,), (1375432191,), (1375432238,), (1375432306,), (1375432307,), (1375432308,), (1375432310,), (1375432313,), (1375432347,), (1375432348,), (1375432349,), (1375432351,), (1375432355,), (1375432357,), (1375432410,), (1375432411,), (1375432412,), (1375432414,), (1375432466,), (1375432468,), (1375432469,), (1375432471,), (1375432472,), (1375432500,), (1375432489,), (1375432491,), (1375432493,), (1375432496,), (1375432516,), (1375432517,), (1375432518,), (1375432520,), (1375432554,), (1375432555,), (1375432556,), (1375432558,), (1375432561,), (1375432563,), (1375432580,), (1375432582,), (1375432584,), (1375432586,), (1375432591,), (1375432595,), (1375432607,), (1375432609,), (1375432611,), (1375432765,), (1375432766,), (1375432767,), (1375432769,), (1375432773,), (1375432777,), (1375432804,), (1375432805,), (1375432806,), (1375432808,), (1375432814,), (1375432887,), (1375432888,), (1375432889,), (1375432891,), (1375432895,), (1375432916,), (1375432917,), (1375432919,), (1375432942,), (1375432943,), (1375432968,), (1375432970,), (1375432972,), (1375432975,), (1375433003,), (1375433005,), (1375433009,), (1375433015,), (1375433036,), (1375433037,), (1375433039,), (1375433042,), (1375433164,), (1375433192,), (1375441286,), (1375441259,), (1375441383,), (1375441385,), (1375441386,), (1375441388,), (1375441391,), (1375441405,), (1375441407,), (1375441433,), (1375441436,), (1375441640,), (1375441662,), (1375441670,), (1375441728,), (1375441730,), (1375441732,), (1375441735,), (1375441814,), (1375441815,), (1375441819,), (1375441822,), (1375441853,), (1375441855,), (1375441858,), (1375441864,), (1375441868,), (1375441873,), (1375441898,), (1375441900,), (1375441902,), (1375441905,), (1375441960,), (1375441961,), (1375441962,), (1375441965,), (1375441971,), (1375441977,), (1375442041,), (1375442063,), (1375442064,), (1375442303,), (1375442308,), (1375442313,), (1375442320,), (1375442322,), (1375442327,), (1375442377,), (1375442395,), (1375442396,), (1375442397,), (1375442402,), (1375442587,), (1375442591,), (1375442592,), (1375442594,), (1375442597,), (1375442621,), (1375442730,), (1375442724,), (1375442726,), (1375442728,), (1375442757,), (1375442760,), (1375442762,), (1375442764,), (1375442767,), (1375442769,), (1375442786,), (1375442788,), (1375442789,), (1375443191,), (1375443215,), (1375443237,), (1375443558,), (1375443570,), (1375443587,), (1375443594,), (1375443604,), (1375443730,), (1375443738,), (1375443742,), (1375443745,), (1375444151,), (1375444400,), (1375444414,), (1375444442,), (1375444445,), (1375444447,), (1375444464,), (1375444487,), (1375444672,), (1375444676,), (1375444679,), (1375444683,), (1375444688,), (1375444693,), (1375444838,), (1375444867,), (1375444893,), (1375444916,), (1375445039,), (1375445091,), (1375445140,), (1375445188,), (1375445579,), (1375446328,), (1375446353,), (1375446375,), (1375446401,), (1375447080,), (1375447155,), (1375447224,), (1375447262,), (1375447305,), (1375447563,), (1375447588,), (1375447613,), (1375447639,), (1375447661,), (1375447665,), (1375448043,), (1375448051,), (1375448054,), (1375448057,), (1375448061,), (1375448064,), (1375448070,), (1375448074,), (1375448078,), (1375448079,), (1375448082,), (1375448085,), (1375448095,), (1375448102,), (1375448131,), (1375448160,), (1375448186,), (1375448209,), (1375448317,), (1375448344,), (1375448447,), (1375448457,), (1375448468,), (1375448471,), (1375448541,), (1375448543,), (1375448564,), (1375448565,), (1375448568,), (1375448573,), (1375448593,), (1375448594,), (1375449705,), (1375449118,), (1375449649,), (1375449650,), (1375449651,), (1375449657,), (1375449680,), (1375449979,), (1375450002,), (1375450028,), (1375450043,), (1375450053,), (1375450057,), (1375450136,), (1375450155,), (1375450158,), (1375450160,), (1375450288,), (1375450289,), (1375450291,), (1375450294,), (1375450298,), (1375450300,), (1375450314,), (1375450324,), (1375450325,), (1375450327,), (1375450342,), (1375450343,), (1375450346,), (1375450349,), (1375450352,), (1375450356,), (1375450366,), (1375450367,), (1375450368,), (1375450370,), (1375450384,), (1375450385,), (1375450386,), (1375450388,), (1375450391,), (1375450394,), (1375450462,), (1375450473,), (1375450479,), (1375450484,), (1375450671,), (1375450672,), (1375450675,), (1375450681,), (1375450684,), (1375450688,), (1375450702,), (1375450704,), (1375450706,), (1375450708,), (1375450711,), (1375450767,), (1375450752,), (1375450755,), (1375450759,), (1375450763,), (1375450777,), (1375450778,), (1375450779,), (1375450780,), (1375450783,), (1375450788,), (1375450822,), (1375450823,), (1375450854,), (1375451230,), (1375451278,), (1375451335,), (1375451850,), (1375451890,), (1375451948,), (1375451982,), (1375452035,), (1375452089,), (1375452411,), (1375452438,), (1375452463,), (1375452483,), (1375452491,), (1375452517,), (1375452519,), (1375452522,), (1375452530,), (1375452557,), (1375452581,), (1375452806,), (1375452864,), (1375452906,), (1375452934,), (1375452967,), (1375453020,), (1375453439,), (1375453492,), (1375453563,), (1375453622,), (1375453672,), (1375453815,), (1375453884,), (1375453992,), (1375454086,), (1375454177,), (1375454481,), (1375454504,), (1375454530,), (1375454534,), (1375454537,), (1375454565,), (1375455329,), (1375455375,), (1375455432,), (1375455478,), (1375455521,), (1375455859,), (1375455886,), (1375455909,), (1375455932,), (1375455938,), (1375455944,), (1375456375,), (1375456162,), (1375456210,), (1375456257,), (1375456304,), (1375456770,), (1375456771,), (1375456772,), (1375456781,), (1375456806,), (1375456833,), (1375457138,), (1375457169,), (1375457193,), (1375457206,), (1375457552,), (1375457554,), (1375457557,), (1375457561,), (1375457593,), (1375457641,), (1375457821,), (1375457824,), (1375457825,), (1375457826,), (1375457918,), (1375457933,), (1375457958,), (1375458276,), (1375458291,), (1375458294,), (1375458296,), (1375458304,), (1375458402,), (1375458404,), (1375458407,), (1375458425,), (1375458460,), (1375458485,), (1375458509,), (1375458532,), (1375458554,), (1375458581,), (1375458681,), (1375458688,), (1375458690,), (1375458691,), (1375458815,), (1375458816,), (1375458817,), (1375458818,), (1375458820,), (1375458824,), (1375458851,), (1375458881,), (1375458910,), (1375458931,), (1375458956,), (1375459173,), (1375459174,), (1375459175,), (1375459523,), (1375459545,), (1375459547,), (1375459628,), (1375459603,), (1375459945,), (1375460115,), (1375460146,), (1375460171,), (1375460603,), (1375460606,), (1375461054,), (1375461056,), (1375461058,), (1375461080,), (1375461106,), (1375461119,), (1375461190,), (1375461192,), (1375461195,), (1375461197,), (1375461200,), (1375461202,), (1375461208,), (1375461211,), (1375461214,), (1375461215,), (1375461218,), (1375461220,), (1375461222,), (1375461224,), (1375461334,), (1375461358,), (1375461382,), (1375461406,), (1375461430,), (1375461457,), (1375461713,), (1375461735,), (1375461760,), (1375461775,), (1375461905,), (1375461915,), (1375461940,), (1375461963,), (1375461985,), (1375461989,), (1375462065,), (1375462093,), (1375462119,), (1375462142,), (1375462165,), (1375462469,), (1375462496,), (1375462522,), (1375462546,), (1375462571,), (1375462709,), (1375462731,), (1375462753,), (1375462777,), (1375462782,), (1375462786,), (1375462911,), (1375462912,), (1375462913,), (1375462915,), (1375462917,), (1375462941,), (1375462943,), (1375462944,), (1375462946,), (1375462949,), (1375462951,), (1375462965,), (1375462966,), (1375462967,), (1375462968,), (1375463002,), (1375462993,), (1375462994,), (1375462995,), (1375462997,), (1375462999,), (1375463009,), (1375463010,), (1375463011,), (1375463014,), (1375463016,), (1375463030,), (1375463041,), (1375463063,), (1375463087,), (1375463113,), (1375463132,), (1375463329,), (1375463330,), (1375463339,), (1375463342,), (1375463345,), (1375463397,), (1375463398,), (1375463399,), (1375463401,), (1375463404,), (1375463407,), (1375463452,), (1375463454,), (1375463457,), (1375463462,), (1375463492,), (1375463728,), (1375463756,), (1375463782,), (1375463785,), (1375463792,), (1375463868,), (1375463869,), (1375463870,), (1375463871,), (1375463873,), (1375463878,), (1375463952,), (1375463975,), (1375463994,), (1375463996,), (1375464045,), (1375464070,), (1375464071,), (1375464075,), (1375464080,), (1375464195,), (1375464218,), (1375464242,), (1375464268,), (1375464296,), (1375464321,), (1375464467,), (1375464483,), (1375464487,), (1375464498,), (1375464506,), (1375464548,), (1375464644,), (1375464646,), (1375464647,), (1375464648,), (1375464651,), (1375464667,), (1375464668,), (1375464669,), (1375464671,), (1375464674,), (1375464677,), (1375464697,), (1375464698,), (1375464700,), (1375464702,), (1375464705,), (1375464794,), (1375464778,), (1375464779,), (1375464780,), (1375464783,), (1375464790,), (1375464833,), (1375464835,), (1375464836,), (1375464838,), (1375464842,), (1375464879,), (1375464886,), (1375464887,), (1375464889,), (1375464893,), (1375464917,), (1375464934,), (1375464936,), (1375464938,), (1375464941,), (1375465083,), (1375465104,), (1375465105,), (1375465107,), (1375465109,), (1375465112,), (1375465211,), (1375465223,), (1375465251,), (1375465276,), (1375465302,), (1375465351,), (1375465352,), (1375465353,), (1375465354,), (1375465357,), (1375465433,), (1375465434,), (1375465435,), (1375465455,), (1375465464,), (1375465466,), (1375465539,), (1375465540,), (1375465546,), (1375465597,), (1375465600,), (1375465667,), (1375465668,), (1375465669,), (1375465670,), (1375465672,), (1375465673,), (1375465694,), (1375465695,), (1375465699,), (1375465700,), (1375465981,), (1375465982,), (1375465983,), (1375465984,), (1375465986,), (1375465988,), (1375466000,), (1375466001,), (1375466002,), (1375466003,), (1375466004,), (1375466018,), (1375466019,), (1375466020,), (1375466021,), (1375466022,), (1375466024,), (1375466036,), (1375466037,), (1375466038,), (1375466065,), (1375466059,), (1375466060,), (1375466061,), (1375466062,), (1375466064,), (1375466073,), (1375466074,), (1375466075,), (1375466076,), (1375466090,), (1375466091,), (1375466092,), (1375466093,), (1375466094,), (1375466105,), (1375466106,), (1375466107,), (1375466108,), (1375466111,), (1375466124,), (1375466125,), (1375466127,), (1375466128,), (1375466196,), (1375466199,), (1375466201,), (1375466203,), (1375466204,), (1375466220,), (1375466221,), (1375466222,), (1375466223,), (1375466238,), (1375466239,), (1375466240,), (1375466241,), (1375466242,), (1375466263,), (1375466265,), (1375466266,), (1375466267,), (1375466268,), (1375466278,), (1375466281,), (1375466284,), (1375466286,), (1375466289,), (1375466291,), (1375466300,), (1375466303,), (1375466304,), (1375466305,), (1375466324,), (1375466326,), (1375466327,), (1375466328,), (1375466330,), (1375466331,), (1375466343,), (1375466345,), (1375466346,), (1375466347,), (1375466527,), (1375466551,), (1375466578,), (1375466602,), (1375466627,), (1375466634,), (1375466786,), (1375466782,), (1375466784,), (1375466803,), (1375466808,), (1375466814,), (1375466847,), (1375466851,), (1375466855,), (1375466859,), (1375466862,), (1375467035,), (1375467059,), (1375467091,), (1375467116,), (1375467143,), (1375467321,), (1375467324,), (1375467326,), (1375467348,), (1375467372,), (1375467397,), (1375467486,), (1375467537,), (1375467581,), (1375467606,), (1375467629,), (1375467912,), (1375467921,), (1375467992,), (1375467994,), (1375468020,), (1375468023,), (1375468024,), (1375468026,), (1375468028,), (1375468059,), (1375477221,), (1375477193,), (1375477361,), (1375477362,), (1375477589,), (1375477614,), (1375477638,), (1375477670,), (1375477718,), (1375477845,), (1375477847,), (1375477848,), (1375477851,), (1375477853,), (1375477856,), (1375477990,), (1375477992,), (1375477993,), (1375478063,), (1375478072,), (1375478135,), (1375478137,), (1375478150,), (1375478157,), (1375478219,), (1375478221,), (1375478367,), (1375478368,), (1375478369,), (1375478371,), (1375478401,), (1375478404,), (1375478406,), (1375478408,), (1375478419,), (1375478433,), (1375478486,), (1375478488,), (1375478490,), (1375478551,), (1375478553,), (1375478569,), (1375478576,), (1375478578,), (1375478592,), (1375478615,), (1375478616,), (1375478618,), (1375478658,), (1375478704,), (1375478913,), (1375478902,), (1375478906,), (1375478907,), (1375478910,), (1375479004,), (1375479006,), (1375479007,), (1375479012,), (1375479064,), (1375479071,), (1375479090,), (1375479092,), (1375479093,), (1375479095,), (1375479097,), (1375479107,), (1375479109,), (1375479128,), (1375479130,), (1375479131,), (1375479157,), (1375479159,), (1375479160,), (1375479162,), (1375479209,), (1375479211,), (1375479212,), (1375479214,), (1375479216,), (1375479260,), (1375479262,), (1375479266,), (1375479267,), (1375479270,), (1375479513,), (1375479549,), (1375479576,), (1375479599,), (1375479613,), (1375479617,), (1375479710,), (1375479733,), (1375479758,), (1375479764,), (1375479767,), (1375479770,), (1375479775,), (1375479777,), (1375479779,), (1375479780,), (1375479782,), (1375479784,), (1375479788,), (1375479789,), (1375479791,), (1375479793,), (1375479796,), (1375479799,), (1375479803,), (1375479810,), (1375479813,), (1375479816,), (1375479825,), (1375479866,), (1375479868,), (1375479885,), (1375479908,), (1375479932,), (1375480389,), (1375480395,), (1375480399,), (1375480402,), (1375480859,), (1375480703,), (1375480726,), (1375480748,), (1375480772,), (1375480934,), (1375480960,), (1375480983,), (1375481098,), (1375481465,), (1375481485,), (1375481486,), (1375481488,), (1375481647,), (1375481659,), (1375481694,), (1375481698,), (1375481701,), (1375481704,), (1375481831,), (1375481833,), (1375481836,), (1375481838,), (1375481839,), (1375481856,), (1375481858,), (1375481859,), (1375481861,), (1375481863,), (1375481865,), (1375481880,), (1375481882,), (1375481883,), (1375481892,), (1375481915,), (1375481918,), (1375481919,), (1375481920,), (1375481923,), (1375481925,), (1375481947,), (1375481949,), (1375481950,), (1375482031,), (1375482083,), (1375482126,), (1375482619,), (1375482667,), (1375482685,), (1375482687,), (1375482744,), (1375482746,), (1375482747,), (1375482762,), (1375482764,), (1375482782,), (1375482791,), (1375482793,), (1375482796,), (1375482816,), (1375482807,), (1375482809,), (1375482810,), (1375482812,), (1375482814,), (1375482838,), (1375482840,), (1375482841,), (1375482843,), (1375482846,), (1375482848,), (1375482856,), (1375482858,), (1375482859,), (1375482874,), (1375482877,), (1375482879,), (1375482882,), (1375482899,), (1375482901,), (1375482902,), (1375482905,), (1375482908,), (1375482912,), (1375482933,), (1375482935,), (1375482937,), (1375482939,), (1375482943,), (1375482945,), (1375482964,), (1375482966,), (1375482967,), (1375482970,), (1375483028,), (1375483030,), (1375483032,), (1375483034,), (1375483037,), (1375483041,), (1375483051,), (1375483053,), (1375483055,), (1375483057,), (1375483061,), (1375483076,), (1375483078,), (1375483080,), (1375483084,), (1375483087,), (1375483106,), (1375483108,), (1375483110,), (1375483113,), (1375483115,), (1375483128,), (1375483130,), (1375483132,), (1375483134,), (1375483164,), (1375483166,), (1375483168,), (1375483169,), (1375483172,), (1375483176,), (1375483184,), (1375483186,), (1375483188,), (1375483190,), (1375483194,), (1375483198,), (1375483212,), (1375483214,), (1375483215,), (1375483217,), (1375483221,), (1375483261,), (1375483248,), (1375483250,), (1375483252,), (1375483254,), (1375483258,), (1375483270,), (1375483283,), (1375483290,), (1375483295,), (1375483299,), (1375483302,), (1375483311,), (1375483319,), (1375483323,), (1375483326,), (1375483339,), (1375483341,), (1375483343,), (1375483346,), (1375483362,), (1375483363,), (1375483364,), (1375483366,), (1375483388,), (1375483389,), (1375483390,), (1375483392,), (1375483408,), (1375483409,), (1375483410,), (1375483411,), (1375483418,), (1375483474,), (1375483476,), (1375483477,), (1375483479,), (1375483482,), (1375483484,), (1375483490,), (1375483491,), (1375483492,), (1375483495,), (1375483518,), (1375483519,), (1375483521,), (1375483523,), (1375483527,), (1375483598,), (1375483599,), (1375483600,), (1375483602,), (1375483805,), (1375483806,), (1375483812,), (1375483836,), (1375483863,), (1375483902,), (1375483903,), (1375483904,), (1375483907,), (1375483960,), (1375483961,), (1375483962,), (1375483964,), (1375484018,), (1375484038,), (1375484039,), (1375484040,), (1375484042,), (1375484145,), (1375484080,), (1375484081,), (1375484102,), (1375484126,), (1375484212,), (1375484213,), (1375484214,), (1375484217,), (1375484221,), (1375484223,), (1375484233,), (1375484234,), (1375484235,), (1375484300,), (1375484301,), (1375484302,), (1375484304,), (1375484306,), (1375484308,), (1375484316,), (1375484358,), (1375484359,), (1375484427,), (1375484429,), (1375484431,), (1375484434,), (1375484438,), (1375484441,), (1375484712,), (1375484713,), (1375484714,), (1375484723,), (1375484747,), (1375484778,), (1375485109,), (1375485137,), (1375485164,), (1375485189,), (1375485218,), (1375485687,), (1375485738,), (1375485790,), (1375485953,), (1375485954,), (1375485965,), (1375485992,), (1375486028,), (1375486054,), (1375486180,), (1375486181,), (1375486182,), (1375486184,), (1375486187,), (1375486192,), (1375486206,), (1375486207,), (1375486227,), (1375487114,), (1375487165,), (1375487214,), (1375487265,), (1375487319,), (1375487377,), (1375487556,), (1375487608,), (1375487658,), (1375487705,), (1375487759,), (1375488004,), (1375487905,), (1375487930,), (1375487956,), (1375488370,), (1375488377,), (1375488416,), (1375488457,), (1375488534,), (1375488559,), (1375488610,), (1375488634,), (1375488657,), (1375488689,), (1375488733,), (1375488768,), (1375489070,), (1375489098,), (1375489470,), (1375489473,), (1375489476,), (1375489482,), (1375489506,), (1375489509,), (1375489513,), (1375489518,), (1375489523,), (1375489526,), (1375489534,), (1375489537,), (1375489538,), (1375489549,), (1375489611,), (1375489613,), (1375489614,), (1375489616,), (1375489619,), (1375489621,), (1375489630,), (1375489642,), (1375489646,), (1375489650,), (1375489654,), (1375489657,), (1375489677,), (1375489678,), (1375489681,), (1375489685,), (1375489723,), (1375489724,), (1375489725,), (1375489727,), (1375489779,), (1375489786,), (1375489796,), (1375489809,), (1375489887,), (1375489889,), (1375489909,), (1375489910,), (1375489912,), (1375489929,), (1375489930,), (1375489958,), (1375489952,), (1375489953,), (1375489955,), (1375489974,), (1375489975,), (1375489977,), (1375489980,), (1375489982,), (1375490005,), (1375490034,), (1375490043,), (1375490045,), (1375490061,), (1375490062,), (1375490083,), (1375490087,), (1375490091,), (1375490093,), (1375490276,), (1375490321,), (1375490345,), (1375490369,), (1375490502,), (1375490504,), (1375490507,), (1375490511,), (1375490513,), (1375490548,), (1375490550,), (1375490643,), (1375490676,), (1375490698,), (1375490722,), (1375490908,), (1375490909,), (1375490910,), (1375490912,), (1375490916,), (1375490929,), (1375490930,), (1375490931,), (1375490933,), (1375490940,), (1375491245,), (1375491282,), (1375491285,), (1375491286,), (1375491295,), (1375491305,), (1375491315,), (1375491329,), (1375491343,), (1375491344,), (1375491357,), (1375491372,), (1375491380,), (1375491381,), (1375491390,), (1375491414,), (1375491540,), (1375491542,), (1375491545,), (1375491547,), (1375491549,), (1375491550,), (1375491557,), (1375491559,), (1375491566,), (1375491588,), (1375491611,), (1375491627,), (1375491634,), (1375491638,), (1375491639,), (1375491641,), (1375491647,), (1375491653,), (1375491656,), (1375491658,), (1375491661,), (1375491663,), (1375491665,), (1375491698,), (1375491687,), (1375491688,), (1375491690,), (1375491693,), (1375491695,), (1375491712,), (1375491714,), (1375491715,), (1375491718,), (1375491736,), (1375491745,), (1375491751,), (1375491772,), (1375491777,), (1375491779,), (1375491798,), (1375491800,), (1375491802,), (1375491806,), (1375491818,), (1375491821,), (1375491822,), (1375491825,), (1375491840,), (1375491843,), (1375491846,), (1375491851,), (1375491856,), (1375491869,), (1375491871,), (1375491872,), (1375491882,), (1375491885,), (1375491921,), (1375491934,), (1375491937,), (1375491939,), (1375491994,), (1375491995,), (1375491998,), (1375492001,), (1375492004,), (1375492006,), (1375492015,), (1375492017,), (1375492018,), (1375492053,), (1375492073,), (1375492076,), (1375492078,), (1375492089,), (1375492093,), (1375492157,), (1375492159,), (1375492163,), (1375492167,), (1375492181,), (1375492183,), (1375492185,), (1375492207,), (1375492210,), (1375492213,), (1375492216,), (1375492217,), (1375492219,), (1375492232,), (1375492234,), (1375492239,), (1375492240,), (1375492242,), (1375492244,), (1375492252,), (1375492255,), (1375492256,), (1375492258,), (1375492259,), (1375492261,), (1375492276,), (1375492278,), (1375492294,), (1375492267,), (1375492269,), (1375492272,), (1375492274,), (1375492289,), (1375492290,), (1375492321,), (1375492329,), (1375492331,), (1375492332,), (1375492334,), (1375492351,), (1375492352,), (1375492353,), (1375492356,), (1375492370,), (1375492372,), (1375492408,), (1375492410,), (1375492411,), (1375492414,), (1375492683,), (1375492823,), (1375492825,), (1375492847,), (1375492849,), (1375492852,), (1375492885,), (1375492935,), (1375492961,), (1375493046,), (1375493072,), (1375493095,), (1375493126,), (1375493331,), (1375493307,), (1375493783,), (1375493810,), (1375493834,), (1375493859,), (1375494311,), (1375494320,), (1375494322,), (1375494344,), (1375494368,), (1375494391,), (1375494628,), (1375494636,), (1375494681,), (1375494723,), (1375494729,), (1375494756,), (1375495021,), (1375495045,), (1375495081,), (1375495103,), (1375495128,), (1375495153,), (1375495240,), (1375495269,), (1375495296,), (1375495317,), (1375495319,), (1375495320,), (1375495326,), (1375495332,), (1375495359,), (1375495381,), (1375495403,), (1375495427,), (1375495465,), (1375495468,), (1375495471,), (1375495522,), (1375495547,), (1375495557,), (1375495559,), (1375495583,), (1375495594,), (1375495602,), (1375495604,), (1375495606,), (1375495610,), (1375495613,), (1375495616,), (1375495633,), (1375495635,), (1375495637,), (1375495666,), (1375495667,), (1375495668,), (1375495684,), (1375495696,), (1375495703,), (1375495743,), (1375495744,), (1375495745,), (1375495747,), (1375495750,), (1375495786,), (1375495787,), (1375495788,), (1375495972,), (1375495973,), (1375495974,), (1375495976,), (1375495978,), (1375495980,), (1375496052,), (1375496058,), (1375496059,), (1375496061,), (1375496188,), (1375496190,), (1375496211,), (1375496567,), (1375496590,), (1375496686,), (1375496710,), (1375496464,), (1375496490,), (1375496515,), (1375496542,), (1375496812,), (1375496839,), (1375496848,), (1375496850,), (1375496852,), (1375496864,), (1375496867,), (1375496889,), (1375496891,), (1375496893,), (1375496894,), (1375496896,), (1375496913,), (1375496915,), (1375496916,), (1375496918,), (1375496920,), (1375496947,), (1375496949,), (1375496950,), (1375496952,), (1375497080,), (1375497105,), (1375497129,), (1375497368,), (1375497370,), (1375497371,), (1375497373,), (1375497375,), (1375497390,), (1375497392,), (1375497393,), (1375497396,), (1375497399,), (1375497402,), (1375497420,), (1375497422,), (1375497435,), (1375497437,), (1375497438,), (1375497440,), (1375497442,), (1375497454,), (1375497465,), (1375497475,), (1375497482,), (1375497483,), (1375497523,), (1375497526,), (1375497528,), (1375497531,), (1375497555,), (1375497557,), (1375497559,), (1375497571,), (1375497574,), (1375497576,), (1375497581,), (1375497584,), (1375497588,), (1375497702,), (1375497693,), (1375497695,), (1375497696,), (1375497699,), (1375497712,), (1375497714,), (1375497717,), (1375497734,), (1375497752,), (1375497754,), (1375497755,), (1375497758,), (1375497762,), (1375497765,), (1375497784,), (1375497786,), (1375497787,), (1375497790,), (1375497793,), (1375497803,), (1375497805,), (1375497807,), (1375497810,), (1375497813,), (1375497822,), (1375497824,), (1375497825,), (1375497828,), (1375497831,), (1375497833,), (1375497882,), (1375497890,), (1375497892,), (1375497895,), (1375497897,), (1375497917,), (1375497919,), (1375497920,), (1375497922,), (1375497954,), (1375497956,), (1375497957,), (1375497959,), (1375497962,), (1375497966,), (1375497988,), (1375497989,), (1375497991,), (1375497995,), (1375497997,), (1375498030,), (1375498034,), (1375498038,), (1375498042,), (1375498044,), (1375498055,), (1375498057,), (1375498059,), (1375498065,), (1375498071,), (1375498079,), (1375498150,), (1375498152,), (1375498155,), (1375498158,), (1375498162,), (1375498166,), (1375498210,), (1375498211,), (1375498212,), (1375498327,), (1375498349,), (1375498373,), (1375498397,), (1375498407,), (1375498411,), (1375498434,), (1375498430,), (1375498431,), (1375498432,), (1375498480,), (1375498501,), (1375498537,), (1375498543,), (1375498548,), (1375498551,), (1375498651,), (1375498682,), (1375498683,), (1375498702,), (1375498728,), (1375498751,), (1375498936,), (1375498937,), (1375498938,), (1375498944,), (1375499055,), (1375499059,), (1375499062,), (1375499066,), (1375499069,), (1375499093,), (1375499094,), (1375499095,), (1375499097,), (1375499100,), (1375499163,), (1375499182,), (1375499234,), (1375499636,), (1375499637,), (1375499658,), (1375499664,), (1375499668,), (1375499669,), (1375499672,), (1375499991,), (1375500036,), (1375500077,), (1375500187,), (1375500254,), (1375500307,), (1375500749,), (1375500756,), (1375500759,), (1375500783,), (1375500866,), (1375500894,), (1375500919,), (1375500944,), (1375501135,), (1375501127,), (1375501129,), (1375501131,), (1375501313,), (1375501329,), (1375501331,), (1375501333,), (1375501336,), (1375501347,), (1375501349,), (1375501374,), (1375501376,), (1375501388,), (1375501390,), (1375501391,), (1375501393,), (1375501416,), (1375501418,), (1375501420,), (1375501422,), (1375501427,), (1375501431,), (1375501442,), (1375501444,), (1375501445,), (1375501447,), (1375501470,), (1375501477,), (1375501480,), (1375501483,), (1375501486,), (1375501496,), (1375501498,), (1375501500,), (1375501502,), (1375501505,), (1375501508,), (1375501519,), (1375501521,), (1375501523,), (1375501526,), (1375501528,), (1375501531,), (1375501548,), (1375501550,), (1375501560,), (1375501572,), (1375501639,), (1375501641,), (1375501643,), (1375501645,), (1375501649,), (1375501652,), (1375501661,), (1375501665,), (1375501670,), (1375501673,), (1375501694,), (1375501697,), (1375501700,), (1375501704,), (1375501708,), (1375501710,), (1375501724,), (1375501729,), (1375501732,), (1375501738,), (1375501741,), (1375501744,), (1375501750,), (1375501755,), (1375501757,), (1375501758,), (1375501760,), (1375501762,), (1375501783,), (1375501784,), (1375501772,), (1375501773,), (1375501776,), (1375501777,), (1375501779,), (1375501780,), (1375501788,), (1375501790,), (1375501792,), (1375501794,), (1375501862,), (1375501864,), (1375501866,), (1375501882,), (1375501909,), (1375502177,), (1375502204,), (1375502227,), (1375502249,), (1375502280,), (1375502433,), (1375502437,), (1375502567,), (1375502569,), (1375502681,), (1375502683,), (1375502694,), (1375502732,), (1375502733,), (1375502773,), (1375502774,), (1375502776,), (1375502835,), (1375502836,), (1375502861,), (1375502863,), (1375502864,), (1375502867,), (1375502907,), (1375502911,), (1375502928,), (1375502929,), (1375502944,), (1375502946,), (1375502993,), (1375502995,), (1375502996,), (1375503002,), (1375503004,), (1375506752,), (1375506750,), (1375506787,), (1375506801,), (1375506825,), (1375506837,), (1375506843,), (1375506853,), (1375506902,), (1375506903,), (1375506904,), (1375506977,), (1375506979,), (1375506980,), (1375507011,), (1375507013,), (1375507014,), (1375507016,), (1375507018,), (1375507030,), (1375507032,), (1375507034,), (1375507088,), (1375507090,), (1375507092,), (1375507094,), (1375507112,), (1375507114,), (1375507115,), (1375507150,), (1375507152,), (1375507153,), (1375507155,), (1375507158,), (1375507160,), (1375507193,), (1375507195,), (1375507196,), (1375507199,), (1375507202,), (1375507230,), (1375507232,), (1375507233,), (1375507235,), (1375507238,), (1375507255,), (1375507257,), (1375507258,), (1375507259,), (1375507280,), (1375507283,), (1375507285,), (1375507287,), (1375507312,), (1375507315,), (1375507320,), (1375507324,), (1375507328,), (1375507349,), (1375507339,), (1375507341,), (1375507343,), (1375507346,), (1375507364,), (1375507365,), (1375507366,), (1375507388,), (1375507389,), (1375507390,), (1375507392,), (1375507395,), (1375507407,), (1375507408,), (1375507409,), (1375507427,), (1375507428,), (1375507430,), (1375507433,), (1375507435,), (1375507439,), (1375507459,), (1375507460,), (1375507462,), (1375507465,), (1375507487,), (1375507488,), (1375507489,), (1375507554,), (1375507555,), (1375507556,), (1375507558,), (1375507561,), (1375507581,), (1375507582,), (1375507583,), (1375507585,), (1375507588,), (1375507601,), (1375507602,), (1375507603,), (1375507605,), (1375507607,), (1375507636,), (1375507637,), (1375507652,), (1375507654,), (1375507655,), (1375507681,), (1375507684,), (1375507686,), (1375507688,), (1375507691,), (1375507714,), (1375507716,), (1375507718,), (1375507720,), (1375507723,), (1375507726,), (1375507739,), (1375507752,), (1375507756,), (1375507759,), (1375507763,), (1375507781,), (1375507777,), (1375507779,), (1375507793,), (1375507795,), (1375507798,), (1375507801,), (1375507804,), (1375507828,), (1375507830,), (1375507832,), (1375507834,), (1375507850,), (1375507852,), (1375507854,), (1375507856,), (1375507860,), (1375507874,), (1375507875,), (1375507924,), (1375507925,), (1375507927,), (1375507962,), (1375507964,), (1375507965,), (1375507968,), (1375507970,), (1375507988,), (1375507989,), (1375507991,), (1375507993,), (1375507995,), (1375507997,), (1375508003,), (1375508006,), (1375508011,), (1375508013,), (1375508016,), (1375508018,), (1375508021,), (1375508024,), (1375508038,), (1375508040,), (1375508041,), (1375508043,), (1375508046,), (1375508068,), (1375508070,), (1375508073,), (1375508098,), (1375508100,), (1375508102,), (1375508105,), (1375508117,), (1375508119,), (1375508121,), (1375508122,), (1375508125,), (1375508158,), (1375508159,), (1375508160,), (1375508162,), (1375508164,), (1375508191,), (1375508189,), (1375508190,), (1375508216,), (1375508217,), (1375508218,), (1375508220,), (1375508223,), (1375508225,), (1375508240,), (1375508241,), (1375508242,), (1375508243,), (1375508245,), (1375508249,), (1375508272,), (1375508273,), (1375508274,), (1375508276,), (1375508289,), (1375508290,), (1375508291,), (1375508327,), (1375508329,), (1375508332,), (1375508336,), (1375508340,), (1375508343,), (1375508360,), (1375508362,), (1375508364,), (1375508366,), (1375508369,), (1375508385,), (1375508386,), (1375508387,), (1375508389,), (1375508407,), (1375508408,), (1375508409,), (1375508411,), (1375508462,), (1375508471,), (1375508476,), (1375508478,), (1375508479,), (1375508482,), (1375508560,), (1375508561,), (1375508562,), (1375508568,), (1375508570,), (1375508577,), (1375508578,), (1375508579,), (1375508581,), (1375508595,), (1375508596,), (1375508601,), (1375508626,), (1375508648,), (1375508672,), (1375509542,), (1375509568,), (1375509595,), (1375509640,), (1375509664,), (1375509694,), (1375509792,), (1375509821,), (1375509847,), (1375510040,), (1375509991,), (1375510017,), (1375510366,), (1375510392,), (1375510395,), (1375510521,), (1375510545,), (1375510568,), (1375510577,), (1375510580,), (1375510588,), (1375510696,), (1375510697,), (1375510698,), (1375510700,), (1375510702,), (1375510709,), (1375510710,), (1375510711,), (1375510721,), (1375510722,), (1375510723,), (1375510725,), (1375510727,), (1375510729,), (1375510741,), (1375510742,), (1375510743,), (1375510812,), (1375510821,), (1375510825,), (1375510828,), (1375510831,), (1375510840,), (1375510841,), (1375510842,), (1375510844,), (1375510846,), (1375510863,), (1375510864,), (1375510865,), (1375510867,), (1375510883,), (1375510885,), (1375510888,), (1375510891,), (1375510897,), (1375511002,), (1375511003,), (1375511004,), (1375511016,), (1375511038,), (1375511049,), (1375511060,), (1375511061,), (1375511062,), (1375511064,), (1375511074,), (1375511075,), (1375511077,), (1375511080,), (1375511082,), (1375511084,), (1375511091,), (1375511093,), (1375511097,), (1375511099,), (1375511102,), (1375511106,), (1375511113,), (1375511115,), (1375511120,), (1375511140,), (1375511132,), (1375511135,), (1375511136,), (1375511138,), (1375511145,), (1375511146,), (1375511147,), (1375511149,), (1375511151,), (1375511219,), (1375511220,), (1375511221,), (1375511223,), (1375511225,), (1375511353,), (1375511373,), (1375511375,), (1375511377,), (1375511461,), (1375511463,), (1375511888,), (1375511896,), (1375511897,), (1375511899,), (1375511910,), (1375511952,), (1375511954,), (1375511955,), (1375511973,), (1375511974,), (1375511976,), (1375511979,), (1375511981,), (1375511995,), (1375511998,), (1375512001,), (1375512004,), (1375512006,), (1375512023,), (1375512027,), (1375512028,), (1375512029,), (1375512032,), (1375512050,), (1375512052,), (1375512053,), (1375512054,), (1375512080,), (1375512082,), (1375512086,), (1375512089,), (1375512092,), (1375512095,), (1375512138,), (1375512140,), (1375512142,), (1375512144,), (1375512147,), (1375512150,), (1375512166,), (1375512168,), (1375512169,), (1375512172,), (1375512218,), (1375512206,), (1375512209,), (1375512212,), (1375512214,), (1375512216,), (1375512232,), (1375512234,), (1375512235,), (1375512236,), (1375512240,), (1375512257,), (1375512259,), (1375512280,), (1375512303,), (1375512325,), (1375512351,), (1375512462,), (1375512510,), (1375512540,), (1375512542,), (1375512543,), (1375512557,), (1375512559,), (1375512577,), (1375512579,), (1375512596,), (1375512599,), (1375512600,), (1375512619,), (1375512621,), (1375512622,), (1375512624,), (1375512626,), (1375512641,), (1375512643,), (1375512644,), (1375512645,), (1375512647,), (1375512649,), (1375512676,), (1375512678,), (1375512679,), (1375512681,), (1375512683,), (1375512707,), (1375512708,), (1375512742,), (1375512737,), (1375512739,), (1375512740,), (1375512754,), (1375512756,), (1375512757,), (1375512786,), (1375512788,), (1375512789,), (1375512791,), (1375512794,), (1375512796,), (1375512816,), (1375512819,), (1375512822,), (1375512826,), (1375512842,), (1375512843,), (1375512844,), (1375512846,), (1375512849,), (1375512851,), (1375512876,), (1375512877,), (1375512878,), (1375512880,), (1375512883,), (1375512885,), (1375512905,), (1375512906,), (1375512908,), (1375512928,), (1375512929,), (1375512930,), (1375512947,), (1375512950,), (1375512951,), (1375512964,), (1375512965,), (1375512966,), (1375512986,), (1375512989,), (1375512990,), (1375513005,), (1375513006,), (1375513007,), (1375513009,), (1375513033,), (1375513034,), (1375513035,), (1375513036,), (1375513038,), (1375513411,), (1375513461,), (1375513509,), (1375513557,), (1375513607,), (1375513653,), (1375514523,), (1375514253,), (1375514318,), (1375514388,), (1375514454,), (1375514963,), (1375514988,), (1375514997,), (1375515039,), (1375515052,), (1375515068,), (1375515081,), (1375515085,), (1375515090,), (1375515093,), (1375515097,), (1375515099,), (1375515107,), (1375515109,), (1375515112,), (1375515115,), (1375515119,), (1375515121,), (1375515129,), (1375515133,), (1375515138,), (1375515141,), (1375515144,), (1375515148,), (1375515157,), (1375515159,), (1375515160,), (1375515161,), (1375515162,), (1375515163,), (1375515174,), (1375515175,), (1375515178,), (1375515179,), (1375515183,), (1375515184,), (1375515189,), (1375515190,), (1375515193,), (1375515195,), (1375515197,), (1375515198,), (1375515199,), (1375515200,), (1375515201,), (1375515203,), (1375515205,), (1375515209,), (1375515220,), (1375515224,), (1375515241,), (1375515244,), (1375515246,), (1375515249,), (1375515253,), (1375515260,), (1375515296,), (1375515297,), (1375515298,), (1375515302,), (1375515475,), (1375515477,), (1375515479,), (1375515482,), (1375515486,), (1375515623,), (1375515632,), (1375515644,), (1375515649,), (1375515652,), (1375515732,), (1375515751,), (1375515758,), (1375515760,), (1375515769,), (1375515771,), (1375515817,), (1375515818,), (1375515819,), (1375515820,), (1375515856,), (1375515857,), (1375515858,), (1375515860,), (1375515897,), (1375515898,), (1375515899,), (1375515901,), (1375515904,), (1375516059,), (1375515976,), (1375515980,), (1375515983,), (1375516004,), (1375516300,), (1375516301,), (1375516308,), (1375516310,), (1375516312,), (1375516402,), (1375516409,), (1375516434,), (1375516457,), (1375516713,), (1375516735,), (1375516760,), (1375516781,), (1375516783,), (1375516786,), (1375516905,), (1375516908,), (1375516917,), (1375516920,), (1375516922,), (1375516953,), (1375516954,), (1375516955,), (1375516956,), (1375516959,), (1375517007,), (1375517031,), (1375517042,), (1375517044,), (1375517047,), (1375517103,), (1375517105,), (1375517108,), (1375517111,), (1375517123,), (1375517125,), (1375517130,), (1375517134,), (1375517137,), (1375517140,), (1375517150,), (1375517154,), (1375517158,), (1375517161,), (1375517165,), (1375517173,), (1375517199,), (1375517202,), (1375517205,), (1375517206,), (1375517208,), (1375517211,), (1375517214,), (1375517215,), (1375517216,), (1375517217,), (1375517218,), (1375517220,), (1375517231,), (1375517235,), (1375517238,), (1375517239,), (1375517242,), (1375517243,), (1375517268,), (1375517271,), (1375517275,), (1375517276,), (1375517277,), (1375517278,), (1375517298,), (1375517300,), (1375517304,), (1375517309,), (1375517313,), (1375517316,), (1375517327,), (1375517329,), (1375517331,), (1375517333,), (1375517336,), (1375517342,), (1375517440,), (1375517441,), (1375517467,), (1375517470,), (1375517493,), (1375517497,), (1375517529,), (1375517532,), (1375517545,), (1375517546,), (1375517547,), (1375517548,), (1375517562,), (1375517569,), (1375517572,), (1375517550,), (1375517551,), (1375517552,), (1375517554,), (1375517558,), (1375517576,), (1375517577,), (1375517578,), (1375517580,), (1375517592,), (1375517593,), (1375517594,), (1375517595,), (1375517597,), (1375517600,), (1375517622,), (1375517623,), (1375517624,), (1375517626,), (1375517628,), (1375517643,), (1375517644,), (1375517645,), (1375517647,), (1375517666,), (1375517667,), (1375517692,), (1375517693,), (1375517694,), (1375517737,), (1375517739,), (1375517740,), (1375517741,), (1375517761,), (1375517763,), (1375518297,), (1375520133,), (1375520183,), (1375520243,), (1375520244,), (1375520269,), (1375520270,), (1375520271,), (1375520308,), (1375520309,), (1375520334,), (1375520336,), (1375520406,), (1375520407,), (1375520408,), (1375520410,), (1375520433,), (1375520447,), (1375520448,), (1375520450,), (1375520453,), (1375520473,), (1375520474,), (1375520475,), (1375520477,), (1375520479,), (1375520482,), (1375520493,), (1375520494,), (1375520495,), (1375520497,), (1375520501,), (1375520533,), (1375520525,), (1375520526,), (1375520528,), (1375520531,), (1375520554,), (1375520556,), (1375520557,), (1375520559,), (1375520561,), (1375520573,), (1375520574,), (1375520575,), (1375520577,), (1375520596,), (1375520597,), (1375520598,), (1375520600,), (1375520603,), (1375520605,), (1375520618,), (1375520619,), (1375520620,), (1375520675,), (1375520676,), (1375520677,), (1375520679,), (1375520703,), (1375520712,), (1375520729,), (1375520730,), (1375520731,), (1375520733,), (1375520752,), (1375520753,), (1375520754,), (1375520755,), (1375520757,), (1375520761,), (1375520783,), (1375520784,), (1375520785,), (1375520787,), (1375520789,), (1375520792,), (1375520803,), (1375520804,), (1375520805,), (1375520824,), (1375520827,), (1375520828,), (1375520830,), (1375520832,), (1375520873,), (1375520933,), (1375520939,), (1375520940,), (1375520943,), (1375520946,), (1375520949,), (1375520969,), (1375520970,), (1375520971,), (1375520974,), (1375520991,), (1375520992,), (1375520993,), (1375520995,), (1375520998,), (1375521018,), (1375521021,), (1375521023,), (1375521026,), (1375521029,), (1375521065,), (1375521063,), (1375521064,), (1375521074,), (1375521075,), (1375521076,), (1375521125,), (1375521127,), (1375521130,), (1375521133,), (1375521144,), (1375521146,), (1375521148,), (1375521161,), (1375521162,), (1375521182,), (1375521183,), (1375521204,), (1375521205,), (1375521206,), (1375521245,), (1375521247,), (1375521248,), (1375521264,), (1375521265,), (1375521267,), (1375521269,), (1375521271,), (1375521285,), (1375521286,), (1375521287,), (1375521342,), (1375521348,), (1375521349,), (1375521351,), (1375521353,), (1375521364,), (1375521475,), (1375521481,), (1375521495,), (1375521501,), (1375521504,), (1375521506,), (1375521526,), (1375521527,), (1375521528,), (1375521530,), (1375521772,), (1375521796,), (1375521809,), (1375521810,), (1375521813,), (1375521832,), (1375521834,), (1375521835,), (1375521837,), (1375521863,), (1375521854,), (1375521855,), (1375521856,), (1375521858,), (1375521860,), (1375521890,), (1375521891,), (1375521892,), (1375521942,), (1375521945,), (1375521946,), (1375521948,), (1375521950,), (1375521953,), (1375521983,), (1375521999,), (1375522022,), (1375522045,), (1375522068,), (1375522143,), (1375522144,), (1375522145,), (1375522147,), (1375522150,), (1375522153,), (1375522168,), (1375522169,), (1375522171,), (1375522174,), (1375522176,), (1375522179,), (1375522188,), (1375522196,), (1375522197,), (1375522198,), (1375522250,), (1375522251,), (1375522252,), (1375522255,), (1375522278,), (1375522306,), (1375522557,), (1375522580,), (1375522602,), (1375522609,), (1375522626,), (1375522627,), (1375522628,), (1375522631,), (1375522635,), (1375522637,), (1375522647,), (1375522648,), (1375522649,), (1375522651,), (1375522653,), (1375522668,), (1375522669,), (1375522670,), (1375522715,), (1375522716,), (1375522717,), (1375522719,), (1375522722,), (1375522724,), (1375522846,), (1375522874,), (1375522899,), (1375522923,), (1375522950,), (1375523039,), (1375523265,), (1375523480,), (1375523495,), (1375523520,), (1375523722,), (1375523742,), (1375523765,), (1375523788,), (1375523811,), (1375523835,), (1375524095,), (1375524116,), (1375525438,), (1375525462,), (1375525702,), (1375525726,), (1375525752,), (1375525777,), (1375526068,), (1375526076,), (1375526077,), (1375526078,), (1375526142,), (1375526143,), (1375526144,), (1375526146,), (1375526148,), (1375526150,), (1375526290,), (1375526306,), (1375526327,), (1375526335,), (1375526424,), (1375526448,), (1375526497,), (1375526498,), (1375528204,), (1375528231,), (1375528259,), (1375528279,), (1375528301,), (1375528303,), (1375528305,), (1375528317,), (1375528318,), (1375528319,), (1375528338,), (1375528339,), (1375528340,), (1375528342,), (1375528344,), (1375528346,), (1375528366,), (1375528367,), (1375528368,), (1375528370,), (1375528374,), (1375528376,), (1375528397,), (1375528401,), (1375528402,), (1375528403,), (1375528421,), (1375528422,), (1375528423,), (1375528425,), (1375528427,), (1375528584,), (1375528609,), (1375528635,), (1375528661,), (1375528687,), (1375528714,), (1375528959,), (1375528960,), (1375530056,), (1375529885,), (1375530095,), (1375530097,), (1375530100,), (1375530104,), (1375530106,), (1375530120,), (1375530121,), (1375530122,), (1375530124,), (1375530126,), (1375530128,), (1375530154,), (1375530155,), (1375530156,), (1375530158,), (1375530362,), (1375530387,), (1375530412,), (1375530437,), (1375530463,), (1375530711,), (1375530712,), (1375530713,), (1375530715,), (1375530717,), (1375530885,), (1375530907,), (1375530908,), (1375530931,), (1375530951,), (1375530952,), (1375530953,), (1375530955,), (1375530957,), (1375530960,), (1375530969,), (1375530970,), (1375530973,), (1375530976,), (1375530980,), (1375530994,), (1375530995,), (1375530997,), (1375531000,), (1375531201,), (1375531225,), (1375531252,), (1375531279,), (1375531305,), (1375531340,), (1375532120,), (1375532216,), (1375532300,), (1375533347,), (1375533212,), (1375533233,), (1375533255,), (1375533867,), (1375533892,), (1375533915,), (1375533939,), (1375533966,), (1375534207,), (1375534230,), (1375534274,), (1375534306,), (1375534497,), (1375534579,), (1375534665,), (1375534742,), (1375534825,), (1375534896,), (1375535206,), (1375535208,), (1375535210,), (1375535213,), (1375535350,), (1375535351,), (1375535352,), (1375535354,), (1375535356,), (1375535371,), (1375535381,), (1375535403,), (1375535426,), (1375535735,), (1375535759,), (1375535786,), (1375535882,), (1375535989,), (1375536085,), (1375536464,), (1375536479,), (1375536480,), (1375536496,), (1375536684,), (1375536689,), (1375536707,), (1375536782,), (1375536783,), (1375536785,), (1375536789,), (1375536792,), (1375536796,), (1375536801,), (1375537298,), (1375537299,), (1375537300,), (1375537308,), (1375537547,), (1375537549,), (1375537550,), (1375537577,), (1375537571,), (1375537572,), (1375537573,), (1375537575,), (1375537587,), (1375537588,), (1375537589,), (1375537595,), (1375537597,), (1375537599,), (1375537901,), (1375537920,), (1375538002,), (1375538004,), (1375538034,), (1375538042,), (1375538103,), (1375538128,), (1375538151,), (1375538471,), (1375538495,), (1375538519,), (1375538547,), (1375538572,), (1375538733,), (1375538734,), (1375538735,), (1375538737,), (1375538929,), (1375538951,), (1375538973,), (1375538986,), (1375539101,), (1375539157,), (1375539229,), (1375539300,), (1375539373,), (1375539452,), (1375539638,), (1375539798,), (1375539799,), (1375539800,), (1375539802,), (1375539804,), (1375539807,), (1375539814,), (1375539817,), (1375539819,), (1375539821,), (1375539823,), (1375539824,), (1375539825,), (1375539827,), (1375539830,), (1375539832,), (1375539841,), (1375539842,), (1375539843,), (1375539845,), (1375539848,), (1375539849,), (1375539870,), (1375539871,), (1375539872,), (1375539874,), (1375539878,), (1375539881,), (1375539892,), (1375539894,), (1375540563,), (1375540578,), (1375540579,), (1375540581,), (1375540880,), (1375540827,), (1375540832,), (1375540875,), (1375540877,), (1375540948,), (1375540949,), (1375540950,), (1375540952,), (1375540962,), (1375540987,), (1375540988,), (1375540990,), (1375540991,), (1375540994,), (1375541018,), (1375541019,), (1375541021,), (1375541023,), (1375541026,), (1375541030,), (1375541856,), (1375541883,), (1375541909,), (1375541935,), (1375541960,), (1375541987,), (1375542179,), (1375542225,), (1375542278,), (1375542357,), (1375542478,), (1375542627,), (1375542875,), (1375542878,), (1375542925,), (1375542932,), (1375543001,), (1375543008,), (1375543031,), (1375543036,), (1375543072,), (1375543081,), (1375543111,), (1375543114,), (1375543177,), (1375543178,), (1375543179,), (1375543181,), (1375543184,), (1375543187,), (1375543251,), (1375543340,), (1375543434,), (1375543736,), (1375543770,), (1375543779,), (1375543809,), (1375543820,), (1375543959,), (1375543960,), (1375543961,), (1375543963,), (1375543965,), (1375543988,), (1375543989,), (1375543990,), (1375543992,), (1375543994,), (1375543998,), (1375544218,), (1375544247,), (1375544269,), (1375544292,), (1375544566,), (1375544651,), (1375544675,), (1375544699,), (1375544727,), (1375544760,), (1375544783,), (1375544784,), (1375544785,), (1375544792,), (1375545348,), (1375545458,), (1375545557,), (1375545650,), (1375545752,), (1375546515,), (1375546562,), (1375546603,), (1375546644,), (1375546693,), (1375546755,), (1375547122,), (1375547120,), (1375547121,), (1375547359,), (1375547366,), (1375547367,), (1375547377,), (1375547561,), (1375547628,), (1375547694,), (1375547762,), (1375547829,), (1375547880,), (1375548041,), (1375548046,), (1375548047,), (1375548144,), (1375548145,), (1375548167,), (1375548168,), (1375548169,), (1375548171,), (1375548174,), (1375548185,), (1375548186,), (1375548240,), (1375548241,), (1375548242,), (1375548244,), (1375548247,), (1375548260,), (1375548261,), (1375548262,), (1375548263,), (1375548285,), (1375548287,), (1375548290,), (1375548294,), (1375548297,), (1375548301,), (1375548313,), (1375548314,), (1375548315,), (1375548316,), (1375548318,), (1375548356,), (1375548357,), (1375548358,), (1375548359,), (1375548362,), (1375548552,), (1375548575,), (1375548599,), (1375548622,), (1375548647,), (1375549070,), (1375549089,), (1375549092,), (1375549095,), (1375549380,), (1375549396,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06082025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25747161]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] map_info['map_portfolio_photo'] : {25747161: [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076]} final : True mtd_id 4302 list_pids : [1375528231, 1375528204, 1375526498, 1375526497, 1375526448, 1375526424, 1375526335, 1375526327, 1375526306, 1375526290, 1375526150, 1375526148, 1375526146, 1375526144, 1375526143, 1375526142, 1375526078, 1375526077, 1375526076] Looping around the photos to save general results len do output : 1 /25747161Didn'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, '3470333') ('4302', '25747161', '1375528231', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333') ('4302', None, None, None, None, None, None, None, '3470333') ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '25747161', 'None', None, None, None, None, '3470333'), ('4302', '25747161', '1375528231', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375528204', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526498', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526497', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526448', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526424', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526335', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526327', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526306', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526290', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526150', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526148', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526146', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526144', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526143', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526142', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526078', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526077', None, None, None, None, None, '3470333'), ('4302', '25747161', '1375526076', None, None, None, None, None, '3470333')] time used for this insertion : 0.08603501319885254 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.799489974975586 time spend to save output : 0.08635354042053223 total time spend for step 5 : 6.885843515396118 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 (3470333) 2.44user 2.21system 0:15.76elapsed 29%CPU (0avgtext+0avgdata 161864maxresident)k 0inputs+15376outputs (10major+77466minor)pagefaults 0swaps