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 : 2322791 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 (2872240) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2872240) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034316 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2872240'] with mtr_portfolio_ids : ['23034316'] and first list_photo_ids : [] new path : /proc/2322791/ Name: python3 Umask: 0002 State: R (running) Tgid: 2322791 Ngid: 0 Pid: 2322791 PPid: 2322790 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2322791 NSpid: 2322791 NSpgid: 2321017 NSsid: 2321017 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100204 kB VmRSS: 100204 kB RssAnon: 60196 kB RssFile: 40008 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2322791', 'Ngid': '0', 'Pid': '2322791', 'PPid': '2322790', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2322791', 'NSpid': '2322791', 'NSpgid': '2321017', 'NSsid': '2321017', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100204 kB', 'VmRSS': '100204 kB', 'RssAnon': '60196 kB', 'RssFile': '40008 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2322791', '1107228', '0', '1107228', '865976', '100204', b'', 'marlene', '2872240') 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 (23034316) 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 (2872240 ) ) 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 (23034316) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358696172, 'portfolio_id': 23034316}, {'photo_id': 1358695826, 'portfolio_id': 23034316}, {'photo_id': 1358695791, 'portfolio_id': 23034316}, {'photo_id': 1358695763, 'portfolio_id': 23034316}, {'photo_id': 1358695736, 'portfolio_id': 23034316}, {'photo_id': 1358695707, 'portfolio_id': 23034316}, {'photo_id': 1358695641, 'portfolio_id': 23034316}, {'photo_id': 1358695628, 'portfolio_id': 23034316}, {'photo_id': 1358695609, 'portfolio_id': 23034316}, {'photo_id': 1358695040, 'portfolio_id': 23034316}, {'photo_id': 1358694984, 'portfolio_id': 23034316}, {'photo_id': 1358694931, 'portfolio_id': 23034316}, {'photo_id': 1358694883, 'portfolio_id': 23034316}, {'photo_id': 1358694827, 'portfolio_id': 23034316}, {'photo_id': 1358694776, 'portfolio_id': 23034316}, {'photo_id': 1358694529, 'portfolio_id': 23034316}, {'photo_id': 1358694526, 'portfolio_id': 23034316}, {'photo_id': 1358694522, 'portfolio_id': 23034316}, {'photo_id': 1358694506, 'portfolio_id': 23034316}, {'photo_id': 1358694403, 'portfolio_id': 23034316}, {'photo_id': 1358694189, 'portfolio_id': 23034316}, {'photo_id': 1358694162, 'portfolio_id': 23034316}, {'photo_id': 1358694124, 'portfolio_id': 23034316}, {'photo_id': 1358694097, 'portfolio_id': 23034316}, {'photo_id': 1358694071, 'portfolio_id': 23034316}, {'photo_id': 1358694037, 'portfolio_id': 23034316}, {'photo_id': 1358693718, 'portfolio_id': 23034316}, {'photo_id': 1358693715, 'portfolio_id': 23034316}, {'photo_id': 1358693712, 'portfolio_id': 23034316}, {'photo_id': 1358693710, 'portfolio_id': 23034316}, {'photo_id': 1358693687, 'portfolio_id': 23034316}, {'photo_id': 1358693684, 'portfolio_id': 23034316}, {'photo_id': 1358693681, 'portfolio_id': 23034316}, {'photo_id': 1358693678, 'portfolio_id': 23034316}, {'photo_id': 1358693675, 'portfolio_id': 23034316}, {'photo_id': 1358693654, 'portfolio_id': 23034316}, {'photo_id': 1358693650, 'portfolio_id': 23034316}, {'photo_id': 1358693646, 'portfolio_id': 23034316}, {'photo_id': 1358693642, 'portfolio_id': 23034316}, {'photo_id': 1358693638, 'portfolio_id': 23034316}, {'photo_id': 1358693615, 'portfolio_id': 23034316}, {'photo_id': 1358693612, 'portfolio_id': 23034316}, {'photo_id': 1358693609, 'portfolio_id': 23034316}, {'photo_id': 1358693575, 'portfolio_id': 23034316}, {'photo_id': 1358693573, 'portfolio_id': 23034316}, {'photo_id': 1358693532, 'portfolio_id': 23034316}, {'photo_id': 1358693526, 'portfolio_id': 23034316}, {'photo_id': 1358693522, 'portfolio_id': 23034316}, {'photo_id': 1358693518, 'portfolio_id': 23034316}, {'photo_id': 1358693514, 'portfolio_id': 23034316}, {'photo_id': 1358693512, 'portfolio_id': 23034316}, {'photo_id': 1358693485, 'portfolio_id': 23034316}, {'photo_id': 1358693482, 'portfolio_id': 23034316}, {'photo_id': 1358693478, 'portfolio_id': 23034316}, {'photo_id': 1358693453, 'portfolio_id': 23034316}, {'photo_id': 1358693450, 'portfolio_id': 23034316}, {'photo_id': 1358693446, 'portfolio_id': 23034316}, {'photo_id': 1358693408, 'portfolio_id': 23034316}, {'photo_id': 1358693404, 'portfolio_id': 23034316}, {'photo_id': 1358693401, 'portfolio_id': 23034316}, {'photo_id': 1358693373, 'portfolio_id': 23034316}] map_portfolio_id_photo_id: {23034316: [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776, 1358694529, 1358694526, 1358694522, 1358694506, 1358694403, 1358694189, 1358694162, 1358694124, 1358694097, 1358694071, 1358694037, 1358693718, 1358693715, 1358693712, 1358693710, 1358693687, 1358693684, 1358693681, 1358693678, 1358693675, 1358693654, 1358693650, 1358693646, 1358693642, 1358693638, 1358693615, 1358693612, 1358693609, 1358693575, 1358693573, 1358693532, 1358693526, 1358693522, 1358693518, 1358693514, 1358693512, 1358693485, 1358693482, 1358693478, 1358693453, 1358693450, 1358693446, 1358693408, 1358693404, 1358693401, 1358693373]} ##### 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.016423463821411133 #### 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 Fri May 16 05:58:57 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 (23034316) 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 : 23034316 get user id for portfolio 23034316 get sub ptf for main ptf 23034316, type 3726 and hashtags ['environnement', 'flou', 'Teint_Dans_La_Masse', 'plastique', 'papier', 'mal_croppe', 'Carton_brun', 'autre_refus', 'kraft', 'metal', 'cartonnette', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23034316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_brun','autre_refus','kraft','metal','cartonnette','Carton_gris')) 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`=23034316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_brun','autre_refus','kraft','metal','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23034316, 'sub_port_id': 23034355, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374111, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'cartonnette': {'main_port_id': 23034316, 'sub_port_id': 23034356, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374112, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'Carton_gris': {'main_port_id': 23034316, 'sub_port_id': 23034357, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374113, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'kraft': {'main_port_id': 23034316, 'sub_port_id': 23034358, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374114, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'autre_refus': {'main_port_id': 23034316, 'sub_port_id': 23034359, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374115, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 23034316, 'sub_port_id': 23034360, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374116, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'environnement': {'main_port_id': 23034316, 'sub_port_id': 23034361, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374117, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'papier': {'main_port_id': 23034316, 'sub_port_id': 23034362, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374118, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'mal_croppe': {'main_port_id': 23034316, 'sub_port_id': 23034363, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374119, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'metal': {'main_port_id': 23034316, 'sub_port_id': 23034364, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374120, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'Carton_brun': {'main_port_id': 23034316, 'sub_port_id': 23034365, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374121, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}, 'plastique': {'main_port_id': 23034316, 'sub_port_id': 23034366, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374122, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23034355 , 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=23034316 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 (23034355) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034356 , 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=23034316 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 (23034356) result : ((1358694705,), (1358695603,), (1358696633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034357 , 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=23034316 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 (23034357) result : ((1358694697,), (1358695592,), (1358695594,), (1358695596,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034358 , 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=23034316 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 (23034358) result : ((1358695614,), (1358695616,), (1358696642,), (1358696643,), (1358696644,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034359 , 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=23034316 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 (23034359) result : ((1358694690,), (1358696631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034360 , 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=23034316 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 (23034360) result : ((1358694683,), (1358695588,), (1358695589,), (1358695590,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034361 , 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=23034316 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 (23034361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034362 , 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=23034316 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 (23034362) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034363 , 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=23034316 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 (23034363) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034364 , 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=23034316 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 (23034364) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034365 , 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=23034316 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 (23034365) result : ((1358694712,), (1358696634,), (1358696636,), (1358696637,), (1358696638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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 23034366 , 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=23034316 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 (23034366) result : ((1358694723,), (1358694726,), (1358696639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23034316) result : ((1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) 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`=23034316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_brun','autre_refus','kraft','metal','cartonnette','Carton_gris')) 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`=23034316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_brun','autre_refus','kraft','metal','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23034316, 'sub_port_id': 23034367, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374123, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'cartonnette': {'main_port_id': 23034316, 'sub_port_id': 23034368, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374124, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'Carton_gris': {'main_port_id': 23034316, 'sub_port_id': 23034369, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374125, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'kraft': {'main_port_id': 23034316, 'sub_port_id': 23034370, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374126, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'autre_refus': {'main_port_id': 23034316, 'sub_port_id': 23034372, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374127, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23034316, 'sub_port_id': 23034373, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374128, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'environnement': {'main_port_id': 23034316, 'sub_port_id': 23034374, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374129, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'papier': {'main_port_id': 23034316, 'sub_port_id': 23034375, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374130, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'mal_croppe': {'main_port_id': 23034316, 'sub_port_id': 23034376, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374131, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'metal': {'main_port_id': 23034316, 'sub_port_id': 23034377, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374132, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'Carton_brun': {'main_port_id': 23034316, 'sub_port_id': 23034378, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374133, 'last_updated_at': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 15, 23, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}, 'plastique': {'main_port_id': 23034316, 'sub_port_id': 23034379, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15374134, 'last_updated_at': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 5, 35, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 15, 23, 51, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034355 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034356 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23034379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23034366 lien utilise dans velours : https://www.fotonower.com/velours/23034367,23034368,23034369,23034370,23034372,23034373,23034374,23034375,23034376,23034377,23034378,23034379?tags=flou,cartonnette,Carton_gris,kraft,autre_refus,Teint_Dans_La_Masse,environnement,papier,mal_croppe,metal,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23034316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] map_info['map_portfolio_photo'] : {23034316: [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776, 1358694529, 1358694526, 1358694522, 1358694506, 1358694403, 1358694189, 1358694162, 1358694124, 1358694097, 1358694071, 1358694037, 1358693718, 1358693715, 1358693712, 1358693710, 1358693687, 1358693684, 1358693681, 1358693678, 1358693675, 1358693654, 1358693650, 1358693646, 1358693642, 1358693638, 1358693615, 1358693612, 1358693609, 1358693575, 1358693573, 1358693532, 1358693526, 1358693522, 1358693518, 1358693514, 1358693512, 1358693485, 1358693482, 1358693478, 1358693453, 1358693450, 1358693446, 1358693408, 1358693404, 1358693401, 1358693373]} final : False mtd_id 4302 list_pids : [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] Looping around the photos to save general results len do output : 1 /23034316. 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, '2872240') ('4302', '23034316', '1358696172', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '23034316', "{'flou': 23034355, 'cartonnette': 23034356, 'Carton_gris': 23034357, 'kraft': 23034358, 'autre_refus': 23034359, 'Teint_Dans_La_Masse': 23034360, 'environnement': 23034361, 'papier': 23034362, 'mal_croppe': 23034363, 'metal': 23034364, 'Carton_brun': 23034365, 'plastique': 23034366}", None, None, None, None, '2872240'), ('4302', '23034316', '1358696172', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240')] time used for this insertion : 0.0277252197265625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5058493614196777 time spend to save output : 0.02805948257446289 total time spend for step 1 : 1.5339088439941406 step2:final Fri May 16 05:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23034316) 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 23034316 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358693373,1358693408,1358693404,1358693401,1358693453,1358693450,1358693446,1358693485,1358693482,1358693478,1358693532,1358693526,1358693522,1358693518,1358693514,1358693512,1358693575,1358693573,1358693615,1358693612,1358693609,1358693654,1358693650,1358693646,1358693642,1358693638,1358693687,1358693684,1358693681,1358693678,1358693675,1358693718,1358693715,1358693712,1358693710,1358694189,1358694162,1358694124,1358694097,1358694071,1358694037,1358694529,1358694526,1358694522,1358694403,1358694506,1358695040,1358694984,1358694931,1358694883,1358694827,1358694776,1358695641,1358695628,1358695609,1358695826,1358695791,1358695763,1358695736,1358695707,1358696172); 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([23034316]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} new output for save of step final : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] map_info['map_portfolio_photo'] : {23034316: [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776, 1358694529, 1358694526, 1358694522, 1358694506, 1358694403, 1358694189, 1358694162, 1358694124, 1358694097, 1358694071, 1358694037, 1358693718, 1358693715, 1358693712, 1358693710, 1358693687, 1358693684, 1358693681, 1358693678, 1358693675, 1358693654, 1358693650, 1358693646, 1358693642, 1358693638, 1358693615, 1358693612, 1358693609, 1358693575, 1358693573, 1358693532, 1358693526, 1358693522, 1358693518, 1358693514, 1358693512, 1358693485, 1358693482, 1358693478, 1358693453, 1358693450, 1358693446, 1358693408, 1358693404, 1358693401, 1358693373]} final : False mtd_id 4302 list_pids : [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] Looping around the photos to save general results len do output : 15 /1358696172.Didn't retrieve data . /1358695826.Didn't retrieve data . /1358695791.Didn't retrieve data . /1358695763.Didn't retrieve data . /1358695736.Didn't retrieve data . /1358695707.Didn't retrieve data . /1358695641.Didn't retrieve data . /1358695628.Didn't retrieve data . /1358695609.Didn't retrieve data . /1358695040.Didn't retrieve data . /1358694984.Didn't retrieve data . /1358694931.Didn't retrieve data . /1358694883.Didn't retrieve data . /1358694827.Didn't retrieve data . /1358694776.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, '2872240') ('4302', '23034316', '1358696172', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '23034316', '1358696172', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695826', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695791', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695763', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695736', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695707', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695641', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695628', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695609', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358695040', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358694984', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358694931', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358694883', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358694827', '0.06122078767478795', None, None, None, None, '2872240'), ('4302', '23034316', '1358694776', '0.06122078767478795', None, None, None, None, '2872240')] time used for this insertion : 0.019865036010742188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.19449472427368164 time spend to save output : 0.02055811882019043 total time spend for step 2 : 0.21505284309387207 step3:velours_tree Fri May 16 05:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23034316: [{'flou': 23034355, 'cartonnette': 23034356, 'Carton_gris': 23034357, 'kraft': 23034358, 'autre_refus': 23034359, 'Teint_Dans_La_Masse': 23034360, 'environnement': 23034361, 'papier': 23034362, 'mal_croppe': 23034363, 'metal': 23034364, 'Carton_brun': 23034365, 'plastique': 23034366}]} input_args_next_step : {23034316: ()} output_args : {23034316: [{'flou': 23034355, 'cartonnette': 23034356, 'Carton_gris': 23034357, 'kraft': 23034358, 'autre_refus': 23034359, 'Teint_Dans_La_Masse': 23034360, 'environnement': 23034361, 'papier': 23034362, 'mal_croppe': 23034363, 'metal': 23034364, 'Carton_brun': 23034365, 'plastique': 23034366}]} args : 23034316 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 : ({'flou': 23034355, 'cartonnette': 23034356, 'Carton_gris': 23034357, 'kraft': 23034358, 'autre_refus': 23034359, 'Teint_Dans_La_Masse': 23034360, 'environnement': 23034361, 'papier': 23034362, 'mal_croppe': 23034363, 'metal': 23034364, 'Carton_brun': 23034365, 'plastique': 23034366},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23034316) 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([23034316]) 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.31572651863098145 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.31578516960144043 step4:send_mail_cod Fri May 16 05:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} input_args_next_step : {1358696172: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358696172 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695826 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695791 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695763 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695736 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695707 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695641 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695628 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695609 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358695040 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358694984 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358694931 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358694883 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358694827 depend.output_id : 0 input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ()} output_args : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',)} args : 1358694776 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 : {23034316: [{'flou': 23034355, 'cartonnette': 23034356, 'Carton_gris': 23034357, 'kraft': 23034358, 'autre_refus': 23034359, 'Teint_Dans_La_Masse': 23034360, 'environnement': 23034361, 'papier': 23034362, 'mal_croppe': 23034363, 'metal': 23034364, 'Carton_brun': 23034365, 'plastique': 23034366}]} input_args_next_step : {1358696172: ('0.06122078767478795',), 1358695826: ('0.06122078767478795',), 1358695791: ('0.06122078767478795',), 1358695763: ('0.06122078767478795',), 1358695736: ('0.06122078767478795',), 1358695707: ('0.06122078767478795',), 1358695641: ('0.06122078767478795',), 1358695628: ('0.06122078767478795',), 1358695609: ('0.06122078767478795',), 1358695040: ('0.06122078767478795',), 1358694984: ('0.06122078767478795',), 1358694931: ('0.06122078767478795',), 1358694883: ('0.06122078767478795',), 1358694827: ('0.06122078767478795',), 1358694776: ('0.06122078767478795',), 23034316: ()} output_args : {23034316: [{'flou': 23034355, 'cartonnette': 23034356, 'Carton_gris': 23034357, 'kraft': 23034358, 'autre_refus': 23034359, 'Teint_Dans_La_Masse': 23034360, 'environnement': 23034361, 'papier': 23034362, 'mal_croppe': 23034363, 'metal': 23034364, 'Carton_brun': 23034365, 'plastique': 23034366}]} args : 23034316 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 :16, first value : ('0.06122078767478795',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23034316) 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 (1358696172,1358695826,1358695791,1358695763,1358695736,1358695707,1358695641,1358695628,1358695609,1358695040,1358694984,1358694931,1358694883,1358694827,1358694776) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358694776 begin to download photo : 1358694984 begin to download photo : 1358695641 begin to download photo : 1358695791 download finish for photo 1358694776 begin to download photo : 1358694827 download finish for photo 1358695641 begin to download photo : 1358695707 download finish for photo 1358694984 begin to download photo : 1358695040 download finish for photo 1358695791 begin to download photo : 1358695826 download finish for photo 1358695707 begin to download photo : 1358695736 download finish for photo 1358695040 begin to download photo : 1358695609 download finish for photo 1358694827 begin to download photo : 1358694883 download finish for photo 1358695826 begin to download photo : 1358696172 download finish for photo 1358695609 begin to download photo : 1358695628 download finish for photo 1358695736 begin to download photo : 1358695763 download finish for photo 1358696172 download finish for photo 1358694883 begin to download photo : 1358694931 download finish for photo 1358695628 download finish for photo 1358694931 download finish for photo 1358695763 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette230343551747367940/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P23034316_16-05-2025_05_59_00.pdf 23034355 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=23034355 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230343551747367940 23034356 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=23034356 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358694705: '1747346245_3174940_1358693514_f2a66a7f0fa7d1ed59d39241af1d2d2d_rle_crop_3800136307_0.png', 1358695603: '1747346366_3177976_1358693715_1168e3a7fea7746310f14f0060e3c790_rle_crop_3800145843_0.png', 1358696633: '1747346487_3271811_1358694162_403de9d6a7d9ac803b236339f45798f3_rle_crop_3800151536_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/832e30b1ca39cc77711f80c8962145a7_47594469.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/25b8c3a85b91a1773f085309218f576f_14358617.png change filename to text .imagette230343561747367940/ imagette230343561747367940/1747346366_3177976_1358693715_1168e3a7fea7746310f14f0060e3c790_rle_crop_3800145843_0.png.png imagette230343561747367940/1747346487_3271811_1358694162_403de9d6a7d9ac803b236339f45798f3_rle_crop_3800151536_0.png.png imagette230343561747367940/1747346245_3174940_1358693514_f2a66a7f0fa7d1ed59d39241af1d2d2d_rle_crop_3800136307_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/d18f186f32763f31dba873c52bd4a3b3_44479295.png imagette230343561747367940 23034358 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=23034358 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358695614: '1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145857_0.png', 1358695616: '1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145853_0.png', 1358696642: '1747346487_3271811_1358694529_d91aa28ef4f3b6b7f54b43ff91a012be_rle_crop_3800151520_0.png', 1358696643: '1747346487_3271811_1358694162_403de9d6a7d9ac803b236339f45798f3_rle_crop_3800151539_0.png', 1358696644: '1747346487_3271811_1358694124_6856d2c2e171144a0d2165e4f65c120d_rle_crop_3800151553_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/7e93b20b51c5a34559462b75829ecd38_20757114.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/9f557e1d85d6441761ced9cba9d57ac9_31539164.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/43f7064cfd19c9d37a0c6bb2b7184604_73376945.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/badd4445b2c6d81678d147c65803a58c_27207435.png change filename to text .imagette230343581747367940/ imagette230343581747367940/1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145853_0.png.png imagette230343581747367940/1747346487_3271811_1358694529_d91aa28ef4f3b6b7f54b43ff91a012be_rle_crop_3800151520_0.png.png imagette230343581747367940/1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145857_0.png.png imagette230343581747367940/1747346487_3271811_1358694162_403de9d6a7d9ac803b236339f45798f3_rle_crop_3800151539_0.png.png imagette230343581747367940/1747346487_3271811_1358694124_6856d2c2e171144a0d2165e4f65c120d_rle_crop_3800151553_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/c6ac4d7ddd132038ddefc78ac5fac9c0_54441257.png imagette230343581747367940 23034359 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=23034359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358694690: '1747346245_3174940_1358693512_e464730af60b7bfd45337dd4c883d35d_rle_crop_3800136314_0.png', 1358696631: '1747346487_3271811_1358694162_403de9d6a7d9ac803b236339f45798f3_rle_crop_3800151542_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/cde0a66288e8948e9a89865a369c65e8_56816278.png change filename to text .imagette230343591747367940/ imagette230343591747367940/1747346245_3174940_1358693512_e464730af60b7bfd45337dd4c883d35d_rle_crop_3800136314_0.png.png imagette230343591747367940/1747346487_3271811_1358694162_403de9d6a7d9ac803b236339f45798f3_rle_crop_3800151542_0.png.png imagette230343631747367941/ imagette230343641747367941/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/79120ce48c73f376bc7eed9495f2e74f_95462914.png imagette230343591747367940 23034363 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=23034363 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230343631747367941 23034364 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=23034364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230343641747367941 23034366 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=23034366 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358694723: '1747346245_3174940_1358693518_4c17ea91c04987b021bd025bf5cb8b8b_rle_crop_3800136300_0.png', 1358694726: '1747346245_3174940_1358693514_f2a66a7f0fa7d1ed59d39241af1d2d2d_rle_crop_3800136309_0.png', 1358696639: '1747346487_3271811_1358694097_1d406b9e4e29f4d7c27d484f8a0a3df7_rle_crop_3800152557_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/169313bd228355fc870a6f5ebae864fc_66085274.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/f03171ce7df2ca3ad0cdc5a03fd97fda_50554138.png change filename to text .imagette230343661747367941/ imagette230343661747367941/1747346487_3271811_1358694097_1d406b9e4e29f4d7c27d484f8a0a3df7_rle_crop_3800152557_0.png.png imagette230343661747367941/1747346245_3174940_1358693518_4c17ea91c04987b021bd025bf5cb8b8b_rle_crop_3800136300_0.png.png imagette230343661747367941/1747346245_3174940_1358693514_f2a66a7f0fa7d1ed59d39241af1d2d2d_rle_crop_3800136309_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/662557b89e27aeecb9cf8a99c0acb3a0_25785956.png imagette230343661747367941 23034357 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=23034357 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358694697: '1747346245_3174940_1358693575_16c078ee2019c3ed000b2f22bbeb583b_rle_crop_3800136252_0.png', 1358695592: '1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145858_0.png', 1358695594: '1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145860_0.png', 1358695596: '1747346366_3177976_1358693710_656d2d370ba96a36799075deb6f3351c_rle_crop_3800145882_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/fc8355853e03eb2a831bfbb5c7cf52fb_18668238.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/af1643bbeede9de1372e620c616824dd_48050615.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/b1f8620a63ea22ccd4c3cc83c2baa883_12864447.png change filename to text .imagette230343571747367941/ imagette230343571747367941/1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145858_0.png.png imagette230343571747367941/1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145860_0.png.png imagette230343571747367941/1747346245_3174940_1358693575_16c078ee2019c3ed000b2f22bbeb583b_rle_crop_3800136252_0.png.png imagette230343571747367941/1747346366_3177976_1358693710_656d2d370ba96a36799075deb6f3351c_rle_crop_3800145882_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/a61d104f5ed348ae33c91562aefe9812_52423682.png imagette230343571747367941 23034360 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=23034360 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358694683: '1747346245_3174940_1358693512_e464730af60b7bfd45337dd4c883d35d_rle_crop_3800136317_0.png', 1358695588: '1747346366_3177976_1358693715_1168e3a7fea7746310f14f0060e3c790_rle_crop_3800145847_0.png', 1358695589: '1747346366_3177976_1358693715_1168e3a7fea7746310f14f0060e3c790_rle_crop_3800145844_0.png', 1358695590: '1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145869_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/cd78249b361279bba5c483dcdc32051c_66263112.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/2a76d0d2e35b9e8dc75e056ed2395e5c_67252764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/ece95f888e513024e4fbfe65f2f0d85a_57106001.png change filename to text .imagette230343601747367941/ imagette230343601747367941/1747346366_3177976_1358693712_758ad01c722cbba426373d5004f6dd7c_rle_crop_3800145869_0.png.png imagette230343601747367941/1747346366_3177976_1358693715_1168e3a7fea7746310f14f0060e3c790_rle_crop_3800145847_0.png.png imagette230343601747367941/1747346245_3174940_1358693512_e464730af60b7bfd45337dd4c883d35d_rle_crop_3800136317_0.png.png imagette230343601747367941/1747346366_3177976_1358693715_1168e3a7fea7746310f14f0060e3c790_rle_crop_3800145844_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/987cc853c7dfc5082dbb5686457fdbe7_72498801.png imagette230343601747367941 23034365 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=23034365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358694712: '1747346245_3174940_1358693512_e464730af60b7bfd45337dd4c883d35d_rle_crop_3800136318_0.png', 1358696634: '1747346487_3271811_1358694529_d91aa28ef4f3b6b7f54b43ff91a012be_rle_crop_3800151523_0.png', 1358696636: '1747346487_3271811_1358694124_6856d2c2e171144a0d2165e4f65c120d_rle_crop_3800151556_0.png', 1358696637: '1747346487_3271811_1358694037_741aab7852b58cad181306a86aa83a74_rle_crop_3800152599_0.png', 1358696638: '1747346487_3271811_1358694037_741aab7852b58cad181306a86aa83a74_rle_crop_3800152597_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/a81fe1f0a9708d6571ae849d9575ced4_39131755.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/af58c8f4de3df322d054a7f4cbb109eb_66701817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/1ffdd150fe411dbf95349decb04fd103_65259620.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/5ef31e0c5d0f89d1d277b5cd8667bfca_71821954.png change filename to text .imagette230343651747367942/ imagette230343651747367942/1747346487_3271811_1358694037_741aab7852b58cad181306a86aa83a74_rle_crop_3800152597_0.png.png imagette230343651747367942/1747346487_3271811_1358694124_6856d2c2e171144a0d2165e4f65c120d_rle_crop_3800151556_0.png.png imagette230343651747367942/1747346245_3174940_1358693512_e464730af60b7bfd45337dd4c883d35d_rle_crop_3800136318_0.png.png imagette230343651747367942/1747346487_3271811_1358694037_741aab7852b58cad181306a86aa83a74_rle_crop_3800152599_0.png.png imagette230343651747367942/1747346487_3271811_1358694529_d91aa28ef4f3b6b7f54b43ff91a012be_rle_crop_3800151523_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/7014b52af3f2a6d9303eb6360431d535_25978312.png imagette230343651747367942 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23034316 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23034367,23034368,23034369,23034370,23034372,23034373,23034374,23034375,23034376,23034377,23034378,23034379?tags=flou,cartonnette,Carton_gris,kraft,autre_refus,Teint_Dans_La_Masse,environnement,papier,mal_croppe,metal,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1358696172] : ('0.06122078767478795',) no score found for photo 1358696172 We are sending mail with results at report@fotonower.com args[1358695826] : ('0.06122078767478795',) no score found for photo 1358695826 We are sending mail with results at report@fotonower.com args[1358695791] : ('0.06122078767478795',) no score found for photo 1358695791 We are sending mail with results at report@fotonower.com args[1358695763] : ('0.06122078767478795',) no score found for photo 1358695763 We are sending mail with results at report@fotonower.com args[1358695736] : ('0.06122078767478795',) no score found for photo 1358695736 We are sending mail with results at report@fotonower.com args[1358695707] : ('0.06122078767478795',) no score found for photo 1358695707 We are sending mail with results at report@fotonower.com args[1358695641] : ('0.06122078767478795',) no score found for photo 1358695641 We are sending mail with results at report@fotonower.com args[1358695628] : ('0.06122078767478795',) no score found for photo 1358695628 We are sending mail with results at report@fotonower.com args[1358695609] : ('0.06122078767478795',) no score found for photo 1358695609 We are sending mail with results at report@fotonower.com args[1358695040] : ('0.06122078767478795',) no score found for photo 1358695040 We are sending mail with results at report@fotonower.com args[1358694984] : ('0.06122078767478795',) no score found for photo 1358694984 We are sending mail with results at report@fotonower.com args[1358694931] : ('0.06122078767478795',) no score found for photo 1358694931 We are sending mail with results at report@fotonower.com args[1358694883] : ('0.06122078767478795',) no score found for photo 1358694883 We are sending mail with results at report@fotonower.com args[1358694827] : ('0.06122078767478795',) no score found for photo 1358694827 We are sending mail with results at report@fotonower.com args[1358694776] : ('0.06122078767478795',) no score found for photo 1358694776 We are sending mail with results at report@fotonower.com refus_total : 0.06122078767478795 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=23034316 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_P23034316_16-05-2025_05_59_00.pdf results_Auto_P23034316_16-05-2025_05_59_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034316_16-05-2025_05_59_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23034316','results_Auto_P23034316_16-05-2025_05_59_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034316_16-05-2025_05_59_00.pdf','pdf','','0.23','0.06122078767478795') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23034316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] map_info['map_portfolio_photo'] : {23034316: [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776, 1358694529, 1358694526, 1358694522, 1358694506, 1358694403, 1358694189, 1358694162, 1358694124, 1358694097, 1358694071, 1358694037, 1358693718, 1358693715, 1358693712, 1358693710, 1358693687, 1358693684, 1358693681, 1358693678, 1358693675, 1358693654, 1358693650, 1358693646, 1358693642, 1358693638, 1358693615, 1358693612, 1358693609, 1358693575, 1358693573, 1358693532, 1358693526, 1358693522, 1358693518, 1358693514, 1358693512, 1358693485, 1358693482, 1358693478, 1358693453, 1358693450, 1358693446, 1358693408, 1358693404, 1358693401, 1358693373]} final : False mtd_id 4302 list_pids : [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] 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, '2872240') ('4302', '23034316', '1358696172', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '23034316', '1358696172', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240')] time used for this insertion : 0.01877593994140625 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.38159441947937 time spend to save output : 0.01912689208984375 total time spend for step 4 : 4.400721311569214 step5:split_time_score Fri May 16 05:59:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['23034316'] 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 : [('23034316',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23034316) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358695791: {'path': 'temp/1747367939_2322791_1358695791_fa59981644dcf3c3c3b725f37120d09b.jpg', 'extension': 'jpg'}, 1358695826: {'path': 'temp/1747367939_2322791_1358695826_da97b003b8840f71e49f9229585377e4.jpg', 'extension': 'jpg'}, 1358696172: {'path': 'temp/1747367939_2322791_1358696172_a87098600deb44694a90821798e053ed.jpg', 'extension': 'jpg'}, 1358694984: {'path': 'temp/1747367939_2322791_1358694984_bc5ae01f73841d09427b2da74b738f1f.jpg', 'extension': 'jpg'}, 1358695040: {'path': 'temp/1747367939_2322791_1358695040_020219c91909660b69d3f8f871462ba0.jpg', 'extension': 'jpg'}, 1358695609: {'path': 'temp/1747367939_2322791_1358695609_cef165684ba1b1bc7e67c6a8288f54dd.jpg', 'extension': 'jpg'}, 1358695628: {'path': 'temp/1747367939_2322791_1358695628_1f20db23094da22512700550c4c506c4.jpg', 'extension': 'jpg'}, 1358694776: {'path': 'temp/1747367939_2322791_1358694776_87c8876fe09da4499f992526746189ab.jpg', 'extension': 'jpg'}, 1358694827: {'path': 'temp/1747367939_2322791_1358694827_bf04f010fbe4cca7c2b59c7003196265.jpg', 'extension': 'jpg'}, 1358694883: {'path': 'temp/1747367939_2322791_1358694883_45d590c3046328e2ca5908b40bf6fdef.jpg', 'extension': 'jpg'}, 1358694931: {'path': 'temp/1747367939_2322791_1358694931_9f7a5cba63e699d017c800b37c351ddf.jpg', 'extension': 'jpg'}, 1358695641: {'path': 'temp/1747367939_2322791_1358695641_7432176daf7a4e252f6f0ec05bea5fba.jpg', 'extension': 'jpg'}, 1358695707: {'path': 'temp/1747367939_2322791_1358695707_efc5cc1517a347acb0300078dc5c9e44.jpg', 'extension': 'jpg'}, 1358695736: {'path': 'temp/1747367939_2322791_1358695736_af42cb1e590e39bc571fea5de9702676.jpg', 'extension': 'jpg'}, 1358695763: {'path': 'temp/1747367939_2322791_1358695763_383929f9172c5da83e482263b30a9d44.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 = 23034316; (('arc_en_ciel_jrm_live',), ('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 = 23034316 group by h (('23', 61),) 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=23034316 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 (23034316) 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 (23034316) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15052025 23034316 Nombre de photos uploadées : 61 / 23040 (0%) 15052025 23034316 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 15052025 23034316 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1358693373, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/2708b1432cd09c8dd01b843abfe1feb6.jpg', 'username': None, 'uploaded_at': 1747345567, 'text': 'image_15052025_23_45_33_10144.jpg'}, {'photo_id': 1358693408, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/ff79944c11090766d3f7c6ca7fbce085.jpg', 'username': None, 'uploaded_at': 1747345628, 'text': 'image_15052025_23_45_54_10139.jpg'}, {'photo_id': 1358693404, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/2488fd1847ad0f757d8dae9e9e480e6f.jpg', 'username': None, 'uploaded_at': 1747345628, 'text': 'image_15052025_23_46_03_9147.jpg'}, {'photo_id': 1358693401, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/15/57cade5d5ab478f1ced3451bd8541dd9.jpg', 'username': None, 'uploaded_at': 1747345628, 'text': 'image_15052025_23_46_23_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035288333892822266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23034316, '2025-05-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1807564,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023508071899414062 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= 1807564 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22988253, 'dashboard_result_id': 10615018, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988253_15-05-2025_01_53_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22988257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988265, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22988491, 'dashboard_result_id': 10615019, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988491_15-05-2025_02_07_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22988502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988512, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22988734, 'dashboard_result_id': 10615020, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988734_15-05-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22988772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988783, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22989144, 'dashboard_result_id': 10615021, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989144_15-05-2025_02_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22989184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22989185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22989186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22989187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22989188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22989189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22989190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22989191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22989192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22989193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22989194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22989195, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22989750, 'dashboard_result_id': 10615022, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989750_15-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22989789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22989790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22989791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22989792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22989793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22989794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22989795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22989796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22989797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22989798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22989799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22989800, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22990482, 'dashboard_result_id': 10615023, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990482_15-05-2025_03_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22990508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22990509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22990510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22990511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22990512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22990513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22990514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22990515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22990516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22990517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22990518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22990519, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22990907, 'dashboard_result_id': 10615024, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990907_15-05-2025_03_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22990932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22990933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22990934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22990935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22990936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22990937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22990938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22990939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22990940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22990941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22990942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22990943, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22991626, 'dashboard_result_id': 10615025, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22991626_15-05-2025_03_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22991632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22991633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22991634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22991635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22991636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22991637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22991638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22991639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22991640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22991641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22991642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22991643, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22992125, 'dashboard_result_id': 10615026, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992125_15-05-2025_03_47_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22992157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22992158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22992159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22992160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22992161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22992162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22992163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22992164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22992165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22992166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22992167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22992168, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22992512, 'dashboard_result_id': 10615027, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992512_15-05-2025_04_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22992549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22992550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22992551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22992553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22992554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22992555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22992556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22992557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22992558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22992559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22992560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22992561, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22992999, 'dashboard_result_id': 10615028, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992999_15-05-2025_04_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22993050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22993051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22993052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22993053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22993054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22993055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22993056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22993057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22993058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22993059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22993060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22993062, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22994106, 'dashboard_result_id': 10615029, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994106_15-05-2025_05_17_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994118, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22994419, 'dashboard_result_id': 10615030, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994419_15-05-2025_06_10_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994431, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22994763, 'dashboard_result_id': 10615031, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994763_15-05-2025_05_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994812, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22995106, 'dashboard_result_id': 10615032, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995106_15-05-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995119, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22995417, 'dashboard_result_id': 10615033, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995417_15-05-2025_06_17_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995436, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22995977, 'dashboard_result_id': 10615034, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995977_15-05-2025_06_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995993, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22997790, 'dashboard_result_id': 10615035, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22997790_15-05-2025_08_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22997796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22997797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22997798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22997799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22997800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22997801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22997802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22997803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22997804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22997805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22997806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22997807, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22998181, 'dashboard_result_id': 10615036, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998181_15-05-2025_08_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22998186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998195, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22998448, 'dashboard_result_id': 10615037, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998448_15-05-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22998494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998505, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 22998836, 'dashboard_result_id': 10615038, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998836_15-05-2025_09_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22998913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998918, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23000128, 'dashboard_result_id': 10615039, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000128_15-05-2025_09_50_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000151, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23000544, 'dashboard_result_id': 10615040, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000544_15-05-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000577, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23000864, 'dashboard_result_id': 10615041, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000864_15-05-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000900, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23001231, 'dashboard_result_id': 10615042, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001231_15-05-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23001245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23001246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23001247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23001248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23001249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23001250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23001251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23001252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23001253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23001254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23001255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23001256, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23001704, 'dashboard_result_id': 10615043, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001704_15-05-2025_10_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23001711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23001712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23001713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23001714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23001715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23001716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23001717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23001718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23001719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23001720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23001721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23001722, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23002026, 'dashboard_result_id': 10615044, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002026_15-05-2025_11_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23002088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23002089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23002090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23002091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23002092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23002093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23002094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23002095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23002096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23002097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23002098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23002099, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23002561, 'dashboard_result_id': 10615045, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002561_15-05-2025_11_21_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23002587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23002588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23002589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23002590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23002591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23002592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23002593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23002594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23002595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23002596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23002597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23002598, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23003433, 'dashboard_result_id': 10615046, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003433_15-05-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23003450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23003451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23003452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23003453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23003454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23003455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23003456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23003457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23003458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23003459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23003460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23003461, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23003828, 'dashboard_result_id': 10615047, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003828_15-05-2025_11_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23003846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23003847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23003848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23003849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23003850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23003851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23003852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23003853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23003854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23003855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23003856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23003857, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23004292, 'dashboard_result_id': 10615048, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004292_15-05-2025_12_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23004306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23004307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23004308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23004309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23004310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23004311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23004312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23004313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23004314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23004315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23004316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23004317, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23004840, 'dashboard_result_id': 10615049, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004840_15-05-2025_12_13_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23004878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23004880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23004881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23004882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23004883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23004884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23004885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23004886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23004887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23004888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23004889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23004890, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23008283, 'dashboard_result_id': 10615050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008283_15-05-2025_14_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23008285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23008286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23008287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23008288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23008289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23008291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23008292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23008295, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23008972, 'dashboard_result_id': 10615051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008972_15-05-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009007, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23009044, 'dashboard_result_id': 10615052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009044_15-05-2025_15_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009083, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23009493, 'dashboard_result_id': 10615053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23009549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009560, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23010407, 'dashboard_result_id': 10615054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23010407_15-05-2025_15_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23010419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23010420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23010421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23010422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23010423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23010424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23010425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23010426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23010427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23010428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23010429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23010430, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23011070, 'dashboard_result_id': 10615055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011070_15-05-2025_15_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23011094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23011095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23011096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23011097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23011098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23011099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23011100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23011101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23011102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23011103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23011104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23011105, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23011766, 'dashboard_result_id': 10615056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011766_15-05-2025_16_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23011814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23011816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23011817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23011818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23011819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23011820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23011821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23011822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23011823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23011824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23011825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23011826, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23012401, 'dashboard_result_id': 10615057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23012401_15-05-2025_16_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23012456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23012457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23012458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23012459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23012460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23012461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23012462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23012463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23012464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23012465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23012466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23012467, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23013214, 'dashboard_result_id': 10615058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013214_15-05-2025_16_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23013239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23013240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23013241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23013242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23013243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23013244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23013245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23013246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23013247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23013248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23013249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23013250, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23013891, 'dashboard_result_id': 10615059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013891_15-05-2025_16_50_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23013943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23013944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23013945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23013946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23013947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23013948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23013949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23013950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23013951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23013952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23013953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23013954, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23014751, 'dashboard_result_id': 10615060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23014751_15-05-2025_17_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23014783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23014784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23014785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23014786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23014787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23014788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23014789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23014790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23014791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23014792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23014793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23014794, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23015319, 'dashboard_result_id': 10615061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23015319_15-05-2025_17_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23015347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23015348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23015349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23015350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23015351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23015352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23015353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23015354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23015355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23015356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23015357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23015358, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23016047, 'dashboard_result_id': 10615062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23016047_15-05-2025_17_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23016081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23016082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23016083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23016084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23016085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23016086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23016087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23016088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23016089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23016090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23016092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23016093, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23018346, 'dashboard_result_id': 10615063, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018346_15-05-2025_18_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23018385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23018386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23018388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23018389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23018390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23018391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23018392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23018393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23018394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23018395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23018396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23018397, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23018998, 'dashboard_result_id': 10615064, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018998_15-05-2025_18_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23019015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23019016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23019017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23019018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23019019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23019020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23019021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23019022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23019023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23019024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23019025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23019026, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23019454, 'dashboard_result_id': 10615065, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23019454_15-05-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23019466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23019467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23019468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23019469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23019470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23019471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23019472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23019473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23019474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23019475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23019476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23019477, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23020132, 'dashboard_result_id': 10615066, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020132_15-05-2025_19_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23020150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23020151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23020152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23020153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23020154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23020155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23020156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23020157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23020158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23020159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23020160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23020161, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23020871, 'dashboard_result_id': 10615067, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020871_15-05-2025_19_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23020927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23020928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23020929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23020930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23020931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23020932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23020933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23020934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23020935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23020936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23020937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23020939, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23021706, 'dashboard_result_id': 10615068, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23021706_15-05-2025_19_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23021737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23021738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23021739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23021740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23021741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23021742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23021743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23021744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23021745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23021746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23021747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23021748, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23022485, 'dashboard_result_id': 10615069, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23022485_15-05-2025_19_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23022521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23022522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23022523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23022524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23022525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23022526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23022527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23022528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23022532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23022534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23022537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23022539, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23023430, 'dashboard_result_id': 10615070, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23023430_15-05-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23023503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23023504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23023505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23023506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23023507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23023508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23023509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23023510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23023511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23023512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23023513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23023514, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23024114, 'dashboard_result_id': 10615071, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024114_15-05-2025_20_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23024188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23024189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23024190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23024191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23024192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23024193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23024194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23024195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23024196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23024197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23024198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23024199, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23024786, 'dashboard_result_id': 10615072, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024786_15-05-2025_20_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23024828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23024829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23024830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23024831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23024832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23024833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23024834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23024835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23024836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23024837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23024838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23024839, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23025613, 'dashboard_result_id': 10615073, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23025613_15-05-2025_21_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23025631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23025632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23025633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23025634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23025635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23025636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23025637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23025638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23025639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23025640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23025641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23025642, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23026853, 'dashboard_result_id': 10615074, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23026853_15-05-2025_21_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23026868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23026869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23026870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23026871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23026872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23026873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23026874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23026875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23026876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23026877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23026878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23026879, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23027570, 'dashboard_result_id': 10615075, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23027570_15-05-2025_21_33_22.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23027595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23027596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23027597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23027598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23027599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23027600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23027601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23027602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23027604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23027605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23027606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23027607, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23028235, 'dashboard_result_id': 10615076, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028235_15-05-2025_21_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23028248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23028249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23028250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23028251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23028252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23028253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23028254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23028255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23028256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23028257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23028258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23028259, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23028952, 'dashboard_result_id': 10615077, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028952_15-05-2025_22_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23029016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23029017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23029018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23029019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23029020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23029021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23029022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23029023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23029024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23029025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23029026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23029027, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23029826, 'dashboard_result_id': 10615078, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23029826_15-05-2025_22_17_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23029854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23029855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23029856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23029857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23029858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23029859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23029860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23029861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23029862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23029863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23029864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23029865, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23030463, 'dashboard_result_id': 10615079, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23030463_15-05-2025_22_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23030492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23030493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23030494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23030495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23030496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23030497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23030498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23030499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23030500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23030501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23030502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23030503, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23031149, 'dashboard_result_id': 10615080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031149_15-05-2025_22_52_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23031167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23031168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23031169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23031170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23031171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23031172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23031173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23031174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23031175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23031176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23031177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23031178, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23031903, 'dashboard_result_id': 10615081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031903_15-05-2025_23_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23031904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23031905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23031906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23031907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23031908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23031909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23031910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23031911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23031912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23031913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23031914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23031915, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23032463, 'dashboard_result_id': 10615082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23032463_16-05-2025_05_35_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23032487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23032488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23032489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23032490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23032491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23032492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23032493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23032494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23032495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23032496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23032497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23032498, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23033023, 'dashboard_result_id': 10615083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033023_16-05-2025_05_35_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23033030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23033031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23033032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23033033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23033034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23033035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23033036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23033037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23033038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23033039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23033040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23033041, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23033781, 'dashboard_result_id': 10615084, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033781_16-05-2025_05_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23033785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23033786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23033787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23033788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23033789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23033790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23033791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23033792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23033793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23033794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23033795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23033796, 'pht': 3726}}"}, {'dashboat_entry_day': 1807564, 'dashboard_run_id': 1819812, 'mtr_portfolio_id': 23034316, 'dashboard_result_id': 10615085, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034316_16-05-2025_05_36_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23034355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034366, '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 = 22988253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2855800, 'mtr_portfolio_id': 22988253, 'created_at': datetime.datetime(2025, 5, 15, 1, 53), 'result': '0.05444340879772715', 'result_long': None, 'result_double': None}] Qualite : 0.05444340879772715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22988253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988253_15-05-2025_01_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22988253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988253_15-05-2025_01_53_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22988257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988265, 'pht': 3726}}" where mtr_portfolio_id = 22988253 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22988253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615018, 0.05444340879772715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988253_15-05-2025_01_53_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22988257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988265, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22988491 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2855840, 'mtr_portfolio_id': 22988491, 'created_at': datetime.datetime(2025, 5, 15, 2, 7, 32), 'result': '0.058262728156427086', 'result_long': None, 'result_double': None}] Qualite : 0.058262728156427086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22988491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988491_15-05-2025_02_07_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22988491 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988491_15-05-2025_02_07_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22988502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988512, 'pht': 3726}}" where mtr_portfolio_id = 22988491 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22988491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615019, 0.058262728156427086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988491_15-05-2025_02_07_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22988502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988512, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22988734 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2855955, 'mtr_portfolio_id': 22988734, 'created_at': datetime.datetime(2025, 5, 15, 2, 16, 58), 'result': '0.07723340147573288', 'result_long': None, 'result_double': None}] Qualite : 0.07723340147573288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22988734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988734_15-05-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22988734 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988734_15-05-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22988772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988783, 'pht': 3726}}" where mtr_portfolio_id = 22988734 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22988734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615020, 0.07723340147573288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22988734_15-05-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22988772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22988773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22988774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22988775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22988776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22988777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22988778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22988779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22988780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22988781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22988782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22988783, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22989144 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856094, 'mtr_portfolio_id': 22989144, 'created_at': datetime.datetime(2025, 5, 15, 2, 32, 57), 'result': '0.028761598693393405', 'result_long': None, 'result_double': None}] Qualite : 0.028761598693393405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22989144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989144_15-05-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22989144 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989144_15-05-2025_02_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22989184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22989185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22989186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22989187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22989188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22989189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22989190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22989191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22989192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22989193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22989194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22989195, 'pht': 3726}}" where mtr_portfolio_id = 22989144 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22989144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615021, 0.028761598693393405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989144_15-05-2025_02_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22989184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22989185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22989186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22989187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22989188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22989189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22989190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22989191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22989192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22989193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22989194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22989195, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22989750 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856207, 'mtr_portfolio_id': 22989750, 'created_at': datetime.datetime(2025, 5, 15, 2, 48, 58), 'result': '0.03470190575954937', 'result_long': None, 'result_double': None}] Qualite : 0.03470190575954937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22989750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989750_15-05-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22989750 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989750_15-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22989789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22989790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22989791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22989792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22989793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22989794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22989795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22989796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22989797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22989798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22989799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22989800, 'pht': 3726}}" where mtr_portfolio_id = 22989750 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22989750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615022, 0.03470190575954937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22989750_15-05-2025_02_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22989789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22989790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22989791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22989792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22989793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22989794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22989795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22989796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22989797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22989798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22989799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22989800, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22990482 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856432, 'mtr_portfolio_id': 22990482, 'created_at': datetime.datetime(2025, 5, 15, 3, 2, 59), 'result': '0.03876147086803423', 'result_long': None, 'result_double': None}] Qualite : 0.03876147086803423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22990482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990482_15-05-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22990482 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990482_15-05-2025_03_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22990508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22990509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22990510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22990511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22990512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22990513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22990514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22990515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22990516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22990517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22990518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22990519, 'pht': 3726}}" where mtr_portfolio_id = 22990482 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22990482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615023, 0.03876147086803423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990482_15-05-2025_03_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22990508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22990509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22990510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22990511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22990512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22990513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22990514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22990515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22990516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22990517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22990518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22990519, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22990907 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856530, 'mtr_portfolio_id': 22990907, 'created_at': datetime.datetime(2025, 5, 15, 3, 19, 28), 'result': '0.04385833567155041', 'result_long': None, 'result_double': None}] Qualite : 0.04385833567155041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22990907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990907_15-05-2025_03_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22990907 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990907_15-05-2025_03_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22990932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22990933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22990934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22990935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22990936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22990937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22990938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22990939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22990940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22990941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22990942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22990943, 'pht': 3726}}" where mtr_portfolio_id = 22990907 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22990907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615024, 0.04385833567155041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22990907_15-05-2025_03_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22990932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22990933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22990934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22990935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22990936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22990937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22990938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22990939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22990940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22990941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22990942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22990943, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22991626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856674, 'mtr_portfolio_id': 22991626, 'created_at': datetime.datetime(2025, 5, 15, 3, 33), 'result': '0.05625571939106924', 'result_long': None, 'result_double': None}] Qualite : 0.05625571939106924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22991626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22991626_15-05-2025_03_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22991626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22991626_15-05-2025_03_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22991632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22991633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22991634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22991635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22991636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22991637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22991638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22991639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22991640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22991641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22991642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22991643, 'pht': 3726}}" where mtr_portfolio_id = 22991626 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22991626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615025, 0.05625571939106924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22991626_15-05-2025_03_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22991632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22991633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22991634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22991635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22991636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22991637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22991638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22991639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22991640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22991641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22991642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22991643, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22992125 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856810, 'mtr_portfolio_id': 22992125, 'created_at': datetime.datetime(2025, 5, 15, 3, 47, 8), 'result': '0.07975297742408026', 'result_long': None, 'result_double': None}] Qualite : 0.07975297742408026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22992125 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992125_15-05-2025_03_47_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22992125 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992125_15-05-2025_03_47_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22992157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22992158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22992159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22992160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22992161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22992162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22992163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22992164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22992165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22992166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22992167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22992168, 'pht': 3726}}" where mtr_portfolio_id = 22992125 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22992125 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615026, 0.07975297742408026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992125_15-05-2025_03_47_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22992157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22992158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22992159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22992160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22992161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22992162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22992163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22992164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22992165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22992166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22992167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22992168, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22992512 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2856931, 'mtr_portfolio_id': 22992512, 'created_at': datetime.datetime(2025, 5, 15, 4, 2, 58), 'result': '0.07059442131690002', 'result_long': None, 'result_double': None}] Qualite : 0.07059442131690002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22992512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992512_15-05-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22992512 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992512_15-05-2025_04_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22992549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22992550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22992551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22992553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22992554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22992555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22992556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22992557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22992558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22992559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22992560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22992561, 'pht': 3726}}" where mtr_portfolio_id = 22992512 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22992512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615027, 0.07059442131690002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992512_15-05-2025_04_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22992549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22992550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22992551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22992553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22992554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22992555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22992556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22992557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22992558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22992559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22992560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22992561, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22992999 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857137, 'mtr_portfolio_id': 22992999, 'created_at': datetime.datetime(2025, 5, 15, 4, 12, 58), 'result': '0.06711873963679484', 'result_long': None, 'result_double': None}] Qualite : 0.06711873963679484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22992999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992999_15-05-2025_04_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22992999 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992999_15-05-2025_04_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22993050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22993051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22993052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22993053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22993054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22993055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22993056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22993057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22993058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22993059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22993060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22993062, 'pht': 3726}}" where mtr_portfolio_id = 22992999 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22992999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615028, 0.06711873963679484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22992999_15-05-2025_04_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22993050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22993051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22993052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22993053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22993054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22993055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22993056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22993057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22993058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22993059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22993060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22993062, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22994106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857409, 'mtr_portfolio_id': 22994106, 'created_at': datetime.datetime(2025, 5, 15, 5, 17, 58), 'result': '0.08472485340266285', 'result_long': None, 'result_double': None}] Qualite : 0.08472485340266285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22994106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994106_15-05-2025_05_17_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22994106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994106_15-05-2025_05_17_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994118, 'pht': 3726}}" where mtr_portfolio_id = 22994106 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22994106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615029, 0.08472485340266285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994106_15-05-2025_05_17_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994118, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22994419 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857575, 'mtr_portfolio_id': 22994419, 'created_at': datetime.datetime(2025, 5, 15, 6, 10, 30), 'result': '0.04293297644492975', 'result_long': None, 'result_double': None}] Qualite : 0.04293297644492975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22994419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994419_15-05-2025_06_10_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22994419 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994419_15-05-2025_06_10_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994431, 'pht': 3726}}" where mtr_portfolio_id = 22994419 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22994419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615030, 0.04293297644492975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994419_15-05-2025_06_10_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994431, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22994763 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857607, 'mtr_portfolio_id': 22994763, 'created_at': datetime.datetime(2025, 5, 15, 5, 49, 28), 'result': '0.039447828414036684', 'result_long': None, 'result_double': None}] Qualite : 0.039447828414036684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22994763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994763_15-05-2025_05_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22994763 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994763_15-05-2025_05_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994812, 'pht': 3726}}" where mtr_portfolio_id = 22994763 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22994763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615031, 0.039447828414036684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22994763_15-05-2025_05_49_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22994801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22994802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22994803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22994804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22994805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22994806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22994807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22994808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22994809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22994810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22994811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22994812, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22995106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857705, 'mtr_portfolio_id': 22995106, 'created_at': datetime.datetime(2025, 5, 15, 6, 3, 30), 'result': '0.06490451010105872', 'result_long': None, 'result_double': None}] Qualite : 0.06490451010105872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22995106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995106_15-05-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22995106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995106_15-05-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995119, 'pht': 3726}}" where mtr_portfolio_id = 22995106 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22995106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615032, 0.06490451010105872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995106_15-05-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995119, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22995417 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2857798, 'mtr_portfolio_id': 22995417, 'created_at': datetime.datetime(2025, 5, 15, 6, 17, 28), 'result': '0.03377683061057644', 'result_long': None, 'result_double': None}] Qualite : 0.03377683061057644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22995417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995417_15-05-2025_06_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22995417 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995417_15-05-2025_06_17_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995436, 'pht': 3726}}" where mtr_portfolio_id = 22995417 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22995417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615033, 0.03377683061057644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995417_15-05-2025_06_17_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995436, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22995977 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 = 22995977 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 = 22995977 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22995977 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 = 22995977 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 = 22995977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995977_15-05-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22995977 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22995977_15-05-2025_06_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22995982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22995983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22995984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22995985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22995986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22995987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22995988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22995989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22995990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22995991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22995992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22995993, 'pht': 3726}}" where mtr_portfolio_id = 22995977 and dashboard_run_id = 1819812 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22997790 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2858382, 'mtr_portfolio_id': 22997790, 'created_at': datetime.datetime(2025, 5, 15, 8, 16, 32), 'result': '0.024357523084263408', 'result_long': None, 'result_double': None}] Qualite : 0.024357523084263408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22997790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22997790_15-05-2025_08_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22997790 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22997790_15-05-2025_08_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22997796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22997797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22997798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22997799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22997800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22997801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22997802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22997803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22997804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22997805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22997806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22997807, 'pht': 3726}}" where mtr_portfolio_id = 22997790 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22997790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615035, 0.024357523084263408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22997790_15-05-2025_08_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22997796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22997797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22997798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22997799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22997800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22997801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22997802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22997803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22997804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22997805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22997806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22997807, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22998181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2858454, 'mtr_portfolio_id': 22998181, 'created_at': datetime.datetime(2025, 5, 15, 8, 32, 58), 'result': '0.05062213807120296', 'result_long': None, 'result_double': None}] Qualite : 0.05062213807120296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22998181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998181_15-05-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22998181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998181_15-05-2025_08_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22998186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998195, 'pht': 3726}}" where mtr_portfolio_id = 22998181 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22998181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615036, 0.05062213807120296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998181_15-05-2025_08_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22998186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998195, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22998448 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2858506, 'mtr_portfolio_id': 22998448, 'created_at': datetime.datetime(2025, 5, 15, 8, 48, 59), 'result': '0.037449502091689395', 'result_long': None, 'result_double': None}] Qualite : 0.037449502091689395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22998448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998448_15-05-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22998448 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998448_15-05-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22998494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998505, 'pht': 3726}}" where mtr_portfolio_id = 22998448 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22998448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615037, 0.037449502091689395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998448_15-05-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22998494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998505, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22998836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2858662, 'mtr_portfolio_id': 22998836, 'created_at': datetime.datetime(2025, 5, 15, 9, 2, 59), 'result': '0.05597546908873392', 'result_long': None, 'result_double': None}] Qualite : 0.05597546908873392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22998836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998836_15-05-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22998836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998836_15-05-2025_09_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22998913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998918, 'pht': 3726}}" where mtr_portfolio_id = 22998836 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22998836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615038, 0.05597546908873392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22998836_15-05-2025_09_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22998907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22998908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22998909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22998910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22998911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22998912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22998913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22998914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22998915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22998916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22998917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22998918, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23000128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859048, 'mtr_portfolio_id': 23000128, 'created_at': datetime.datetime(2025, 5, 15, 9, 50, 57), 'result': '0.05953649588412814', 'result_long': None, 'result_double': None}] Qualite : 0.05953649588412814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23000128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000128_15-05-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23000128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000128_15-05-2025_09_50_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000151, 'pht': 3726}}" where mtr_portfolio_id = 23000128 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23000128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615039, 0.05953649588412814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000128_15-05-2025_09_50_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000151, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23000544 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859134, 'mtr_portfolio_id': 23000544, 'created_at': datetime.datetime(2025, 5, 15, 10, 3), 'result': '0.021987992299733007', 'result_long': None, 'result_double': None}] Qualite : 0.021987992299733007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23000544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000544_15-05-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23000544 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000544_15-05-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000577, 'pht': 3726}}" where mtr_portfolio_id = 23000544 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23000544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615040, 0.021987992299733007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000544_15-05-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000577, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23000864 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859231, 'mtr_portfolio_id': 23000864, 'created_at': datetime.datetime(2025, 5, 15, 10, 16, 59), 'result': '0.05603845743491159', 'result_long': None, 'result_double': None}] Qualite : 0.05603845743491159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23000864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000864_15-05-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23000864 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000864_15-05-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000900, 'pht': 3726}}" where mtr_portfolio_id = 23000864 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23000864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615041, 0.05603845743491159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23000864_15-05-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23000889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23000890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23000891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23000892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23000893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23000894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23000895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23000896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23000897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23000898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23000899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23000900, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23001231 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859344, 'mtr_portfolio_id': 23001231, 'created_at': datetime.datetime(2025, 5, 15, 10, 32, 59), 'result': '0.08255839522400493', 'result_long': None, 'result_double': None}] Qualite : 0.08255839522400493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23001231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001231_15-05-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23001231 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001231_15-05-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23001245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23001246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23001247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23001248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23001249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23001250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23001251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23001252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23001253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23001254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23001255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23001256, 'pht': 3726}}" where mtr_portfolio_id = 23001231 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23001231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615042, 0.08255839522400493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001231_15-05-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23001245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23001246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23001247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23001248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23001249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23001250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23001251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23001252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23001253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23001254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23001255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23001256, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23001704 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859479, 'mtr_portfolio_id': 23001704, 'created_at': datetime.datetime(2025, 5, 15, 10, 48, 59), 'result': '0.009892045676182496', 'result_long': None, 'result_double': None}] Qualite : 0.009892045676182496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23001704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001704_15-05-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23001704 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001704_15-05-2025_10_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23001711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23001712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23001713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23001714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23001715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23001716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23001717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23001718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23001719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23001720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23001721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23001722, 'pht': 3726}}" where mtr_portfolio_id = 23001704 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23001704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615043, 0.009892045676182496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23001704_15-05-2025_10_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23001711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23001712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23001713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23001714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23001715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23001716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23001717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23001718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23001719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23001720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23001721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23001722, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23002026 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859632, 'mtr_portfolio_id': 23002026, 'created_at': datetime.datetime(2025, 5, 15, 11, 2, 58), 'result': '0.0626534654713631', 'result_long': None, 'result_double': None}] Qualite : 0.0626534654713631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23002026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002026_15-05-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23002026 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002026_15-05-2025_11_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23002088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23002089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23002090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23002091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23002092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23002093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23002094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23002095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23002096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23002097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23002098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23002099, 'pht': 3726}}" where mtr_portfolio_id = 23002026 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23002026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615044, 0.0626534654713631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002026_15-05-2025_11_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23002088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23002089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23002090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23002091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23002092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23002093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23002094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23002095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23002096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23002097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23002098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23002099, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23002561 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2859863, 'mtr_portfolio_id': 23002561, 'created_at': datetime.datetime(2025, 5, 15, 11, 21), 'result': '0.03507004590944206', 'result_long': None, 'result_double': None}] Qualite : 0.03507004590944206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23002561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002561_15-05-2025_11_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23002561 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002561_15-05-2025_11_21_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23002587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23002588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23002589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23002590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23002591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23002592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23002593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23002594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23002595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23002596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23002597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23002598, 'pht': 3726}}" where mtr_portfolio_id = 23002561 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23002561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615045, 0.03507004590944206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23002561_15-05-2025_11_21_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23002587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23002588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23002589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23002590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23002591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23002592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23002593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23002594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23002595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23002596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23002597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23002598, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23003433 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2860111, 'mtr_portfolio_id': 23003433, 'created_at': datetime.datetime(2025, 5, 15, 11, 32, 59), 'result': '0.029781124815477775', 'result_long': None, 'result_double': None}] Qualite : 0.029781124815477775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23003433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003433_15-05-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23003433 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003433_15-05-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23003450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23003451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23003452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23003453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23003454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23003455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23003456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23003457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23003458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23003459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23003460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23003461, 'pht': 3726}}" where mtr_portfolio_id = 23003433 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23003433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615046, 0.029781124815477775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003433_15-05-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23003450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23003451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23003452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23003453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23003454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23003455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23003456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23003457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23003458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23003459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23003460, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23003461, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23003828 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2860261, 'mtr_portfolio_id': 23003828, 'created_at': datetime.datetime(2025, 5, 15, 11, 48, 59), 'result': '0.023559040421619784', 'result_long': None, 'result_double': None}] Qualite : 0.023559040421619784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23003828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003828_15-05-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23003828 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003828_15-05-2025_11_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23003846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23003847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23003848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23003849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23003850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23003851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23003852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23003853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23003854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23003855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23003856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23003857, 'pht': 3726}}" where mtr_portfolio_id = 23003828 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23003828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615047, 0.023559040421619784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23003828_15-05-2025_11_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23003846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23003847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23003848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23003849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23003850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23003851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23003852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23003853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23003854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23003855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23003856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23003857, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23004292 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 = 23004292 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 = 23004292 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23004292 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 = 23004292 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 = 23004292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004292_15-05-2025_12_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23004292 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004292_15-05-2025_12_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23004306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23004307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23004308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23004309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23004310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23004311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23004312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23004313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23004314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23004315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23004316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23004317, 'pht': 3726}}" where mtr_portfolio_id = 23004292 and dashboard_run_id = 1819812 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23004840 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2860647, 'mtr_portfolio_id': 23004840, 'created_at': datetime.datetime(2025, 5, 15, 12, 13), 'result': '0.05417747812729037', 'result_long': None, 'result_double': None}] Qualite : 0.05417747812729037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23004840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004840_15-05-2025_12_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23004840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004840_15-05-2025_12_13_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23004878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23004880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23004881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23004882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23004883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23004884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23004885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23004886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23004887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23004888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23004889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23004890, 'pht': 3726}}" where mtr_portfolio_id = 23004840 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23004840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615049, 0.05417747812729037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23004840_15-05-2025_12_13_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23004878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23004880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23004881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23004882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23004883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23004884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23004885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23004886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23004887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23004888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23004889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23004890, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23008283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2861559, 'mtr_portfolio_id': 23008283, 'created_at': datetime.datetime(2025, 5, 15, 14, 47), 'result': '0.07580253279821209', 'result_long': None, 'result_double': None}] Qualite : 0.07580253279821209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23008283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008283_15-05-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23008283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008283_15-05-2025_14_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23008285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23008286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23008287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23008288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23008289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23008291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23008292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23008295, 'pht': 3726}}" where mtr_portfolio_id = 23008283 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23008283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615050, 0.07580253279821209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008283_15-05-2025_14_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23008285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23008286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23008287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23008288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23008289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23008291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23008292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23008295, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23008972 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2861704, 'mtr_portfolio_id': 23008972, 'created_at': datetime.datetime(2025, 5, 15, 14, 48, 59), 'result': '0.07046261531923294', 'result_long': None, 'result_double': None}] Qualite : 0.07046261531923294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23008972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008972_15-05-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23008972 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008972_15-05-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009007, 'pht': 3726}}" where mtr_portfolio_id = 23008972 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23008972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615051, 0.07046261531923294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23008972_15-05-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23008996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23008997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23008998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23008999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009007, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23009044 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2861723, 'mtr_portfolio_id': 23009044, 'created_at': datetime.datetime(2025, 5, 15, 15, 2, 59), 'result': '0.015820406345931837', 'result_long': None, 'result_double': None}] Qualite : 0.015820406345931837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23009044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009044_15-05-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23009044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009044_15-05-2025_15_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009083, 'pht': 3726}}" where mtr_portfolio_id = 23009044 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23009044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615052, 0.015820406345931837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009044_15-05-2025_15_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23009079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009083, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23009493 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2861860, 'mtr_portfolio_id': 23009493, 'created_at': datetime.datetime(2025, 5, 15, 15, 16, 59), 'result': '0.09453114928327257', 'result_long': None, 'result_double': None}] Qualite : 0.09453114928327257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23009493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23009493 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23009549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009560, 'pht': 3726}}" where mtr_portfolio_id = 23009493 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23009493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615053, 0.09453114928327257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23009493_15-05-2025_15_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23009549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23009550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23009551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23009552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23009553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23009554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23009555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23009556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23009557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23009558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23009559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23009560, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23010407 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2862060, 'mtr_portfolio_id': 23010407, 'created_at': datetime.datetime(2025, 5, 15, 15, 32, 58), 'result': '0.08638338025632483', 'result_long': None, 'result_double': None}] Qualite : 0.08638338025632483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23010407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23010407_15-05-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23010407 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23010407_15-05-2025_15_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23010419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23010420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23010421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23010422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23010423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23010424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23010425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23010426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23010427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23010428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23010429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23010430, 'pht': 3726}}" where mtr_portfolio_id = 23010407 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23010407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615054, 0.08638338025632483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23010407_15-05-2025_15_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23010419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23010420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23010421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23010422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23010423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23010424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23010425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23010426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23010427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23010428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23010429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23010430, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23011070 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2862299, 'mtr_portfolio_id': 23011070, 'created_at': datetime.datetime(2025, 5, 15, 15, 46, 59), 'result': '0.08972628404519947', 'result_long': None, 'result_double': None}] Qualite : 0.08972628404519947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23011070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011070_15-05-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23011070 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011070_15-05-2025_15_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23011094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23011095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23011096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23011097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23011098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23011099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23011100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23011101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23011102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23011103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23011104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23011105, 'pht': 3726}}" where mtr_portfolio_id = 23011070 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23011070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615055, 0.08972628404519947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011070_15-05-2025_15_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23011094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23011095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23011096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23011097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23011098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23011099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23011100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23011101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23011102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23011103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23011104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23011105, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23011766 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2862496, 'mtr_portfolio_id': 23011766, 'created_at': datetime.datetime(2025, 5, 15, 16, 3), 'result': '0.044994772057471086', 'result_long': None, 'result_double': None}] Qualite : 0.044994772057471086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23011766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011766_15-05-2025_16_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23011766 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011766_15-05-2025_16_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23011814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23011816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23011817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23011818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23011819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23011820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23011821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23011822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23011823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23011824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23011825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23011826, 'pht': 3726}}" where mtr_portfolio_id = 23011766 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23011766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615056, 0.044994772057471086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23011766_15-05-2025_16_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23011814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23011816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23011817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23011818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23011819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23011820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23011821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23011822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23011823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23011824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23011825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23011826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23012401 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2862726, 'mtr_portfolio_id': 23012401, 'created_at': datetime.datetime(2025, 5, 15, 16, 20, 59), 'result': '0.027391970845286752', 'result_long': None, 'result_double': None}] Qualite : 0.027391970845286752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23012401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23012401_15-05-2025_16_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23012401 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23012401_15-05-2025_16_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23012456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23012457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23012458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23012459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23012460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23012461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23012462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23012463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23012464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23012465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23012466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23012467, 'pht': 3726}}" where mtr_portfolio_id = 23012401 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23012401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615057, 0.027391970845286752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23012401_15-05-2025_16_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23012456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23012457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23012458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23012459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23012460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23012461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23012462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23012463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23012464, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23012465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23012466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23012467, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23013214 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 = 23013214 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 = 23013214 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23013214 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 = 23013214 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2862962, 'mtr_portfolio_id': 23013214, 'created_at': datetime.datetime(2025, 5, 15, 16, 32, 57), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23013214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013214_15-05-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23013214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013214_15-05-2025_16_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23013239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23013240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23013241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23013242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23013243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23013244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23013245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23013246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23013247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23013248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23013249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23013250, 'pht': 3726}}" where mtr_portfolio_id = 23013214 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23013214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615058, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013214_15-05-2025_16_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23013239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23013240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23013241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23013242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23013243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23013244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23013245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23013246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23013247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23013248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23013249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23013250, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23013891 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2863247, 'mtr_portfolio_id': 23013891, 'created_at': datetime.datetime(2025, 5, 15, 16, 50, 57), 'result': '0.031834624788019114', 'result_long': None, 'result_double': None}] Qualite : 0.031834624788019114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23013891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013891_15-05-2025_16_50_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23013891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013891_15-05-2025_16_50_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23013943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23013944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23013945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23013946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23013947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23013948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23013949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23013950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23013951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23013952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23013953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23013954, 'pht': 3726}}" where mtr_portfolio_id = 23013891 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23013891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615059, 0.031834624788019114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23013891_15-05-2025_16_50_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23013943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23013944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23013945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23013946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23013947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23013948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23013949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23013950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23013951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23013952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23013953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23013954, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23014751 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2863576, 'mtr_portfolio_id': 23014751, 'created_at': datetime.datetime(2025, 5, 15, 17, 2, 59), 'result': '0.021201811627820442', 'result_long': None, 'result_double': None}] Qualite : 0.021201811627820442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23014751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23014751_15-05-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23014751 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23014751_15-05-2025_17_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23014783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23014784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23014785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23014786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23014787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23014788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23014789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23014790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23014791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23014792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23014793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23014794, 'pht': 3726}}" where mtr_portfolio_id = 23014751 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23014751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615060, 0.021201811627820442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23014751_15-05-2025_17_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23014783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23014784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23014785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23014786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23014787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23014788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23014789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23014790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23014791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23014792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23014793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23014794, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23015319 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2863815, 'mtr_portfolio_id': 23015319, 'created_at': datetime.datetime(2025, 5, 15, 17, 17), 'result': '0.036403220458816575', 'result_long': None, 'result_double': None}] Qualite : 0.036403220458816575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23015319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23015319_15-05-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23015319 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23015319_15-05-2025_17_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23015347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23015348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23015349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23015350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23015351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23015352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23015353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23015354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23015355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23015356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23015357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23015358, 'pht': 3726}}" where mtr_portfolio_id = 23015319 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23015319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615061, 0.036403220458816575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23015319_15-05-2025_17_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23015347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23015348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23015349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23015350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23015351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23015352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23015353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23015354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23015355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23015356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23015357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23015358, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23016047 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2864043, 'mtr_portfolio_id': 23016047, 'created_at': datetime.datetime(2025, 5, 15, 17, 32, 59), 'result': '0.0058964839484603624', 'result_long': None, 'result_double': None}] Qualite : 0.0058964839484603624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23016047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23016047_15-05-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23016047 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23016047_15-05-2025_17_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23016081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23016082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23016083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23016084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23016085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23016086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23016087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23016088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23016089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23016090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23016092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23016093, 'pht': 3726}}" where mtr_portfolio_id = 23016047 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23016047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615062, 0.0058964839484603624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23016047_15-05-2025_17_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23016081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23016082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23016083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23016084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23016085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23016086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23016087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23016088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23016089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23016090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23016092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23016093, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23018346 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2864905, 'mtr_portfolio_id': 23018346, 'created_at': datetime.datetime(2025, 5, 15, 18, 20, 57), 'result': '0.03886790838667343', 'result_long': None, 'result_double': None}] Qualite : 0.03886790838667343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23018346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018346_15-05-2025_18_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23018346 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018346_15-05-2025_18_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23018385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23018386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23018388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23018389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23018390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23018391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23018392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23018393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23018394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23018395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23018396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23018397, 'pht': 3726}}" where mtr_portfolio_id = 23018346 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23018346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615063, 0.03886790838667343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018346_15-05-2025_18_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23018385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23018386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23018388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23018389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23018390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23018391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23018392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23018393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23018394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23018395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23018396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23018397, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23018998 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2865068, 'mtr_portfolio_id': 23018998, 'created_at': datetime.datetime(2025, 5, 15, 18, 35), 'result': '0.030660596658543683', 'result_long': None, 'result_double': None}] Qualite : 0.030660596658543683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23018998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018998_15-05-2025_18_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23018998 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018998_15-05-2025_18_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23019015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23019016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23019017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23019018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23019019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23019020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23019021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23019022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23019023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23019024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23019025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23019026, 'pht': 3726}}" where mtr_portfolio_id = 23018998 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23018998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615064, 0.030660596658543683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23018998_15-05-2025_18_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23019015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23019016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23019017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23019018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23019019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23019020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23019021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23019022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23019023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23019024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23019025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23019026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23019454 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2865188, 'mtr_portfolio_id': 23019454, 'created_at': datetime.datetime(2025, 5, 15, 18, 46, 59), 'result': '0.04996926186080719', 'result_long': None, 'result_double': None}] Qualite : 0.04996926186080719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23019454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23019454_15-05-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23019454 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23019454_15-05-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23019466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23019467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23019468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23019469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23019470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23019471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23019472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23019473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23019474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23019475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23019476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23019477, 'pht': 3726}}" where mtr_portfolio_id = 23019454 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23019454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615065, 0.04996926186080719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23019454_15-05-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23019466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23019467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23019468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23019469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23019470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23019471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23019472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23019473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23019474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23019475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23019476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23019477, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23020132 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2865329, 'mtr_portfolio_id': 23020132, 'created_at': datetime.datetime(2025, 5, 15, 19, 2, 58), 'result': '0.0025156567048767405', 'result_long': None, 'result_double': None}] Qualite : 0.0025156567048767405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23020132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020132_15-05-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23020132 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020132_15-05-2025_19_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23020150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23020151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23020152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23020153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23020154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23020155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23020156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23020157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23020158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23020159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23020160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23020161, 'pht': 3726}}" where mtr_portfolio_id = 23020132 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23020132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615066, 0.0025156567048767405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020132_15-05-2025_19_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23020150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23020151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23020152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23020153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23020154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23020155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23020156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23020157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23020158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23020159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23020160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23020161, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23020871 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2865655, 'mtr_portfolio_id': 23020871, 'created_at': datetime.datetime(2025, 5, 15, 19, 16, 59), 'result': '0.01560130070063962', 'result_long': None, 'result_double': None}] Qualite : 0.01560130070063962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23020871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020871_15-05-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23020871 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020871_15-05-2025_19_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23020927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23020928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23020929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23020930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23020931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23020932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23020933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23020934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23020935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23020936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23020937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23020939, 'pht': 3726}}" where mtr_portfolio_id = 23020871 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23020871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615067, 0.01560130070063962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23020871_15-05-2025_19_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23020927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23020928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23020929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23020930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23020931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23020932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23020933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23020934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23020935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23020936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23020937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23020939, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23021706 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 = 23021706 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 = 23021706 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23021706 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 = 23021706 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 = 23021706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23021706_15-05-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23021706 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23021706_15-05-2025_19_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23021737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23021738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23021739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23021740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23021741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23021742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23021743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23021744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23021745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23021746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23021747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23021748, 'pht': 3726}}" where mtr_portfolio_id = 23021706 and dashboard_run_id = 1819812 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23022485 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2866203, 'mtr_portfolio_id': 23022485, 'created_at': datetime.datetime(2025, 5, 15, 19, 48, 58), 'result': '0.053172515758218096', 'result_long': None, 'result_double': None}] Qualite : 0.053172515758218096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23022485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23022485_15-05-2025_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23022485 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23022485_15-05-2025_19_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23022521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23022522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23022523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23022524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23022525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23022526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23022527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23022528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23022532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23022534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23022537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23022539, 'pht': 3726}}" where mtr_portfolio_id = 23022485 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23022485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615069, 0.053172515758218096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23022485_15-05-2025_19_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23022521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23022522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23022523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23022524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23022525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23022526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23022527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23022528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23022532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23022534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23022537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23022539, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23023430 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2866527, 'mtr_portfolio_id': 23023430, 'created_at': datetime.datetime(2025, 5, 15, 20, 2, 59), 'result': '0.04918819690259882', 'result_long': None, 'result_double': None}] Qualite : 0.04918819690259882 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23023430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23023430_15-05-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23023430 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23023430_15-05-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23023503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23023504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23023505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23023506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23023507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23023508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23023509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23023510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23023511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23023512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23023513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23023514, 'pht': 3726}}" where mtr_portfolio_id = 23023430 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23023430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615070, 0.04918819690259882, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23023430_15-05-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23023503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23023504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23023505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23023506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23023507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23023508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23023509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23023510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23023511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23023512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23023513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23023514, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23024114 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2866755, 'mtr_portfolio_id': 23024114, 'created_at': datetime.datetime(2025, 5, 15, 20, 16, 59), 'result': '0.06294450723448866', 'result_long': None, 'result_double': None}] Qualite : 0.06294450723448866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23024114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024114_15-05-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23024114 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024114_15-05-2025_20_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23024188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23024189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23024190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23024191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23024192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23024193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23024194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23024195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23024196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23024197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23024198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23024199, 'pht': 3726}}" where mtr_portfolio_id = 23024114 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23024114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615071, 0.06294450723448866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024114_15-05-2025_20_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23024188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23024189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23024190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23024191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23024192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23024193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23024194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23024195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23024196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23024197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23024198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23024199, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23024786 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2866942, 'mtr_portfolio_id': 23024786, 'created_at': datetime.datetime(2025, 5, 15, 20, 32, 57), 'result': '0.019721240000681033', 'result_long': None, 'result_double': None}] Qualite : 0.019721240000681033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23024786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024786_15-05-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23024786 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024786_15-05-2025_20_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23024828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23024829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23024830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23024831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23024832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23024833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23024834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23024835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23024836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23024837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23024838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23024839, 'pht': 3726}}" where mtr_portfolio_id = 23024786 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23024786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615072, 0.019721240000681033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23024786_15-05-2025_20_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23024828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23024829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23024830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23024831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23024832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23024833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23024834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23024835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23024836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23024837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23024838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23024839, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23025613 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2867189, 'mtr_portfolio_id': 23025613, 'created_at': datetime.datetime(2025, 5, 15, 21, 2, 58), 'result': '0.02377848156640014', 'result_long': None, 'result_double': None}] Qualite : 0.02377848156640014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23025613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23025613_15-05-2025_21_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23025613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23025613_15-05-2025_21_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23025631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23025632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23025633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23025634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23025635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23025636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23025637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23025638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23025639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23025640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23025641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23025642, 'pht': 3726}}" where mtr_portfolio_id = 23025613 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23025613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615073, 0.02377848156640014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23025613_15-05-2025_21_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23025631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23025632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23025633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23025634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23025635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23025636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23025637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23025638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23025639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23025640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23025641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23025642, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23026853 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2867560, 'mtr_portfolio_id': 23026853, 'created_at': datetime.datetime(2025, 5, 15, 21, 16, 58), 'result': '0.026605837305804753', 'result_long': None, 'result_double': None}] Qualite : 0.026605837305804753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23026853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23026853_15-05-2025_21_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23026853 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23026853_15-05-2025_21_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23026868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23026869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23026870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23026871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23026872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23026873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23026874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23026875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23026876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23026877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23026878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23026879, 'pht': 3726}}" where mtr_portfolio_id = 23026853 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23026853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615074, 0.026605837305804753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23026853_15-05-2025_21_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23026868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23026869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23026870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23026871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23026872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23026873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23026874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23026875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23026876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23026877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23026878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23026879, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23027570 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2867685, 'mtr_portfolio_id': 23027570, 'created_at': datetime.datetime(2025, 5, 15, 21, 33, 18), 'result': '0.03585836812247333', 'result_long': None, 'result_double': None}] Qualite : 0.03585836812247333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23027570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23027570_15-05-2025_21_33_22.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23027570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23027570_15-05-2025_21_33_22.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23027595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23027596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23027597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23027598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23027599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23027600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23027601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23027602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23027604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23027605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23027606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23027607, 'pht': 3726}}" where mtr_portfolio_id = 23027570 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23027570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615075, 0.03585836812247333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23027570_15-05-2025_21_33_22.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23027595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23027596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23027597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23027598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23027599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23027600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23027601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23027602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23027604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23027605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23027606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23027607, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23028235 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2867846, 'mtr_portfolio_id': 23028235, 'created_at': datetime.datetime(2025, 5, 15, 21, 46, 58), 'result': '0.04495867407641244', 'result_long': None, 'result_double': None}] Qualite : 0.04495867407641244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23028235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028235_15-05-2025_21_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23028235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028235_15-05-2025_21_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23028248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23028249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23028250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23028251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23028252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23028253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23028254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23028255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23028256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23028257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23028258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23028259, 'pht': 3726}}" where mtr_portfolio_id = 23028235 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23028235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615076, 0.04495867407641244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028235_15-05-2025_21_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23028248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23028249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23028250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23028251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23028252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23028253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23028254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23028255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23028256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23028257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23028258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23028259, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23028952 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2868000, 'mtr_portfolio_id': 23028952, 'created_at': datetime.datetime(2025, 5, 15, 22, 3), 'result': '0.037097227349962535', 'result_long': None, 'result_double': None}] Qualite : 0.037097227349962535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23028952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028952_15-05-2025_22_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23028952 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028952_15-05-2025_22_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23029016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23029017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23029018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23029019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23029020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23029021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23029022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23029023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23029024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23029025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23029026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23029027, 'pht': 3726}}" where mtr_portfolio_id = 23028952 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23028952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615077, 0.037097227349962535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23028952_15-05-2025_22_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23029016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23029017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23029018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23029019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23029020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23029021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23029022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23029023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23029024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23029025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23029026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23029027, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23029826 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2868286, 'mtr_portfolio_id': 23029826, 'created_at': datetime.datetime(2025, 5, 15, 22, 17, 28), 'result': '0.04267065998488069', 'result_long': None, 'result_double': None}] Qualite : 0.04267065998488069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23029826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23029826_15-05-2025_22_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23029826 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23029826_15-05-2025_22_17_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23029854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23029855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23029856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23029857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23029858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23029859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23029860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23029861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23029862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23029863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23029864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23029865, 'pht': 3726}}" where mtr_portfolio_id = 23029826 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23029826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615078, 0.04267065998488069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23029826_15-05-2025_22_17_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23029854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23029855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23029856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23029857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23029858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23029859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23029860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23029861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23029862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23029863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23029864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23029865, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23030463 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2868445, 'mtr_portfolio_id': 23030463, 'created_at': datetime.datetime(2025, 5, 15, 22, 32, 59), 'result': '0.05295297008054808', 'result_long': None, 'result_double': None}] Qualite : 0.05295297008054808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23030463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23030463_15-05-2025_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23030463 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23030463_15-05-2025_22_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23030492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23030493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23030494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23030495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23030496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23030497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23030498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23030499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23030500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23030501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23030502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23030503, 'pht': 3726}}" where mtr_portfolio_id = 23030463 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23030463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615079, 0.05295297008054808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23030463_15-05-2025_22_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23030492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23030493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23030494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23030495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23030496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23030497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23030498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23030499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23030500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23030501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23030502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23030503, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23031149 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2868695, 'mtr_portfolio_id': 23031149, 'created_at': datetime.datetime(2025, 5, 15, 22, 52, 10), 'result': '0.05451365725820792', 'result_long': None, 'result_double': None}] Qualite : 0.05451365725820792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23031149 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031149_15-05-2025_22_52_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23031149 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031149_15-05-2025_22_52_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23031167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23031168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23031169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23031170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23031171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23031172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23031173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23031174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23031175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23031176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23031177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23031178, 'pht': 3726}}" where mtr_portfolio_id = 23031149 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23031149 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615080, 0.05451365725820792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031149_15-05-2025_22_52_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23031167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23031168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23031169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23031170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23031171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23031172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23031173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23031174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23031175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23031176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23031177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23031178, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23031903 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2868967, 'mtr_portfolio_id': 23031903, 'created_at': datetime.datetime(2025, 5, 15, 23, 2, 57), 'result': '0.06118240022500728', 'result_long': None, 'result_double': None}] Qualite : 0.06118240022500728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23031903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031903_15-05-2025_23_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23031903 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031903_15-05-2025_23_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23031904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23031905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23031906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23031907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23031908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23031909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23031910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23031911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23031912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23031913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23031914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23031915, 'pht': 3726}}" where mtr_portfolio_id = 23031903 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23031903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615081, 0.06118240022500728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23031903_15-05-2025_23_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23031904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23031905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23031906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23031907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23031908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23031909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23031910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23031911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23031912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23031913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23031914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23031915, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23032463 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872237, 'mtr_portfolio_id': 23032463, 'created_at': datetime.datetime(2025, 5, 16, 5, 34, 59), 'result': '0.04414681055218163', 'result_long': None, 'result_double': None}] Qualite : 0.04414681055218163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23032463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23032463_16-05-2025_05_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23032463 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23032463_16-05-2025_05_35_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23032487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23032488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23032489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23032490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23032491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23032492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23032493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23032494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23032495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23032496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23032497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23032498, 'pht': 3726}}" where mtr_portfolio_id = 23032463 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23032463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615082, 0.04414681055218163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23032463_16-05-2025_05_35_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23032487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23032488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23032489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23032490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23032491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23032492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23032493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23032494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23032495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23032496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23032497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23032498, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23033023 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872238, 'mtr_portfolio_id': 23033023, 'created_at': datetime.datetime(2025, 5, 16, 5, 35, 27), 'result': '0.04254721607547399', 'result_long': None, 'result_double': None}] Qualite : 0.04254721607547399 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23033023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033023_16-05-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23033023 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033023_16-05-2025_05_35_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23033030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23033031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23033032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23033033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23033034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23033035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23033036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23033037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23033038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23033039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23033040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23033041, 'pht': 3726}}" where mtr_portfolio_id = 23033023 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23033023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615083, 0.04254721607547399, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033023_16-05-2025_05_35_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23033030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23033031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23033032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23033033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23033034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23033035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23033036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23033037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23033038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23033039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23033040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23033041, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23033781 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872239, 'mtr_portfolio_id': 23033781, 'created_at': datetime.datetime(2025, 5, 16, 5, 35, 30), 'result': '0.05364312265741869', 'result_long': None, 'result_double': None}] Qualite : 0.05364312265741869 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23033781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033781_16-05-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23033781 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033781_16-05-2025_05_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23033785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23033786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23033787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23033788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23033789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23033790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23033791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23033792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23033793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23033794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23033795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23033796, 'pht': 3726}}" where mtr_portfolio_id = 23033781 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23033781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615084, 0.05364312265741869, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23033781_16-05-2025_05_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23033785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23033786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23033787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23033788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23033789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23033790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23033791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23033792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23033793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23033794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23033795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23033796, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23034316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2872240, 'mtr_portfolio_id': 23034316, 'created_at': datetime.datetime(2025, 5, 16, 5, 58, 59), 'result': '0.06122078767478795', 'result_long': None, 'result_double': None}] Qualite : 0.06122078767478795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23034316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034316_16-05-2025_05_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23034316 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034316_16-05-2025_05_59_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23034355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034366, 'pht': 3726}}" where mtr_portfolio_id = 23034316 and dashboard_run_id = 1819812 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23034316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10615085, 0.06122078767478795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23034316_16-05-2025_05_59_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23034355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23034356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23034357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23034358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23034359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23034360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23034361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23034362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23034363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23034364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23034365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23034366, '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 (22988253,22988491,22988734,22989144,22989750,22990482,22990907,22991626,22992125,22992512,22992999,22994106,22994419,22994763,22995106,22995417,22995977,22997790,22998181,22998448,22998836,23000128,23000544,23000864,23001231,23001704,23002026,23002561,23003433,23003828,23004292,23004840,23008283,23008972,23009044,23009493,23010407,23011070,23011766,23012401,23013214,23013891,23014751,23015319,23016047,23018346,23018998,23019454,23020132,23020871,23021706,23022485,23023430,23024114,23024786,23025613,23026853,23027570,23028235,23028952,23029826,23030463,23031149,23031903,23032463,23033023,23033781,23034316) result : ((1358392373,), (1358392403,), (1358392430,), (1358392766,), (1358392792,), (1358392817,), (1358393109,), (1358393136,), (1358393162,), (1358393185,), (1358393210,), (1358393413,), (1358393455,), (1358393482,), (1358393506,), (1358393752,), (1358393754,), (1358393755,), (1358393773,), (1358393798,), (1358393873,), (1358393906,), (1358393932,), (1358393959,), (1358393987,), (1358394014,), (1358394072,), (1358394075,), (1358394078,), (1358394116,), (1358394106,), (1358394109,), (1358394111,), (1358394113,), (1358394168,), (1358394170,), (1358394172,), (1358394174,), (1358394194,), (1358394197,), (1358394212,), (1358394216,), (1358394218,), (1358394253,), (1358394256,), (1358394263,), (1358394301,), (1358394305,), (1358394308,), (1358394311,), (1358394315,), (1358394317,), (1358394330,), (1358394335,), (1358394338,), (1358394341,), (1358394361,), (1358394363,), (1358394365,), (1358394387,), (1358394391,), (1358394421,), (1358394424,), (1358394426,), (1358394442,), (1358394445,), (1358394448,), (1358394450,), (1358394474,), (1358394476,), (1358394479,), (1358394481,), (1358394488,), (1358394492,), (1358394512,), (1358394516,), (1358394520,), (1358394525,), (1358394536,), (1358394537,), (1358394539,), (1358394540,), (1358394542,), (1358394544,), (1358394548,), (1358394549,), (1358394575,), (1358394558,), (1358394562,), (1358394565,), (1358394568,), (1358394572,), (1358394587,), (1358394592,), (1358394594,), (1358394623,), (1358394624,), (1358394625,), (1358394626,), (1358394645,), (1358394667,), (1358395054,), (1358395073,), (1358395074,), (1358395239,), (1358395255,), (1358395283,), (1358395361,), (1358395363,), (1358395365,), (1358395366,), (1358395368,), (1358395416,), (1358395421,), (1358395422,), (1358395469,), (1358395501,), (1358395526,), (1358395550,), (1358395576,), (1358395601,), (1358396045,), (1358397104,), (1358397155,), (1358397489,), (1358397492,), (1358397514,), (1358397603,), (1358397606,), (1358397608,), (1358397662,), (1358397665,), (1358397668,), (1358397672,), (1358397676,), (1358397677,), (1358397712,), (1358397704,), (1358397708,), (1358397710,), (1358397736,), (1358397740,), (1358397742,), (1358397744,), (1358397747,), (1358397799,), (1358397801,), (1358397803,), (1358397805,), (1358397806,), (1358397846,), (1358397894,), (1358397897,), (1358397901,), (1358397904,), (1358397908,), (1358397937,), (1358397940,), (1358397943,), (1358397962,), (1358397964,), (1358397966,), (1358397968,), (1358397970,), (1358398003,), (1358398006,), (1358398009,), (1358398025,), (1358398028,), (1358398031,), (1358398225,), (1358398240,), (1358398278,), (1358398305,), (1358398724,), (1358398727,), (1358398745,), (1358398750,), (1358398899,), (1358398926,), (1358398952,), (1358398977,), (1358399100,), (1358399103,), (1358399107,), (1358399114,), (1358399116,), (1358399149,), (1358399158,), (1358399161,), (1358399164,), (1358399318,), (1358399383,), (1358399443,), (1358399810,), (1358399837,), (1358399873,), (1358399901,), (1358399937,), (1358399963,), (1358400341,), (1358400391,), (1358400449,), (1358400481,), (1358400899,), (1358400803,), (1358400833,), (1358400861,), (1358401213,), (1358401240,), (1358401267,), (1358401532,), (1358401534,), (1358401535,), (1358401547,), (1358401587,), (1358401633,), (1358402043,), (1358402047,), (1358402050,), (1358402051,), (1358402054,), (1358402074,), (1358402077,), (1358402108,), (1358402133,), (1358402422,), (1358402495,), (1358402514,), (1358402516,), (1358402521,), (1358402686,), (1358402703,), (1358402732,), (1358402757,), (1358403185,), (1358403188,), (1358403190,), (1358403350,), (1358403354,), (1358403357,), (1358403389,), (1358403415,), (1358403426,), (1358403428,), (1358403430,), (1358403433,), (1358403453,), (1358403456,), (1358403458,), (1358403460,), (1358403463,), (1358403497,), (1358403500,), (1358403519,), (1358403782,), (1358403822,), (1358403836,), (1358403841,), (1358403844,), (1358403961,), (1358403967,), (1358403981,), (1358403984,), (1358403988,), (1358403990,), (1358404449,), (1358404343,), (1358404392,), (1358404395,), (1358404586,), (1358404591,), (1358404594,), (1358404663,), (1358404666,), (1358404668,), (1358404670,), (1358404673,), (1358404699,), (1358404702,), (1358404704,), (1358404708,), (1358404710,), (1358404732,), (1358404744,), (1358404756,), (1358404758,), (1358404802,), (1358404852,), (1358404856,), (1358404865,), (1358404867,), (1358404921,), (1358405448,), (1358405489,), (1358405520,), (1358405573,), (1358405603,), (1358405680,), (1358405685,), (1358405887,), (1358405917,), (1358405950,), (1358405983,), (1358406013,), (1358406024,), (1358406070,), (1358406073,), (1358406077,), (1358406079,), (1358406112,), (1358406116,), (1358406129,), (1358406690,), (1358406726,), (1358406752,), (1358406779,), (1358407013,), (1358407016,), (1358407019,), (1358407023,), (1358407025,), (1358407027,), (1358407322,), (1358407202,), (1358407231,), (1358407262,), (1358407291,), (1358407368,), (1358407370,), (1358407374,), (1358407375,), (1358407379,), (1358407382,), (1358407551,), (1358407619,), (1358407651,), (1358408137,), (1358408169,), (1358408209,), (1358408272,), (1358408351,), (1358408404,), (1358408576,), (1358408654,), (1358408725,), (1358408798,), (1358409218,), (1358409246,), (1358409279,), (1358409304,), (1358409332,), (1358409575,), (1358409578,), (1358409582,), (1358409594,), (1358409670,), (1358410055,), (1358410125,), (1358410153,), (1358410473,), (1358410497,), (1358410527,), (1358410535,), (1358410727,), (1358410753,), (1358410759,), (1358410773,), (1358410776,), (1358410797,), (1358410801,), (1358410809,), (1358410811,), (1358410814,), (1358410897,), (1358410900,), (1358410910,), (1358411113,), (1358411183,), (1358411256,), (1358411260,), (1358411274,), (1358411370,), (1358411372,), (1358411373,), (1358411374,), (1358411376,), (1358411378,), (1358411410,), (1358411414,), (1358411416,), (1358411489,), (1358411454,), (1358411458,), (1358411460,), (1358411482,), (1358411486,), (1358411508,), (1358411511,), (1358411514,), (1358411516,), (1358411519,), (1358411727,), (1358411751,), (1358411753,), (1358411755,), (1358411860,), (1358411862,), (1358411864,), (1358411866,), (1358411892,), (1358411895,), (1358411897,), (1358411899,), (1358411910,), (1358411915,), (1358411946,), (1358411950,), (1358411952,), (1358412035,), (1358412036,), (1358412037,), (1358412043,), (1358412152,), (1358412179,), (1358412184,), (1358412186,), (1358412189,), (1358412209,), (1358412212,), (1358412215,), (1358412224,), (1358412225,), (1358412365,), (1358412395,), (1358412654,), (1358412656,), (1358412658,), (1358412659,), (1358412660,), (1358412820,), (1358412852,), (1358412891,), (1358412909,), (1358412911,), (1358413175,), (1358413174,), (1358413214,), (1358413216,), (1358413355,), (1358413406,), (1358413407,), (1358413408,), (1358413456,), (1358413459,), (1358413461,), (1358413463,), (1358413485,), (1358413488,), (1358413779,), (1358413781,), (1358413782,), (1358413813,), (1358413817,), (1358413820,), (1358413822,), (1358413864,), (1358413868,), (1358413869,), (1358413870,), (1358413983,), (1358413986,), (1358413987,), (1358413988,), (1358413991,), (1358414047,), (1358414049,), (1358414052,), (1358414056,), (1358414081,), (1358414083,), (1358414085,), (1358414110,), (1358414114,), (1358414116,), (1358414150,), (1358414153,), (1358414156,), (1358414158,), (1358414161,), (1358414164,), (1358414184,), (1358414187,), (1358414188,), (1358414245,), (1358414239,), (1358414243,), (1358414288,), (1358414296,), (1358414297,), (1358414298,), (1358414300,), (1358414301,), (1358414324,), (1358414710,), (1358414732,), (1358414735,), (1358414755,), (1358414784,), (1358414787,), (1358414789,), (1358414791,), (1358414795,), (1358414821,), (1358414826,), (1358414829,), (1358414831,), (1358414896,), (1358414899,), (1358414931,), (1358414934,), (1358414936,), (1358414966,), (1358414968,), (1358414969,), (1358414971,), (1358414972,), (1358414996,), (1358414998,), (1358414999,), (1358415000,), (1358415023,), (1358415029,), (1358415030,), (1358415071,), (1358415151,), (1358415186,), (1358415213,), (1358415240,), (1358415685,), (1358415689,), (1358415706,), (1358415723,), (1358415749,), (1358415751,), (1358415753,), (1358415754,), (1358415757,), (1358415758,), (1358415775,), (1358415771,), (1358415773,), (1358416112,), (1358416138,), (1358416163,), (1358416193,), (1358416222,), (1358416500,), (1358416541,), (1358416572,), (1358416603,), (1358416633,), (1358416708,), (1358416734,), (1358416761,), (1358416951,), (1358416953,), (1358417120,), (1358417144,), (1358417167,), (1358417193,), (1358417219,), (1358417248,), (1358417494,), (1358417518,), (1358417542,), (1358417566,), (1358417590,), (1358417616,), (1358417738,), (1358417741,), (1358417742,), (1358417942,), (1358417974,), (1358418004,), (1358418008,), (1358418010,), (1358418012,), (1358418131,), (1358418134,), (1358418136,), (1358418137,), (1358418138,), (1358418140,), (1358418159,), (1358418161,), (1358418162,), (1358418164,), (1358423475,), (1358423567,), (1358423569,), (1358423570,), (1358423906,), (1358424078,), (1358424083,), (1358424085,), (1358424087,), (1358424151,), (1358424176,), (1358424210,), (1358424222,), (1358424223,), (1358424447,), (1358424477,), (1358424505,), (1358424531,), (1358424823,), (1358424848,), (1358424874,), (1358425203,), (1358425233,), (1358425261,), (1358425287,), (1358425290,), (1358425307,), (1358425315,), (1358425349,), (1358425379,), (1358425407,), (1358425607,), (1358425626,), (1358425642,), (1358425649,), (1358425653,), (1358425694,), (1358425698,), (1358425700,), (1358425702,), (1358425766,), (1358425748,), (1358425757,), (1358425759,), (1358425761,), (1358425764,), (1358425784,), (1358425787,), (1358425789,), (1358425790,), (1358425813,), (1358425816,), (1358425819,), (1358425821,), (1358425842,), (1358425844,), (1358425846,), (1358425847,), (1358425850,), (1358425858,), (1358425909,), (1358425914,), (1358425917,), (1358425921,), (1358425923,), (1358425925,), (1358425944,), (1358425947,), (1358425950,), (1358425974,), (1358425976,), (1358425978,), (1358425980,), (1358426009,), (1358426012,), (1358426015,), (1358426018,), (1358426020,), (1358426022,), (1358426044,), (1358426047,), (1358426049,), (1358426051,), (1358426054,), (1358426075,), (1358426077,), (1358426081,), (1358426082,), (1358426084,), (1358426118,), (1358426147,), (1358426149,), (1358426151,), (1358426154,), (1358426156,), (1358426203,), (1358426206,), (1358426209,), (1358426211,), (1358426214,), (1358426238,), (1358426240,), (1358426242,), (1358426244,), (1358426272,), (1358426275,), (1358426277,), (1358426280,), (1358426307,), (1358426300,), (1358426301,), (1358426302,), (1358426303,), (1358426305,), (1358426327,), (1358426329,), (1358426330,), (1358426331,), (1358426358,), (1358426361,), (1358426363,), (1358426365,), (1358426368,), (1358426393,), (1358426397,), (1358426401,), (1358426404,), (1358426428,), (1358426430,), (1358426433,), (1358426436,), (1358426439,), (1358426462,), (1358426464,), (1358426466,), (1358426514,), (1358426522,), (1358426524,), (1358426526,), (1358426529,), (1358426531,), (1358426618,), (1358426621,), (1358426624,), (1358426625,), (1358426626,), (1358426686,), (1358426996,), (1358426999,), (1358427000,), (1358427007,), (1358427011,), (1358427025,), (1358427060,), (1358427063,), (1358427066,), (1358427070,), (1358427072,), (1358427118,), (1358427122,), (1358427125,), (1358427180,), (1358427196,), (1358427215,), (1358427217,), (1358427218,), (1358427248,), (1358427250,), (1358427252,), (1358427254,), (1358427257,), (1358427260,), (1358427284,), (1358427286,), (1358427288,), (1358427289,), (1358427332,), (1358427322,), (1358427325,), (1358427327,), (1358427329,), (1358427352,), (1358427354,), (1358427356,), (1358427357,), (1358427359,), (1358427361,), (1358427385,), (1358427415,), (1358427420,), (1358427423,), (1358427503,), (1358427507,), (1358427509,), (1358427510,), (1358427512,), (1358427572,), (1358427581,), (1358427582,), (1358427583,), (1358427604,), (1358427606,), (1358427608,), (1358427610,), (1358427614,), (1358427616,), (1358427642,), (1358427650,), (1358427655,), (1358427656,), (1358427658,), (1358427659,), (1358427686,), (1358427689,), (1358427691,), (1358427722,), (1358427729,), (1358427733,), (1358427734,), (1358427736,), (1358427763,), (1358427765,), (1358427767,), (1358427768,), (1358427770,), (1358427797,), (1358427799,), (1358427801,), (1358427802,), (1358427805,), (1358427825,), (1358427830,), (1358427831,), (1358427833,), (1358427835,), (1358427871,), (1358427875,), (1358427877,), (1358427887,), (1358427892,), (1358428065,), (1358428100,), (1358428128,), (1358428161,), (1358428188,), (1358428276,), (1358428304,), (1358428330,), (1358428615,), (1358428504,), (1358428533,), (1358428560,), (1358428587,), (1358428891,), (1358428916,), (1358428938,), (1358429049,), (1358429082,), (1358429113,), (1358429137,), (1358429162,), (1358429436,), (1358429470,), (1358429500,), (1358429525,), (1358429551,), (1358429578,), (1358429833,), (1358429858,), (1358429882,), (1358429908,), (1358430000,), (1358430094,), (1358430122,), (1358430143,), (1358430146,), (1358430277,), (1358430287,), (1358430290,), (1358430292,), (1358430322,), (1358430325,), (1358430328,), (1358430354,), (1358430357,), (1358430359,), (1358430379,), (1358430382,), (1358430384,), (1358430388,), (1358430389,), (1358430427,), (1358430431,), (1358430435,), (1358430438,), (1358430442,), (1358430514,), (1358430518,), (1358430521,), (1358430544,), (1358430549,), (1358430552,), (1358430555,), (1358430557,), (1358430559,), (1358430585,), (1358430592,), (1358430594,), (1358430595,), (1358430620,), (1358430623,), (1358430627,), (1358430629,), (1358430631,), (1358430664,), (1358430654,), (1358430658,), (1358430660,), (1358430662,), (1358430682,), (1358430685,), (1358430688,), (1358430691,), (1358440862,), (1358440758,), (1358440908,), (1358440914,), (1358440919,), (1358440921,), (1358440962,), (1358440969,), (1358441007,), (1358441210,), (1358441293,), (1358441297,), (1358441340,), (1358443794,), (1358444234,), (1358444262,), (1358444291,), (1358444444,), (1358444448,), (1358445152,), (1358445164,), (1358445167,), (1358445171,), (1358445175,), (1358445180,), (1358445202,), (1358445208,), (1358445214,), (1358445259,), (1358445290,), (1358445318,), (1358445343,), (1358445363,), (1358445413,), (1358445422,), (1358445427,), (1358445431,), (1358445470,), (1358445474,), (1358445478,), (1358445481,), (1358445516,), (1358445520,), (1358445525,), (1358445538,), (1358445542,), (1358445597,), (1358445603,), (1358445608,), (1358445614,), (1358445621,), (1358445671,), (1358445651,), (1358445656,), (1358445660,), (1358445665,), (1358445702,), (1358445708,), (1358445712,), (1358445717,), (1358445755,), (1358445762,), (1358445766,), (1358445808,), (1358445813,), (1358445822,), (1358445825,), (1358445828,), (1358445835,), (1358445840,), (1358445845,), (1358445851,), (1358445857,), (1358445865,), (1358445871,), (1358445877,), (1358445883,), (1358445888,), (1358445892,), (1358445927,), (1358445932,), (1358445936,), (1358445981,), (1358445987,), (1358445991,), (1358446031,), (1358446036,), (1358446042,), (1358446051,), (1358446057,), (1358446062,), (1358446095,), (1358446099,), (1358446102,), (1358446106,), (1358446111,), (1358446144,), (1358446150,), (1358446156,), (1358446199,), (1358446204,), (1358446209,), (1358446213,), (1358446242,), (1358446246,), (1358446251,), (1358446256,), (1358446315,), (1358446319,), (1358446323,), (1358446327,), (1358446332,), (1358446337,), (1358446368,), (1358447055,), (1358447061,), (1358447064,), (1358447077,), (1358447080,), (1358447171,), (1358447147,), (1358447152,), (1358447158,), (1358447163,), (1358447167,), (1358447258,), (1358447263,), (1358447283,), (1358447307,), (1358447361,), (1358447392,), (1358447421,), (1358447447,), (1358447473,), (1358447622,), (1358447625,), (1358447629,), (1358447632,), (1358447635,), (1358447672,), (1358447677,), (1358447682,), (1358447687,), (1358447692,), (1358448013,), (1358448022,), (1358448028,), (1358448043,), (1358448124,), (1358448138,), (1358448141,), (1358448150,), (1358448154,), (1358448158,), (1358448188,), (1358448193,), (1358448198,), (1358448209,), (1358448243,), (1358448248,), (1358448252,), (1358448284,), (1358448288,), (1358448292,), (1358448296,), (1358448299,), (1358448349,), (1358448353,), (1358448356,), (1358448361,), (1358448367,), (1358448372,), (1358448401,), (1358448406,), (1358448410,), (1358448414,), (1358448450,), (1358448454,), (1358448465,), (1358448474,), (1358448479,), (1358448483,), (1358448966,), (1358448994,), (1358449029,), (1358449061,), (1358449085,), (1358449383,), (1358453713,), (1358453769,), (1358453773,), (1358453778,), (1358453850,), (1358453854,), (1358453858,), (1358454150,), (1358454175,), (1358454201,), (1358454229,), (1358454648,), (1358454697,), (1358454714,), (1358454717,), (1358454842,), (1358454846,), (1358454851,), (1358454855,), (1358454860,), (1358454881,), (1358454945,), (1358454955,), (1358454967,), (1358454974,), (1358454981,), (1358455028,), (1358455030,), (1358455032,), (1358455035,), (1358455070,), (1358455076,), (1358455081,), (1358455084,), (1358455087,), (1358455091,), (1358455119,), (1358455122,), (1358455125,), (1358455161,), (1358455169,), (1358455173,), (1358455176,), (1358455178,), (1358455181,), (1358455210,), (1358455215,), (1358455221,), (1358455226,), (1358455230,), (1358455234,), (1358455297,), (1358455300,), (1358455305,), (1358455310,), (1358455333,), (1358455336,), (1358455340,), (1358455343,), (1358455345,), (1358455351,), (1358455395,), (1358455376,), (1358455379,), (1358455384,), (1358455388,), (1358455391,), (1358455420,), (1358455423,), (1358455425,), (1358455428,), (1358455432,), (1358455465,), (1358455535,), (1358455671,), (1358455710,), (1358455714,), (1358455719,), (1358455724,), (1358455767,), (1358455777,), (1358455783,), (1358455815,), (1358455820,), (1358455825,), (1358455829,), (1358455831,), (1358455835,), (1358455862,), (1358455868,), (1358455872,), (1358455875,), (1358455903,), (1358455907,), (1358455911,), (1358455917,), (1358455924,), (1358455930,), (1358455950,), (1358455955,), (1358455959,), (1358455960,), (1358456007,), (1358456013,), (1358456018,), (1358456107,), (1358456080,), (1358456088,), (1358456093,), (1358456099,), (1358456347,), (1358456379,), (1358456413,), (1358456765,), (1358456820,), (1358456846,), (1358456872,), (1358457168,), (1358457195,), (1358457224,), (1358457252,), (1358457302,), (1358457377,), (1358457407,), (1358457436,), (1358457467,), (1358457496,), (1358457616,), (1358457638,), (1358457643,), (1358457668,), (1358457731,), (1358457734,), (1358457736,), (1358457738,), (1358457744,), (1358457747,), (1358457806,), (1358457832,), (1358457861,), (1358457888,), (1358457913,), (1358458207,), (1358458233,), (1358458259,), (1358458522,), (1358458526,), (1358458529,), (1358458532,), (1358458535,), (1358458545,), (1358458740,), (1358458768,), (1358458796,), (1358458799,), (1358458803,), (1358458820,), (1358458912,), (1358458916,), (1358458920,), (1358458928,), (1358458965,), (1358458970,), (1358458974,), (1358458978,), (1358458982,), (1358458987,), (1358459019,), (1358459023,), (1358459027,), (1358459032,), (1358459065,), (1358459067,), (1358459070,), (1358459073,), (1358459077,), (1358459080,), (1358459197,), (1358459127,), (1358459132,), (1358459156,), (1358459184,), (1358459297,), (1358459300,), (1358459303,), (1358459315,), (1358459352,), (1358459362,), (1358459456,), (1358459486,), (1358459493,), (1358459497,), (1358459502,), (1358459506,), (1358459541,), (1358459544,), (1358459547,), (1358459588,), (1358459593,), (1358459599,), (1358459605,), (1358459609,), (1358459652,), (1358459656,), (1358459661,), (1358459665,), (1358459669,), (1358459672,), (1358459691,), (1358459694,), (1358459697,), (1358459723,), (1358459735,), (1358459740,), (1358459743,), (1358459748,), (1358459752,), (1358459768,), (1358459772,), (1358459776,), (1358459780,), (1358459816,), (1358459820,), (1358459824,), (1358459827,), (1358459829,), (1358459855,), (1358459859,), (1358459863,), (1358459866,), (1358459871,), (1358459928,), (1358459932,), (1358460001,), (1358460006,), (1358460011,), (1358460097,), (1358460101,), (1358460136,), (1358460207,), (1358460198,), (1358460202,), (1358460237,), (1358460349,), (1358460352,), (1358460355,), (1358460424,), (1358460428,), (1358461005,), (1358461034,), (1358461398,), (1358461400,), (1358461484,), (1358461486,), (1358461509,), (1358461761,), (1358462006,), (1358462110,), (1358462113,), (1358462145,), (1358462178,), (1358462183,), (1358462192,), (1358462197,), (1358462241,), (1358462272,), (1358462643,), (1358462650,), (1358462659,), (1358462662,), (1358462665,), (1358462735,), (1358462739,), (1358462742,), (1358462744,), (1358462765,), (1358462768,), (1358462770,), (1358462772,), (1358462800,), (1358462806,), (1358462810,), (1358462813,), (1358462816,), (1358462820,), (1358462845,), (1358462848,), (1358462851,), (1358462854,), (1358462857,), (1358462911,), (1358462913,), (1358462916,), (1358462919,), (1358462939,), (1358462943,), (1358462946,), (1358462949,), (1358462953,), (1358462984,), (1358462987,), (1358462991,), (1358462995,), (1358464064,), (1358464069,), (1358464356,), (1358464261,), (1358464288,), (1358464316,), (1358464335,), (1358464481,), (1358464512,), (1358464539,), (1358464566,), (1358464595,), (1358464885,), (1358464914,), (1358464942,), (1358464970,), (1358465289,), (1358465293,), (1358465298,), (1358465548,), (1358465607,), (1358465669,), (1358465724,), (1358465761,), (1358465792,), (1358466182,), (1358466224,), (1358466297,), (1358466330,), (1358466757,), (1358466787,), (1358466815,), (1358466844,), (1358466872,), (1358467844,), (1358467959,), (1358468068,), (1358468100,), (1358468329,), (1358468333,), (1358468369,), (1358468404,), (1358468961,), (1358468996,), (1358469043,), (1358469072,), (1358469101,), (1358469132,), (1358469542,), (1358469572,), (1358469621,), (1358469673,), (1358469835,), (1358469867,), (1358469896,), (1358469925,), (1358470373,), (1358470376,), (1358470381,), (1358470385,), (1358470640,), (1358470495,), (1358470510,), (1358470540,), (1358470568,), (1358470599,), (1358470875,), (1358470880,), (1358470883,), (1358470887,), (1358471025,), (1358471029,), (1358471033,), (1358471036,), (1358471041,), (1358471043,), (1358471149,), (1358471169,), (1358471197,), (1358471228,), (1358471545,), (1358471579,), (1358471634,), (1358471689,), (1358471979,), (1358471995,), (1358472023,), (1358472050,), (1358472079,), (1358472121,), (1358472329,), (1358472375,), (1358472402,), (1358472823,), (1358472845,), (1358472849,), (1358472852,), (1358472863,), (1358473001,), (1358473060,), (1358473332,), (1358473373,), (1358473673,), (1358473703,), (1358473731,), (1358473761,), (1358473812,), (1358474446,), (1358474499,), (1358474577,), (1358474647,), (1358475485,), (1358475188,), (1358475239,), (1358475305,), (1358475384,), (1358475453,), (1358475552,), (1358475588,), (1358475620,), (1358475663,), (1358475720,), (1358476059,), (1358476273,), (1358476276,), (1358476280,), (1358476283,), (1358476286,), (1358476289,), (1358476313,), (1358476316,), (1358476320,), (1358476323,), (1358476326,), (1358476359,), (1358476369,), (1358476373,), (1358476377,), (1358476380,), (1358476424,), (1358476427,), (1358476577,), (1358476920,), (1358476952,), (1358476965,), (1358477262,), (1358477294,), (1358477321,), (1358477346,), (1358477374,), (1358477680,), (1358477708,), (1358477737,), (1358478020,), (1358478022,), (1358478027,), (1358478231,), (1358478233,), (1358478260,), (1358478287,), (1358478310,), (1358478550,), (1358478553,), (1358478556,), (1358478559,), (1358478560,), (1358478576,), (1358478830,), (1358478860,), (1358478885,), (1358479451,), (1358479336,), (1358479419,), (1358479442,), (1358479446,), (1358479549,), (1358479552,), (1358479555,), (1358479558,), (1358479561,), (1358479564,), (1358479598,), (1358479603,), (1358479608,), (1358479613,), (1358479618,), (1358479621,), (1358479649,), (1358479654,), (1358479704,), (1358479709,), (1358479713,), (1358479821,), (1358479832,), (1358479839,), (1358479859,), (1358479863,), (1358479986,), (1358479989,), (1358480031,), (1358480033,), (1358480119,), (1358480121,), (1358480125,), (1358480134,), (1358480141,), (1358480163,), (1358480166,), (1358480170,), (1358480173,), (1358480299,), (1358480327,), (1358480374,), (1358480431,), (1358480742,), (1358480770,), (1358480800,), (1358480828,), (1358480859,), (1358480899,), (1358481236,), (1358481263,), (1358481290,), (1358481313,), (1358481572,), (1358481576,), (1358481577,), (1358481579,), (1358481582,), (1358481600,), (1358482157,), (1358482225,), (1358482287,), (1358482390,), (1358482547,), (1358482573,), (1358482875,), (1358482791,), (1358482826,), (1358482851,), (1358482857,), (1358482870,), (1358483023,), (1358483068,), (1358483082,), (1358483088,), (1358483094,), (1358483116,), (1358483216,), (1358483245,), (1358483288,), (1358483318,), (1358483351,), (1358483831,), (1358483889,), (1358483926,), (1358483955,), (1358484004,), (1358484056,), (1358484373,), (1358484402,), (1358484428,), (1358484457,), (1358484889,), (1358484924,), (1358484946,), (1358484976,), (1358485015,), (1358485104,), (1358485254,), (1358485283,), (1358485312,), (1358485339,), (1358485361,), (1358485492,), (1358485520,), (1358485578,), (1358485582,), (1358485585,), (1358485588,), (1358485592,), (1358485595,), (1358485633,), (1358485639,), (1358485648,), (1358485653,), (1358485676,), (1358485686,), (1358485691,), (1358509887,), (1358509930,), (1358509933,), (1358509937,), (1358509978,), (1358509988,), (1358510815,), (1358510817,), (1358510970,), (1358510972,), (1358511028,), (1358511053,), (1358511081,), (1358511105,), (1358511451,), (1358511479,), (1358511507,), (1358511534,), (1358511568,), (1358511637,), (1358511894,), (1358511920,), (1358511946,), (1358511987,), (1358512078,), (1358512189,), (1358512199,), (1358512203,), (1358512476,), (1358512401,), (1358512404,), (1358512407,), (1358512410,), (1358512445,), (1358512594,), (1358512596,), (1358512599,), (1358512635,), (1358512637,), (1358512639,), (1358512641,), (1358512644,), (1358512648,), (1358512685,), (1358512689,), (1358512691,), (1358512693,), (1358512694,), (1358512698,), (1358512730,), (1358512733,), (1358512734,), (1358512765,), (1358512767,), (1358512769,), (1358512782,), (1358512786,), (1358512792,), (1358512812,), (1358512813,), (1358512814,), (1358512817,), (1358512821,), (1358512919,), (1358512961,), (1358512989,), (1358513110,), (1358513178,), (1358513179,), (1358513182,), (1358513185,), (1358513216,), (1358513219,), (1358513222,), (1358513224,), (1358513226,), (1358513348,), (1358513376,), (1358513406,), (1358513438,), (1358513974,), (1358514020,), (1358514053,), (1358514083,), (1358514134,), (1358514444,), (1358514494,), (1358514877,), (1358515016,), (1358515091,), (1358515121,), (1358515173,), (1358515206,), (1358515280,), (1358515283,), (1358515288,), (1358515292,), (1358515624,), (1358515539,), (1358515564,), (1358515585,), (1358515598,), (1358515621,), (1358515668,), (1358515699,), (1358515726,), (1358515755,), (1358515811,), (1358515867,), (1358516175,), (1358516215,), (1358516466,), (1358516507,), (1358516509,), (1358516512,), (1358516518,), (1358516522,), (1358516527,), (1358516574,), (1358516576,), (1358516580,), (1358516583,), (1358516585,), (1358516587,), (1358516678,), (1358516705,), (1358516731,), (1358516759,), (1358517054,), (1358517058,), (1358517061,), (1358517073,), (1358517100,), (1358517129,), (1358517255,), (1358517271,), (1358517307,), (1358517325,), (1358517328,), (1358517366,), (1358517371,), (1358517377,), (1358517381,), (1358517421,), (1358517426,), (1358517430,), (1358517432,), (1358517435,), (1358517438,), (1358517475,), (1358517478,), (1358517493,), (1358517520,), (1358517799,), (1358517826,), (1358517854,), (1358519479,), (1358519566,), (1358519627,), (1358519707,), (1358519789,), (1358520038,), (1358520082,), (1358520122,), (1358520187,), (1358520253,), (1358520894,), (1358520521,), (1358520610,), (1358520721,), (1358520813,), (1358521503,), (1358521569,), (1358521645,), (1358521711,), (1358522024,), (1358522057,), (1358522085,), (1358522128,), (1358522187,), (1358522242,), (1358522702,), (1358522755,), (1358522828,), (1358523329,), (1358523351,), (1358523360,), (1358523403,), (1358523518,), (1358523521,), (1358523525,), (1358523528,), (1358523531,), (1358523745,), (1358523831,), (1358523884,), (1358523886,), (1358523890,), (1358524000,), (1358524003,), (1358524006,), (1358524035,), (1358524047,), (1358524049,), (1358524317,), (1358524343,), (1358524370,), (1358524397,), (1358524405,), (1358524412,), (1358524557,), (1358524581,), (1358524584,), (1358524586,), (1358524642,), (1358524645,), (1358524656,), (1358524690,), (1358524718,), (1358524751,), (1358524914,), (1358524976,), (1358524980,), (1358524986,), (1358524989,), (1358525012,), (1358525015,), (1358525019,), (1358525022,), (1358525061,), (1358525065,), (1358525068,), (1358525070,), (1358525073,), (1358525128,), (1358525130,), (1358525150,), (1358525152,), (1358525156,), (1358525190,), (1358525636,), (1358525663,), (1358526976,), (1358527028,), (1358527081,), (1358527637,), (1358527669,), (1358527697,), (1358528272,), (1358528301,), (1358528330,), (1358528361,), (1358528393,), (1358528423,), (1358528655,), (1358528660,), (1358528666,), (1358528670,), (1358528677,), (1358528899,), (1358528935,), (1358528954,), (1358529076,), (1358529106,), (1358529134,), (1358529161,), (1358529187,), (1358530516,), (1358530550,), (1358531600,), (1358532023,), (1358532053,), (1358532085,), (1358532568,), (1358532589,), (1358532592,), (1358532598,), (1358532629,), (1358532685,), (1358533016,), (1358533024,), (1358533037,), (1358533072,), (1358533108,), (1358533140,), (1358533187,), (1358533204,), (1358533838,), (1358533860,), (1358533906,), (1358533966,), (1358534025,), (1358534072,), (1358534243,), (1358534271,), (1358534305,), (1358534338,), (1358534479,), (1358534482,), (1358534510,), (1358534515,), (1358534519,), (1358534525,), (1358534584,), (1358534601,), (1358534612,), (1358534730,), (1358534738,), (1358534742,), (1358534745,), (1358534769,), (1358534796,), (1358534981,), (1358535004,), (1358535022,), (1358535027,), (1358535032,), (1358535036,), (1358535062,), (1358535066,), (1358535071,), (1358535163,), (1358535190,), (1358535224,), (1358535251,), (1358535276,), (1358535284,), (1358535400,), (1358535410,), (1358535438,), (1358535468,), (1358535883,), (1358535788,), (1358535820,), (1358535855,), (1358536118,), (1358536122,), (1358536129,), (1358536160,), (1358536167,), (1358536495,), (1358536500,), (1358536503,), (1358536533,), (1358536555,), (1358536560,), (1358536664,), (1358536669,), (1358536673,), (1358536832,), (1358536850,), (1358536886,), (1358536902,), (1358536914,), (1358537047,), (1358537050,), (1358537055,), (1358537059,), (1358537088,), (1358537095,), (1358537113,), (1358537138,), (1358537163,), (1358537191,), (1358537388,), (1358537417,), (1358537444,), (1358537612,), (1358537615,), (1358537618,), (1358537620,), (1358537621,), (1358537623,), (1358537648,), (1358537651,), (1358537653,), (1358537654,), (1358537656,), (1358537658,), (1358537692,), (1358537696,), (1358537698,), (1358537702,), (1358537743,), (1358537749,), (1358537754,), (1358537775,), (1358537809,), (1358537846,), (1358538151,), (1358538181,), (1358538200,), (1358538202,), (1358538410,), (1358538416,), (1358538424,), (1358538429,), (1358538449,), (1358538478,), (1358538509,), (1358539113,), (1358538727,), (1358538926,), (1358538992,), (1358539054,), (1358539492,), (1358539552,), (1358539603,), (1358539637,), (1358540076,), (1358540107,), (1358540140,), (1358540169,), (1358540202,), (1358540217,), (1358540415,), (1358540445,), (1358540484,), (1358540513,), (1358541977,), (1358542158,), (1358542269,), (1358542300,), (1358542329,), (1358542470,), (1358542500,), (1358542530,), (1358542763,), (1358542813,), (1358542857,), (1358542901,), (1358543172,), (1358543177,), (1358543198,), (1358543227,), (1358543256,), (1358543686,), (1358543707,), (1358543710,), (1358543735,), (1358543826,), (1358543849,), (1358543852,), (1358543875,), (1358543907,), (1358544431,), (1358544285,), (1358544316,), (1358544346,), (1358544375,), (1358544404,), (1358545025,), (1358545082,), (1358545133,), (1358545190,), (1358545622,), (1358545652,), (1358546200,), (1358546213,), (1358546215,), (1358546217,), (1358546367,), (1358546397,), (1358546428,), (1358546459,), (1358546486,), (1358546491,), (1358546546,), (1358546573,), (1358546606,), (1358546631,), (1358547146,), (1358547174,), (1358547438,), (1358547441,), (1358547445,), (1358547448,), (1358547455,), (1358547635,), (1358547666,), (1358547694,), (1358547720,), (1358547924,), (1358547942,), (1358547977,), (1358548007,), (1358548014,), (1358548383,), (1358548386,), (1358548390,), (1358549143,), (1358549154,), (1358549161,), (1358549163,), (1358549417,), (1358549464,), (1358549504,), (1358549537,), (1358549568,), (1358549825,), (1358549829,), (1358549832,), (1358549857,), (1358549876,), (1358549878,), (1358550015,), (1358550053,), (1358550102,), (1358550091,), (1358550095,), (1358550100,), (1358550261,), (1358550295,), (1358550334,), (1358550365,), (1358550401,), (1358550681,), (1358550709,), (1358550738,), (1358550767,), (1358550772,), (1358550776,), (1358550920,), (1358550925,), (1358550955,), (1358550981,), (1358551110,), (1358551115,), (1358551119,), (1358551126,), (1358551150,), (1358551183,), (1358551525,), (1358551550,), (1358551579,), (1358551606,), (1358551633,), (1358551658,), (1358551935,), (1358551962,), (1358551990,), (1358552239,), (1358552253,), (1358552286,), (1358552316,), (1358552445,), (1358552449,), (1358552660,), (1358552666,), (1358552674,), (1358552681,), (1358552709,), (1358552714,), (1358552718,), (1358552721,), (1358552727,), (1358552777,), (1358552783,), (1358552788,), (1358552793,), (1358553010,), (1358553064,), (1358553116,), (1358553172,), (1358553436,), (1358553486,), (1358553560,), (1358553632,), (1358553689,), (1358553727,), (1358554055,), (1358554081,), (1358554107,), (1358554134,), (1358554605,), (1358554461,), (1358554490,), (1358554525,), (1358554553,), (1358555191,), (1358555276,), (1358555337,), (1358555870,), (1358555897,), (1358555929,), (1358556485,), (1358556515,), (1358556542,), (1358556569,), (1358556599,), (1358556939,), (1358556969,), (1358556983,), (1358557413,), (1358557468,), (1358557509,), (1358557517,), (1358557522,), (1358557527,), (1358557643,), (1358557652,), (1358557660,), (1358557664,), (1358557917,), (1358557946,), (1358557974,), (1358558006,), (1358558110,), (1358558113,), (1358558119,), (1358558122,), (1358558162,), (1358558165,), (1358558174,), (1358558178,), (1358558221,), (1358558223,), (1358558264,), (1358558273,), (1358558283,), (1358558286,), (1358558720,), (1358559511,), (1358559406,), (1358559455,), (1358560114,), (1358560207,), (1358560750,), (1358560777,), (1358560808,), (1358560849,), (1358560909,), (1358560966,), (1358561380,), (1358561432,), (1358561491,), (1358561534,), (1358561565,), (1358562115,), (1358562166,), (1358562171,), (1358562201,), (1358562354,), (1358562385,), (1358562416,), (1358562446,), (1358562477,), (1358562626,), (1358562632,), (1358562652,), (1358562662,), (1358562665,), (1358562669,), (1358562693,), (1358562697,), (1358562701,), (1358562705,), (1358562931,), (1358562960,), (1358562967,), (1358562983,), (1358563195,), (1358563222,), (1358563614,), (1358563644,), (1358564030,), (1358564041,), (1358564209,), (1358564240,), (1358564272,), (1358564910,), (1358564913,), (1358564918,), (1358564932,), (1358564965,), (1358564999,), (1358565306,), (1358565281,), (1358565297,), (1358565303,), (1358565356,), (1358565396,), (1358565434,), (1358565465,), (1358565499,), (1358565791,), (1358565860,), (1358565921,), (1358565972,), (1358566031,), (1358566598,), (1358566733,), (1358566799,), (1358566872,), (1358566926,), (1358567434,), (1358567520,), (1358567562,), (1358567594,), (1358567930,), (1358567991,), (1358568036,), (1358568082,), (1358568094,), (1358568107,), (1358568610,), (1358568664,), (1358568706,), (1358568732,), (1358569304,), (1358569337,), (1358569396,), (1358569462,), (1358569527,), (1358569961,), (1358569965,), (1358569969,), (1358569973,), (1358570187,), (1358570189,), (1358570192,), (1358570195,), (1358570197,), (1358570202,), (1358570419,), (1358570436,), (1358570467,), (1358570507,), (1358570545,), (1358570652,), (1358570684,), (1358570691,), (1358570693,), (1358570734,), (1358570738,), (1358570742,), (1358570774,), (1358570778,), (1358570781,), (1358570784,), (1358570813,), (1358570818,), (1358570825,), (1358570831,), (1358570862,), (1358577591,), (1358577618,), (1358577644,), (1358578132,), (1358578187,), (1358578251,), (1358578357,), (1358578447,), (1358579147,), (1358579213,), (1358579743,), (1358579772,), (1358579815,), (1358580212,), (1358580238,), (1358580267,), (1358580312,), (1358580509,), (1358580513,), (1358580516,), (1358580531,), (1358580564,), (1358580778,), (1358580806,), (1358580837,), (1358581393,), (1358581440,), (1358581466,), (1358581493,), (1358581846,), (1358581861,), (1358581970,), (1358582000,), (1358582030,), (1358582060,), (1358582251,), (1358582273,), (1358582334,), (1358582465,), (1358582548,), (1358583114,), (1358583121,), (1358583125,), (1358583130,), (1358583133,), (1358583580,), (1358583611,), (1358583655,), (1358583686,), (1358583752,), (1358584229,), (1358584295,), (1358584879,), (1358584733,), (1358584762,), (1358584800,), (1358584828,), (1358585063,), (1358585093,), (1358585135,), (1358585187,), (1358585229,), (1358585452,), (1358585456,), (1358585458,), (1358585462,), (1358585468,), (1358585696,), (1358585725,), (1358585730,), (1358585733,), (1358585918,), (1358585971,), (1358586027,), (1358586084,), (1358586161,), (1358586543,), (1358586581,), (1358586611,), (1358586642,), (1358586928,), (1358586968,), (1358587002,), (1358587034,), (1358587297,), (1358587301,), (1358587304,), (1358587312,), (1358587317,), (1358587340,), (1358587343,), (1358587359,), (1358587410,), (1358588082,), (1358588128,), (1358588169,), (1358588207,), (1358588215,), (1358588404,), (1358588430,), (1358588984,), (1358589017,), (1358589050,), (1358589106,), (1358589113,), (1358589351,), (1358589503,), (1358589557,), (1358589616,), (1358589684,), (1358589744,), (1358590029,), (1358590061,), (1358590089,), (1358590117,), (1358590146,), (1358590376,), (1358590381,), (1358590873,), (1358590746,), (1358590819,), (1358591146,), (1358591150,), (1358591164,), (1358591168,), (1358591217,), (1358591644,), (1358591693,), (1358591745,), (1358591797,), (1358591825,), (1358591856,), (1358592448,), (1358592475,), (1358592892,), (1358592920,), (1358592949,), (1358592989,), (1358593063,), (1358593457,), (1358593470,), (1358593503,), (1358593514,), (1358593544,), (1358593575,), (1358593711,), (1358593724,), (1358593732,), (1358593735,), (1358593739,), (1358593850,), (1358593857,), (1358593859,), (1358593862,), (1358593950,), (1358593956,), (1358593961,), (1358593963,), (1358594000,), (1358594010,), (1358594042,), (1358594069,), (1358594124,), (1358594135,), (1358594164,), (1358594191,), (1358594217,), (1358594382,), (1358594410,), (1358594416,), (1358594424,), (1358594428,), (1358594433,), (1358594464,), (1358594468,), (1358594472,), (1358594521,), (1358594565,), (1358594594,), (1358594624,), (1358594780,), (1358594798,), (1358594802,), (1358594806,), (1358594812,), (1358594817,), (1358594860,), (1358594846,), (1358594851,), (1358594855,), (1358594918,), (1358594950,), (1358594977,), (1358595007,), (1358595034,), (1358595195,), (1358595200,), (1358595204,), (1358595207,), (1358595210,), (1358595213,), (1358595237,), (1358595243,), (1358595246,), (1358595584,), (1358595617,), (1358595635,), (1358595643,), (1358595663,), (1358595668,), (1358595739,), (1358595743,), (1358595748,), (1358595753,), (1358595756,), (1358595761,), (1358595788,), (1358595797,), (1358595807,), (1358595891,), (1358595896,), (1358595898,), (1358595901,), (1358595942,), (1358595946,), (1358595949,), (1358595952,), (1358595954,), (1358595976,), (1358595980,), (1358595986,), (1358595992,), (1358596083,), (1358596111,), (1358596122,), (1358596126,), (1358596329,), (1358596357,), (1358596388,), (1358596760,), (1358596789,), (1358596815,), (1358596848,), (1358597959,), (1358598038,), (1358598119,), (1358599236,), (1358599028,), (1358599107,), (1358599169,), (1358599207,), (1358599774,), (1358599843,), (1358599899,), (1358599956,), (1358600417,), (1358600479,), (1358601297,), (1358601342,), (1358601347,), (1358601350,), (1358601376,), (1358601395,), (1358601694,), (1358601738,), (1358601790,), (1358601840,), (1358601890,), (1358601938,), (1358602325,), (1358602356,), (1358602384,), (1358602429,), (1358602434,), (1358602438,), (1358602441,), (1358602443,), (1358602571,), (1358602579,), (1358602601,), (1358602602,), (1358602623,), (1358602667,), (1358602670,), (1358602677,), (1358602681,), (1358602716,), (1358602719,), (1358602722,), (1358602724,), (1358602725,), (1358602771,), (1358602774,), (1358602777,), (1358602780,), (1358602782,), (1358602785,), (1358602966,), (1358602997,), (1358603204,), (1358603207,), (1358603407,), (1358603608,), (1358603602,), (1358603605,), (1358603724,), (1358603747,), (1358603763,), (1358603781,), (1358603793,), (1358603807,), (1358603844,), (1358603847,), (1358603849,), (1358603852,), (1358603889,), (1358603892,), (1358603895,), (1358603898,), (1358603901,), (1358604014,), (1358604019,), (1358604031,), (1358604044,), (1358604046,), (1358604072,), (1358604133,), (1358604136,), (1358604138,), (1358604141,), (1358604145,), (1358604147,), (1358604177,), (1358604181,), (1358604186,), (1358604227,), (1358604245,), (1358604248,), (1358604252,), (1358604455,), (1358604459,), (1358604465,), (1358604519,), (1358604552,), (1358604581,), (1358604847,), (1358604929,), (1358604955,), (1358605368,), (1358605415,), (1358605471,), (1358605523,), (1358605569,), (1358605800,), (1358605805,), (1358605809,), (1358605817,), (1358605832,), (1358605836,), (1358605871,), (1358605875,), (1358605878,), (1358606009,), (1358606029,), (1358606039,), (1358606045,), (1358606063,), (1358606068,), (1358606111,), (1358606116,), (1358606120,), (1358606122,), (1358606128,), (1358606131,), (1358606274,), (1358606225,), (1358606267,), (1358606352,), (1358606386,), (1358606415,), (1358606434,), (1358606443,), (1358606450,), (1358606803,), (1358606830,), (1358606859,), (1358606941,), (1358606995,), (1358607482,), (1358607536,), (1358607591,), (1358607662,), (1358608283,), (1358608329,), (1358608387,), (1358610350,), (1358612075,), (1358613167,), (1358613197,), (1358613574,), (1358613581,), (1358613585,), (1358613588,), (1358613617,), (1358613863,), (1358613868,), (1358613889,), (1358613908,), (1358614404,), (1358614131,), (1358614188,), (1358614260,), (1358614338,), (1358615025,), (1358615042,), (1358615062,), (1358615068,), (1358615264,), (1358615292,), (1358615314,), (1358615318,), (1358615320,), (1358615413,), (1358615418,), (1358615421,), (1358615424,), (1358615428,), (1358615430,), (1358615506,), (1358615536,), (1358615564,), (1358615572,), (1358615641,), (1358615654,), (1358615659,), (1358615662,), (1358615667,), (1358615932,), (1358615960,), (1358615986,), (1358615989,), (1358616000,), (1358616061,), (1358616064,), (1358616070,), (1358616116,), (1358616118,), (1358616141,), (1358616146,), (1358616150,), (1358616747,), (1358616776,), (1358616806,), (1358616843,), (1358617345,), (1358617358,), (1358617361,), (1358617599,), (1358617603,), (1358617605,), (1358617659,), (1358617694,), (1358617714,), (1358617770,), (1358617796,), (1358617826,), (1358617856,), (1358618648,), (1358618682,), (1358618716,), (1358618747,), (1358618847,), (1358618849,), (1358618876,), (1358618878,), (1358618906,), (1358618909,), (1358619268,), (1358619166,), (1358619199,), (1358619255,), (1358619385,), (1358619403,), (1358619418,), (1358619431,), (1358619792,), (1358619826,), (1358619857,), (1358619886,), (1358619916,), (1358620493,), (1358620556,), (1358620621,), (1358621001,), (1358621434,), (1358621439,), (1358621444,), (1358621447,), (1358621456,), (1358621467,), (1358621638,), (1358621651,), (1358621660,), (1358621667,), (1358621746,), (1358621773,), (1358621797,), (1358621801,), (1358621807,), (1358621824,), (1358622265,), (1358622333,), (1358622383,), (1358622890,), (1358622928,), (1358622970,), (1358623320,), (1358623324,), (1358623328,), (1358623332,), (1358623355,), (1358623673,), (1358623713,), (1358623756,), (1358623811,), (1358623877,), (1358624346,), (1358624377,), (1358624410,), (1358625052,), (1358625078,), (1358625107,), (1358625134,), (1358625720,), (1358625708,), (1358625716,), (1358625719,), (1358625836,), (1358625863,), (1358625912,), (1358625969,), (1358626720,), (1358626915,), (1358626974,), (1358627027,), (1358627066,), (1358627095,), (1358627476,), (1358627533,), (1358627591,), (1358628205,), (1358628262,), (1358628292,), (1358628293,), (1358628315,), (1358628355,), (1358628485,), (1358628512,), (1358628540,), (1358628568,), (1358628575,), (1358628578,), (1358628618,), (1358628620,), (1358628640,), (1358628974,), (1358628978,), (1358628983,), (1358628986,), (1358628996,), (1358629028,), (1358629410,), (1358629438,), (1358629445,), (1358629447,), (1358629450,), (1358629453,), (1358629607,), (1358629643,), (1358629654,), (1358629742,), (1358629765,), (1358629794,), (1358629826,), (1358629853,), (1358630012,), (1358630059,), (1358630065,), (1358630072,), (1358630080,), (1358630084,), (1358630115,), (1358630118,), (1358630120,), (1358630122,), (1358630154,), (1358630157,), (1358630160,), (1358630163,), (1358630167,), (1358630199,), (1358630204,), (1358630206,), (1358630208,), (1358630252,), (1358630243,), (1358630247,), (1358630284,), (1358630309,), (1358630342,), (1358630703,), (1358630731,), (1358630761,), (1358631076,), (1358631081,), (1358631086,), (1358631090,), (1358631310,), (1358631342,), (1358631345,), (1358631373,), (1358631420,), (1358631452,), (1358631838,), (1358631872,), (1358631906,), (1358631937,), (1358631990,), (1358632429,), (1358632458,), (1358632485,), (1358632512,), (1358632815,), (1358632820,), (1358632824,), (1358632827,), (1358632831,), (1358632834,), (1358633020,), (1358633048,), (1358633069,), (1358633074,), (1358633077,), (1358633185,), (1358633191,), (1358633197,), (1358633202,), (1358633244,), (1358633248,), (1358633253,), (1358634269,), (1358639293,), (1358639212,), (1358640649,), (1358640731,), (1358640811,), (1358643553,), (1358644725,), (1358644807,), (1358645770,), (1358645800,), (1358645813,), (1358645844,), (1358645891,), (1358646367,), (1358646394,), (1358646424,), (1358646453,), (1358646507,), (1358646561,), (1358646797,), (1358646814,), (1358647059,), (1358647258,), (1358647261,), (1358647263,), (1358647264,), (1358647265,), (1358647318,), (1358647320,), (1358647324,), (1358647327,), (1358647330,), (1358647349,), (1358647354,), (1358647358,), (1358647360,), (1358647381,), (1358647391,), (1358647393,), (1358647395,), (1358647397,), (1358647433,), (1358647436,), (1358647439,), (1358647442,), (1358647445,), (1358647676,), (1358647690,), (1358647693,), (1358648071,), (1358647969,), (1358648006,), (1358648045,), (1358648430,), (1358648478,), (1358648511,), (1358648542,), (1358648598,), (1358648948,), (1358648975,), (1358649004,), (1358649301,), (1358649311,), (1358649314,), (1358649317,), (1358649319,), (1358649543,), (1358649572,), (1358649601,), (1358649630,), (1358649791,), (1358649821,), (1358649857,), (1358649858,), (1358649887,), (1358649981,), (1358650005,), (1358650155,), (1358650162,), (1358650165,), (1358650168,), (1358650172,), (1358650192,), (1358650195,), (1358650198,), (1358650201,), (1358650204,), (1358650207,), (1358650325,), (1358650351,), (1358650378,), (1358650837,), (1358650897,), (1358650951,), (1358651003,), (1358651059,), (1358651748,), (1358651822,), (1358651902,), (1358651984,), (1358652466,), (1358652510,), (1358652537,), (1358652567,), (1358653015,), (1358653051,), (1358653088,), (1358653403,), (1358653430,), (1358653460,), (1358653496,), (1358653523,), (1358653952,), (1358653718,), (1358653774,), (1358653837,), (1358653889,), (1358653926,), (1358654109,), (1358654133,), (1358654151,), (1358654162,), (1358654244,), (1358654247,), (1358654253,), (1358654283,), (1358654288,), (1358654308,), (1358654575,), (1358654578,), (1358654580,), (1358654602,), (1358654605,), (1358654609,), (1358654612,), (1358654637,), (1358654644,), (1358654651,), (1358654656,), (1358654659,), (1358654695,), (1358654699,), (1358654703,), (1358654729,), (1358654869,), (1358654898,), (1358654927,), (1358654957,), (1358654983,), (1358655012,), (1358655280,), (1358655307,), (1358655333,), (1358655387,), (1358655438,), (1358655869,), (1358655944,), (1358656013,), (1358656041,), (1358656089,), (1358656135,), (1358656545,), (1358656595,), (1358656651,), (1358656715,), (1358656801,), (1358657171,), (1358657200,), (1358657215,), (1358657218,), (1358657487,), (1358657516,), (1358657555,), (1358657606,), (1358657668,), (1358657712,), (1358657975,), (1358658034,), (1358658090,), (1358658364,), (1358658309,), (1358658338,), (1358658360,), (1358658393,), (1358658402,), (1358658405,), (1358658406,), (1358658408,), (1358658433,), (1358658436,), (1358658471,), (1358658474,), (1358658477,), (1358658480,), (1358658482,), (1358658484,), (1358658507,), (1358658508,), (1358658511,), (1358658512,), (1358658514,), (1358658747,), (1358658800,), (1358658857,), (1358658909,), (1358658963,), (1358658993,), (1358659358,), (1358659401,), (1358659454,), (1358659505,), (1358659544,), (1358659933,), (1358659966,), (1358660167,), (1358660192,), (1358660221,), (1358660247,), (1358660274,), (1358660421,), (1358660449,), (1358660478,), (1358660490,), (1358660493,), (1358660496,), (1358660586,), (1358660646,), (1358660704,), (1358660731,), (1358660736,), (1358660742,), (1358660745,), (1358660747,), (1358660748,), (1358660769,), (1358660772,), (1358660775,), (1358660922,), (1358660950,), (1358660979,), (1358661009,), (1358661048,), (1358661119,), (1358661300,), (1358661378,), (1358661452,), (1358662148,), (1358661867,), (1358661929,), (1358661978,), (1358662039,), (1358662093,), (1358662847,), (1358662908,), (1358662963,), (1358663025,), (1358663084,), (1358663391,), (1358663393,), (1358663419,), (1358663445,), (1358663460,), (1358663497,), (1358663752,), (1358663755,), (1358663759,), (1358663769,), (1358663794,), (1358663821,), (1358663886,), (1358663887,), (1358663898,), (1358663923,), (1358664113,), (1358664117,), (1358664121,), (1358664124,), (1358664127,), (1358664131,), (1358664209,), (1358664238,), (1358664267,), (1358664296,), (1358664813,), (1358664864,), (1358664911,), (1358664962,), (1358665018,), (1358665071,), (1358665406,), (1358665460,), (1358665514,), (1358665567,), (1358665617,), (1358666038,), (1358666091,), (1358666779,), (1358666808,), (1358666839,), (1358666868,), (1358666901,), (1358666928,), (1358667147,), (1358667179,), (1358667217,), (1358667281,), (1358667337,), (1358667388,), (1358667640,), (1358667644,), (1358667674,), (1358667702,), (1358667738,), (1358667749,), (1358667778,), (1358667858,), (1358667885,), (1358668134,), (1358668160,), (1358668186,), (1358668214,), (1358668243,), (1358668630,), (1358668546,), (1358668576,), (1358668603,), (1358668783,), (1358668802,), (1358668827,), (1358668864,), (1358668893,), (1358668929,), (1358669287,), (1358669315,), (1358669366,), (1358669407,), (1358669744,), (1358669777,), (1358669805,), (1358669836,), (1358669864,), (1358670146,), (1358670153,), (1358670157,), (1358670160,), (1358670163,), (1358670258,), (1358670286,), (1358670320,), (1358670349,), (1358670521,), (1358670548,), (1358670569,), (1358670582,), (1358670589,), (1358670617,), (1358670621,), (1358670628,), (1358670996,), (1358671025,), (1358671052,), (1358671079,), (1358671161,), (1358671367,), (1358671394,), (1358671423,), (1358671713,), (1358671715,), (1358671717,), (1358671719,), (1358671721,), (1358671723,), (1358672126,), (1358672175,), (1358672224,), (1358672273,), (1358672318,), (1358672347,), (1358672720,), (1358672766,), (1358672820,), (1358672869,), (1358673201,), (1358673204,), (1358673208,), (1358673212,), (1358673214,), (1358673360,), (1358673388,), (1358673414,), (1358673441,), (1358673980,), (1358673834,), (1358673903,), (1358674693,), (1358674756,), (1358674807,), (1358674865,), (1358675351,), (1358675378,), (1358675407,), (1358675452,), (1358675505,), (1358675916,), (1358675919,), (1358675922,), (1358675947,), (1358676078,), (1358676178,), (1358676234,), (1358676264,), (1358676294,), (1358676312,), (1358676407,), (1358676418,), (1358676426,), (1358676435,), (1358676489,), (1358676843,), (1358676871,), (1358676899,), (1358676927,), (1358676954,), (1358676974,), (1358677090,), (1358677093,), (1358677107,), (1358677235,), (1358677238,), (1358677242,), (1358677245,), (1358677247,), (1358677250,), (1358677275,), (1358677278,), (1358677281,), (1358677283,), (1358677284,), (1358677697,), (1358678083,), (1358678190,), (1358678231,), (1358678260,), (1358678664,), (1358680039,), (1358679982,), (1358680011,), (1358680759,), (1358680777,), (1358680781,), (1358680784,), (1358681091,), (1358681138,), (1358681191,), (1358681220,), (1358681255,), (1358681293,), (1358681348,), (1358681352,), (1358681356,), (1358681360,), (1358681379,), (1358681382,), (1358681386,), (1358681389,), (1358681391,), (1358681392,), (1358681415,), (1358681416,), (1358681419,), (1358681421,), (1358681445,), (1358681454,), (1358681456,), (1358681460,), (1358681463,), (1358681466,), (1358681485,), (1358681488,), (1358681491,), (1358681492,), (1358681494,), (1358681496,), (1358681516,), (1358681518,), (1358681521,), (1358681524,), (1358681718,), (1358681749,), (1358681778,), (1358681804,), (1358681831,), (1358681857,), (1358682131,), (1358682161,), (1358682187,), (1358682216,), (1358682415,), (1358682418,), (1358682438,), (1358682468,), (1358682497,), (1358682880,), (1358682911,), (1358682940,), (1358682972,), (1358683005,), (1358683034,), (1358683127,), (1358683210,), (1358683242,), (1358683291,), (1358683633,), (1358683459,), (1358683518,), (1358683575,), (1358684186,), (1358684214,), (1358684242,), (1358684266,), (1358684268,), (1358684269,), (1358684599,), (1358684635,), (1358684651,), (1358684786,), (1358684789,), (1358684791,), (1358684792,), (1358684794,), (1358684811,), (1358685076,), (1358685104,), (1358685133,), (1358685161,), (1358685534,), (1358685576,), (1358685634,), (1358685664,), (1358685692,), (1358685735,), (1358686046,), (1358686097,), (1358686149,), (1358686461,), (1358686471,), (1358686500,), (1358686504,), (1358686526,), (1358686549,), (1358686552,), (1358686556,), (1358686559,), (1358686598,), (1358686601,), (1358686603,), (1358686605,), (1358686608,), (1358686798,), (1358686826,), (1358686855,), (1358686882,), (1358686910,), (1358686938,), (1358687216,), (1358687247,), (1358687279,), (1358687504,), (1358687507,), (1358687511,), (1358687514,), (1358687516,), (1358687520,), (1358687952,), (1358688008,), (1358688047,), (1358688072,), (1358688098,), (1358688504,), (1358688528,), (1358688554,), (1358688582,), (1358688828,), (1358688697,), (1358688701,), (1358688718,), (1358688748,), (1358688780,), (1358689002,), (1358689029,), (1358689041,), (1358689044,), (1358689117,), (1358689120,), (1358689125,), (1358689128,), (1358689130,), (1358689132,), (1358689150,), (1358689153,), (1358689157,), (1358689161,), (1358689183,), (1358689186,), (1358689190,), (1358689192,), (1358689193,), (1358689195,), (1358689218,), (1358689221,), (1358689224,), (1358689226,), (1358689227,), (1358689476,), (1358689504,), (1358689538,), (1358689573,), (1358689604,), (1358689797,), (1358689799,), (1358689802,), (1358689804,), (1358690023,), (1358690052,), (1358690069,), (1358690071,), (1358690073,), (1358690089,), (1358690173,), (1358690176,), (1358690180,), (1358690183,), (1358690186,), (1358690209,), (1358690213,), (1358690218,), (1358690220,), (1358690253,), (1358690256,), (1358690261,), (1358690265,), (1358690269,), (1358690295,), (1358690298,), (1358690300,), (1358690302,), (1358690304,), (1358690325,), (1358690328,), (1358690331,), (1358690334,), (1358690337,), (1358690361,), (1358690366,), (1358690369,), (1358690371,), (1358690374,), (1358690415,), (1358690406,), (1358690409,), (1358690411,), (1358690451,), (1358690458,), (1358690468,), (1358690472,), (1358690751,), (1358690778,), (1358690807,), (1358690834,), (1358690872,), (1358690898,), (1358691153,), (1358691181,), (1358691209,), (1358691236,), (1358691733,), (1358691788,), (1358691824,), (1358691850,), (1358691874,), (1358691900,), (1358692252,), (1358692307,), (1358692364,), (1358692413,), (1358692462,), (1358692732,), (1358692748,), (1358692754,), (1358692769,), (1358693006,), (1358693032,), (1358693036,), (1358693055,), (1358693072,), (1358693075,), (1358693096,), (1358693099,), (1358693101,), (1358693103,), (1358693105,), (1358693133,), (1358693136,), (1358693140,), (1358693143,), (1358693146,), (1358693179,), (1358693183,), (1358693188,), (1358693191,), (1358693194,), (1358693195,), (1358693233,), (1358693236,), (1358693240,), (1358693243,), (1358693272,), (1358693276,), (1358693278,), (1358693307,), (1358693334,), (1358693335,), (1358693378,), (1358693373,), (1358693401,), (1358693404,), (1358693408,), (1358693446,), (1358693450,), (1358693453,), (1358693478,), (1358693482,), (1358693485,), (1358693512,), (1358693514,), (1358693518,), (1358693522,), (1358693526,), (1358693532,), (1358693573,), (1358693575,), (1358693609,), (1358693612,), (1358693615,), (1358693638,), (1358693642,), (1358693646,), (1358693650,), (1358693654,), (1358693675,), (1358693678,), (1358693681,), (1358693684,), (1358693687,), (1358693710,), (1358693712,), (1358693715,), (1358693718,), (1358694037,), (1358694071,), (1358694097,), (1358694124,), (1358694162,), (1358694189,), (1358694403,), (1358694506,), (1358694522,), (1358694526,), (1358694529,), (1358694776,), (1358694827,), (1358694883,), (1358694931,), (1358694984,), (1358695040,), (1358695609,), (1358695628,), (1358695641,), (1358695707,), (1358695736,), (1358695763,), (1358695791,), (1358695826,), (1358696172,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15052025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23034316]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] map_info['map_portfolio_photo'] : {23034316: [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776, 1358694529, 1358694526, 1358694522, 1358694506, 1358694403, 1358694189, 1358694162, 1358694124, 1358694097, 1358694071, 1358694037, 1358693718, 1358693715, 1358693712, 1358693710, 1358693687, 1358693684, 1358693681, 1358693678, 1358693675, 1358693654, 1358693650, 1358693646, 1358693642, 1358693638, 1358693615, 1358693612, 1358693609, 1358693575, 1358693573, 1358693532, 1358693526, 1358693522, 1358693518, 1358693514, 1358693512, 1358693485, 1358693482, 1358693478, 1358693453, 1358693450, 1358693446, 1358693408, 1358693404, 1358693401, 1358693373]} final : True mtd_id 4302 list_pids : [1358696172, 1358695826, 1358695791, 1358695763, 1358695736, 1358695707, 1358695641, 1358695628, 1358695609, 1358695040, 1358694984, 1358694931, 1358694883, 1358694827, 1358694776] Looping around the photos to save general results len do output : 1 /23034316Didn'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, '2872240') ('4302', '23034316', '1358696172', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240') ('4302', None, None, None, None, None, None, None, '2872240') ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '23034316', 'None', None, None, None, None, '2872240'), ('4302', '23034316', '1358696172', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695826', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695791', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695763', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695736', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695707', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695641', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695628', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695609', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358695040', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694984', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694931', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694883', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694827', None, None, None, None, None, '2872240'), ('4302', '23034316', '1358694776', None, None, None, None, None, '2872240')] time used for this insertion : 0.17110562324523926 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.935078144073486 time spend to save output : 0.1714000701904297 total time spend for step 5 : 8.106478214263916 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 (2872240) 2.34user 2.52system 0:17.78elapsed 27%CPU (0avgtext+0avgdata 161296maxresident)k 216inputs+14288outputs (3major+75571minor)pagefaults 0swaps